6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Sep 21, 2024 12:46 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Jan 16, 2008 4:16 am 
Offline

Joined: Sat Jan 04, 2003 10:03 pm
Posts: 1706
http://6502org.wikidot.com/software-incdec

The 16-bit decrement with test for zero appears to be buggy. Shouldn't that code read:

Code:
      LDA NUML
      BNE LABEL
      LDA NUMH
      BEQ ZERO ; branch when NUM = $0000 (NUM is not decremented in that case)
      DEC NUMH
LABEL DEC NUML

??


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jan 16, 2008 5:41 am 
Offline
User avatar

Joined: Thu Mar 11, 2004 7:42 am
Posts: 362
Yes it should. Good eye. I've corrected it.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: