Extension Of Pc Absolute Addressing - Epson S1C17 Series Manual

Cmos 16-bit single chip microcontroller
Hide thumbs Also See for S1C17 Series:
Table of Contents

Advertisement

5 INSTRUCTION SET
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
ext
imm13
jrgt
sign7
23
Immediate
imm13
23
PC
23
PC
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
23
Immediate
23
PC
23
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
23
Immediate
23
PC
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
ext
imm13
jpa
imm7
23
imm13
Immediate
23
PC
5-12
(1)
(2)
; = jrgt
21 20
S (1)
imm13 (2)
(2:0)
Current address
New address
; = call
S
imm13
Current address
New address
; = calla
20 19
0
0
0 0
imm13
(1)
(2)
; = jpa
20 19
(1)
imm13 (2)
(3:0)
Seiko Epson Corporation
sign24
8 7
sign7
+
sign24
11 10
sign10
+
imm20
7
6
New address
imm24
7
6
New address
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
imm7
0
0
imm7
0
S1C17 CORE MANUAL
(REV. 1.2)

Advertisement

Table of Contents
loading

Table of Contents