5
INSTRUCTION SET
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
29
Extending the displacement of PC relative branch instructions
The
sign8
immediate in PC relative branch instructions is extended to a signed
22
-bit or a signed
32
-bit
immediate. The
sign8
immediate in PC relative branch instructions is multiplied by
2
for conversion to a
relative value for the jump address, and the derived value is then added to PC to determine the jump address.
The
ext
instructions extend this relative jump address value.
Extending to a
22
-bit immediate
To extend the
sign8
immediate to a
22
-bit immediate, enter one
ext
instruction directly before the target
instruction.
Example:
ext
imm13
jrgt
sign8
S S S S
+
0
0
0
S
S
S
S
S
S
S
31
22 21
9 8
imm13
sign8
0
Immediate
31
Current address
0
pc
31
New address
0
1
pc
The most significant bit
“
S
”
in the immediate that has been extended by the
ext
instruction is the sign, with
which bits
31
–
22
are extended to become signed
22
-bit data. The most significant bit in
sign8
is handled as the
MSB data of
8
-bit data, and not as the sign.
Extending to a
32
-bit immediate
To extend the
sign8
immediate to a
32
-bit immediate, enter two
ext
instructions directly before the target
instruction.
Example:
ext
imm13
(
1
)
ext
imm13
(
2
)
jrgt
sign8
+
0
0
0
31
22 21
9 8
imm13
(2)
S
imm13
[12:3] (1)
sign8
0
Immediate
31
Current address
0
pc
31
New address
0
1
pc
The most significant bit
“
S
”
in the immediate that has been extended by
ext
instructions is the sign. Bits
2
–
0
in the first
ext
instruction are unused.
Содержание S1C33 Series
Страница 1: ...CMOS 32 BIT SINGLE CHIP MICROCOMPUTER Core Manual S1C33 Family C33 PE ...
Страница 4: ......