??? 10/19/05 12:57 Read: times |
#102627 - what more then "the bibl" do you need Responding to: ???'s previous message |
what more then "the bibl" do you need
It says it all, does it not extracted from "the bible" chapter 2 CJNE Function: Compare and Jump if Not Equal Description: CJNE compares the magnitudes of the first two operands, and branches if their values are not equal. The branch destination is computed by adding the signed relative- displacement in the last instruction byte to the PC, after incrementing the PC to the start of the next instruction. The carry flag is set if the unsigned integer value of <dest-byte> is less than the unsigned integer value of <src-byte>; otherwise, the carry is cleared. Neither operand is affected. The first two operands allow four addressing mode combinations: the Accumulator may be compared with any directly addressed byte or immediate data, and any indirect RAM location or working register can be compared with an immediate constant. Example: The Accumulator contains 34H. Register 7 contains 56H. The first instruction in the sequence, CJNE R7,#60H,NOT_EQ ; ... .... ; R7 = 60H. NOT_EQ JC REQ_LOW ; IF R7 < 60H. ; ... .... ; R7 > 60H. sets the carry flag and branches to the instruction at label NOT_EQ. By testing the carry flag, this instruction determines whether R7 is greater or less than 60H. If the data being presented to Port 1 is also 34H, then the instruction, WAIT: CJNE A,P1,WAIT clears the carry flag and continues with the next instruction in sequence, since the Accumulator does equal the data read from P1. (If some other value was being input on P1, the program will loop at this point until the P1 data changes to 34H.) |
Topic | Author | Date |
CJNE clarrification | 01/01/70 00:00 | |
Please find my answer below each quest | 01/01/70 00:00 | |
cjne | 01/01/70 00:00 | |
continued.. | 01/01/70 00:00 | |
external memory | 01/01/70 00:00 | |
Absolutely! | 01/01/70 00:00 | |
cheat.... | 01/01/70 00:00 | |
Hint | 01/01/70 00:00 | |
you young whippersnappers | 01/01/70 00:00 | |
Young Whippersnappers tools | 01/01/70 00:00 | |
size & information | 01/01/70 00:00 | |
CJNE macros | 01/01/70 00:00 | |
More CJNE | 01/01/70 00:00 | |
PRE tags![]() | 01/01/70 00:00 | |
Whatever made you think that?? | 01/01/70 00:00 | |
used to other language | 01/01/70 00:00 | |
CJD | 01/01/70 00:00 | |
welllll... | 01/01/70 00:00 | |
most admirable, but | 01/01/70 00:00 | |
Don't guess! | 01/01/70 00:00 | |
which many that could not be bothered to | 01/01/70 00:00 | |
Value testing | 01/01/70 00:00 | |
Confusing for bigineer | 01/01/70 00:00 | |
Just apply it | 01/01/70 00:00 | |
what more then "the bibl" do you need | 01/01/70 00:00 |