+Cafeman #1 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 Share this post Link to post Share on other sites
calamari #2 Posted February 22, 2002 Before a subtraction, set the carry.. before an add, clear the carry. calamari Quote Share this post Link to post Share on other sites
+Cafeman #3 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 Share this post Link to post Share on other sites