0
69kviews
Compare AJMP, SJMP and LJMP instruction of 8051.
1 Answer
written 7.8 years ago by |
SJMP | LJMP | AJMP |
---|---|---|
Short jump, relative address is 8 bit it support 127 location forward | Long jump range is 64 kb | Absolute jump to anywhere within 2k block of program memory |
It uses 8 bit address. | It uses 16 bit address | It uses an 11 bit address |
2 byte instruction. | 3 byte instruction | 2 byte instruction |
Conditional branch instruction can use,relative JMP. | Cannot use long JMP | Cannot the JMP absolute |
Address calculation | PC is equal to 11 bit | PC is equal to 16 bit. |