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


> 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
> bne DoneClock
> sta SECONDS      ;A was already 60 so no need to reload it
> 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
Unsubscribing and other info at

Current Thread