Instruction size is 2 byte long.
Lets assume 100 as starting Address.
Instruction No |
Instruction |
Counting |
K |
|
100-101 |
K+1 |
|
102-103 |
K+2 |
|
104-105, Here Branch takes place, So PC = 106 |
K+3 |
|
106-107 |
K+4 |
|
108-109 |
K+5 |
|
110-111 |
k+6 |
|
112 mentioned that K+6 is Target Address |
PC relative Mode is used TA = PC+ offset
112 = 106 +Offset
offset = 6.