??? 05/25/07 09:45 Read: times Msg Score: -1 -1 Answer is Wrong |
#139814 - How about... Responding to: ???'s previous message |
"The Carry bit (C) is set if operand1 is less than operand2, otherwise it is cleared." mov a,dph cjne a,#075h,Next Next: ;always go to this line jnc Error ;if c is set, acc must be lower than 75h ;if c is clr, acc is higher or equal to 75 ;if we get here, acc is lower than 75h Error: ;if we get here, acc is higher than or equals 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 |