??? 03/01/08 06:59 Read: times |
#151714 - Program counter Responding to: ???'s previous message |
Christopher Olivo said:
I just started doing this a couple weeks ago and I can't figure out how to do the following. I need to do a jump if the two operands are equal. CJNE works for not equal, how do I work around this? From what I've read it has to do with JC and JNC but I'm sure how to implement because the carry bit is set if it's less than, not set if it's greater than. So my question with regards to "equal to" still remains. Christopher , you seems to confuse between how the program flows 'Russ' has solved the issue . After CJNE is executed the PC moves to next instruction which is JMP , this is equivalent of If and Else statement used in HLL . AP |
Topic | Author | Date |
CJNE Question | 01/01/70 00:00 | |
CJNE method | 01/01/70 00:00 | |
CJNE method | 01/01/70 00:00 | |
Try this | 01/01/70 00:00 | |
Program counter | 01/01/70 00:00 | |
CJNE Alternatives | 01/01/70 00:00 | |
XOR | 01/01/70 00:00 | |
example![]() | 01/01/70 00:00 |