+Cafeman Posted February 21, 2002 Share Posted February 21, 2002 http://cafeman.www9.50megs.com/atari/5200d...fiArchives.html I spent hours trying to find what was going awry with a routine -- at this link, check out the feb 21, 2002 entry, it explains it. Thanks to Dan's VSS .8 debug mode, I found it! It was driving me crazy! As a side comment -- I have noticed where in statements like these: lda #$counter ;value of F clc sbc #$07 bcc NewLogic .... where the bcc does NOT work like I expect it to. In other words, it didn't branch to NewLogic even though the value of the accumulator didn't cross 0 to FF. Any explanations? Thanks again Dan - that's why I use the good old vSS for development! [ 02-21-2002: Message edited by: Cafeman ] Quote Link to comment Share on other sites More sharing options...
calamari Posted February 22, 2002 Share Posted February 22, 2002 Before a subtraction, set the carry.. before an add, clear the carry. calamari Quote Link to comment Share on other sites More sharing options...
+Cafeman Posted February 22, 2002 Author Share Posted February 22, 2002 heh. Cala just told me this over at #RGVC -- what a revelation! I'm so glad I understand that now, I wasted so much time! I was about to answer my own question.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.