R: [stella] Short BCD time routine

Subject: R: [stella] Short BCD time routine
From: "Piero Cavina" <p.cavina@xxxxxxxxxxxxx>
Date: Sat, 4 Oct 1997 21:09:47 +0200
> Da: Jim Nitchals <jimn8@xxxxxxxxxx>
> A: stella@xxxxxxxxxxx
> Oggetto: [stella] Short BCD time routine

 
> If the adds/subtracts and compares are wound into a loop, it's shorter.
> Slower?  Yes, but it'd be done in vblank time anyway.
> 
>     ldx #5 ; years, months, days, hours, minutes, seconds for example
>            ; yes, months are fixed at 30 days apiece.
>     sed
> loop:
>     lda time,x

Cool... 8-)

P.



--
Archives updated once/day at http://www.biglist.com/lists/stella/archives/
Unsubscribing and other info at http://www.biglist.com/lists/stella/stella.html

Current Thread