
CHAPTER 2: ARCHITECTURE
(2)Instruction with a
JR %A
This instruction branches the program sequence with the content of the A register as an unsigned
Example:
LD | %A,4 |
|
JR | %A | ...Jumps to the instruction 5 steps after |
(3)Instruction with an
JR %BA
This instruction branches the program sequence with the content of the BA register as an unsigned
Example:
LDB | %BA,29 |
|
JR | %BA | ...Jumps to the instruction 30 steps after |
(4)Instruction with a data memory address within 0000H to 003FH in which the content specifies a
JR [addr6]
This instruction branches the program sequence with the content of the data memory specified by the [addr6] as an unsigned
Example: When the content of the address 0010H is 4 (0100B).
SET | [0x0010],0 | ...Sets the bit 0 in the address 0010H to "1" ([0010H] = 5) |
JR | [0x0010] | ...Jumps to the instruction 6 steps after |
•Indirect jump instruction (JP)
The indirect jump instruction "JP %Y" loads the content of the Y register into the PC to branch to that address unconditionally. This instruction can branch entire 64K program memory because the
Example: |
| |
LDB | %EXT,0x24 |
|
LDB | %YL,0x00 | ...Y = 2400H |
JP | %Y | ...Jumps to the address 2400H |
Figure 2.2.3.1 shows the operation of the jump instructions and the branch range.
S1C63000 CORE CPU MANUAL | EPSON | 13 |