Subject: Re: [stella] Does this look right? (clock) From: emooney@xxxxxxxxxxxxxxxx (Erik Mooney) Date: Fri, 03 Oct 1997 17:30:26 GMT |
>>>dec FRAMES >>>bne DoneClock >>>lda #60 >>>sta FRAMES >>>dec SECONDS >>>bne DoneClock >>>sta SECONDS ;A was already 60 so no need to reload it >>>dec MINUTES > >So you say that DECs would work in BCD afer a SED? You may be right, but I >admit I have never checked this. er, sorry... it doesn't work that way :) In decimal mode, DEC still decrements $10 to $0F. You could load the value into A and do a SBC #1, though, and it will correctly change the $10 to $09. -- 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [stella] Does this look right? , Piero Cavina | Thread | [stella] Does this look right? (clo, Chris Wilkson - MCD |
Re: [stella] Does this look right? , Piero Cavina | Date | [stella] Short BCD time routine, Jim Nitchals |
Month |