??? 05/23/07 22:40 Modified: 05/23/07 22:42 Read: times Msg Score: -1 +1 Good Answer/Helpful -2 Answer is Wrong |
#139706 - CLR C Responding to: ???'s previous message |
; add this clr c ; ---> what if C was set by some previous operation?? mov a,dph cjne a,#075h,Next jnc error ;if c is set, acc must be lower than 75h ;if c is clr, acc is higher or equal to 75 Next: ;if we get here, acc is lower than 75h Error: ;if we get here, acc is higher than 75h |
Topic | Author | Date |
compare two values, jump if greater or equal | 01/01/70 00:00 | |
"the bible" ch 2 gives the answer | 01/01/70 00:00 | |
compare & jump if higher | 01/01/70 00:00 | |
a goof | 01/01/70 00:00 | |
How about... | 01/01/70 00:00 | |
CLR C | 01/01/70 00:00 | |
compare and jump... | 01/01/70 00:00 | |
Why? | 01/01/70 00:00 | |
wrong! | 01/01/70 00:00 | |
no need | 01/01/70 00:00 | |
add a,#(0x100-0x75), jc ...![]() | 01/01/70 00:00 |