Dissect the RJMP instruction indicating how many bits are us
Dissect the RJMP instruction, indicating how many bits are used for the operand and the opcode, and indicate how far it can branch.
Solution
10 Ans) operand -16 bits
opcode-16 bits
jump to an address within PC - 2K +1 and PC + 2K range
Operation:
1. PC PC + k + 1
Syntax: Operands: Program Counter: Stack
2. RJMP k -2K k < 2K PC PC + k + 1 Unchanged
16-bit Opcode:
1100
kkkk
kkkk
kkkk
| 1100 | kkkk | kkkk | kkkk |
