??? 10/01/09 14:23 Read: times |
#169339 - Look at your code Responding to: ???'s previous message |
AHUNDS: MOV A, R0 FZERO: CJNE A, #0, FONE MOV R3, #ZERO FONE: CJNE A, #1, FTWO MOV R3, #ONE FTWO: MOV R3, #TWO RET Let us start with R0 = 1. FZERO will Check for Zero. No match, goto FONE FONE will check for one, match, So, R3 = 1 and NOW THE CATCH FTWO still overwrites R3 with 2 !!! Same situation is in the other 2 routines for tens and units Hope you can fix it now. |