Re: [stella] Does this look right? (clock) (fwd)

Subject: Re: [stella] Does this look right? (clock) (fwd)
From: Chris Wilkson - MCD <cwilkson@xxxxxxxxxxxxx>
Date: Wed, 1 Oct 1997 16:12:15 -0700 (PDT)
It's really frightening to see that Erik and I think so much alike...  8O

-Chris

> If you can modify it so it counts DOWN to 0 for each value, it becomes much
> more simpler again.
> 
> dec FRAMES
> bne DoneClock
> lda #60

Putting the LDA here saves a couple of cycles.  Good.

> sta FRAMES
> dec SECONDS
> bne DoneClock
> sta SECONDS      ;A was already 60 so no need to reload it
> dec MINUTES
> bne DoneClock
> sta MINUTES      ;A still 60
> dec HOURS
> bne DoneClock
> lda #24

Again, saving a few cycles.  Every one counts!

> sta HOURS
> inc DAYS         ;of course, you could extend this to weeks, months, etc.
> 
> DoneClock

--
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