
5-12
Seiko Epson Corporation
S1C17 CORE MANUAL
(REV. 1.2)
Extending to a 24-bit immediate
To extend the
sign7
immediate to a 24-bit immediate, enter two
ext
instructions directly before the target in-
struction.
Example:
ext imm13
(1)
ext imm13
(2)
jrgt sign7
; = jrgt sign24
+
0
0
0
23
21 20
8 7
imm13 (2)
S (1)
sign7
0
Immediate
23
Current address
0
PC
23
New address
0
1
PC
imm13
(2:0)
The most significant bit “S” in the immediate that has been extended by
ext
instructions is the sign. Bits 12–3
in the first
ext
instruction are unused.
Also the
sign10
operand in the
jpr
and
call
instructions can be extended to 24-bit quantity using one
ext
instruction.
Example:
ext imm13
call sign10
; = call sign24
+
0
0
0
23
11 10
imm13
S
sign10
0
Immediate
23
Current address
0
PC
23
New address
0
1
PC
5.3.6 Extension of PC Absolute Addressing
Extending the branch destination address
The
imm7
immediate is extended to a 20- or 24-bit immediate.
Extending to a 20-bit immediate
To extend the immediate to 20-bit quantity, enter one
ext
instruction directly before the target instruction.
Example:
ext imm13
calla imm7
; = calla imm20
0 0
0
0
23
20 19
imm13
7
imm7
6
0
New address
PC
Immediate
23
0
Extending to a 24-bit immediate
To extend the immediate to 24-bit quantity, enter two
ext
instructions directly before the target instruction.
Example:
ext imm13
(1)
ext imm13
(2)
jpa imm7
; = jpa imm24
imm13
(3:0)
(1)
23
20 19
imm13 (2)
7
imm7
6
0
New address
PC
Immediate
23
0