![Epson S1C17 Series Manual Download Page 32](http://html.mh-extra.com/html/epson/s1c17-series/s1c17-series_manual_107781032.webp)
5-10
Seiko Epson Corporation
S1C17 CORE MANUAL
(REV. 1.2)
Extending to rs + imm24 (24-bit
operation instructions)
To extend to
rs
+
imm24
, enter two
ext
instructions directly before the target instruction.
Example:
ext imm13
(1)
ext imm13
(2)
add.a %rd,%rs
If not extended,
rd
=
rd
+
rs
When extended by two
ext
instructions,
rd
=
rs
+
imm24
+
13 12
23
imm13 (2)
imm13
(10:0)
(1)
0
Immediate
23
Data
0
rs
23
Data + imm24
0
rd
5.3.3 Extension of Register Indirect Addressing
Adding displacement to
[%rb]
Memory is accessed at the address derived by adding the immediate specified by an
ext
instruction to the ad-
dress that is indirectly referenced by
[%rb]
.
Adding a 13-bit immediate
Memory is accessed at the address derived by adding the 13-bit immediate specified by
imm13
to the address
specified by the
rb
register. During address calculation,
imm13
is zero-extended to 24-bit quantity.
Example:
ext imm13
ld.b %rd,[%rb] ; = ld.b %rd,[%rb+imm13]
0 0 0 0 0 0 0
+
0 0 0 0
23
13 12
imm13
0
Immediate
23
Memory address pointer
0
rb
Adding a 24-bit immediate
Memory is accessed at the address derived by adding the 24-bit immediate specified by
imm24
to the address
specified by the
rb
register.
Example:
ext imm13
(1)
ext imm13
(2)
ld.b %rd,[%rb] ; = ld.b %rd,[%rb+imm24]
13 12
23
imm13 (2)
imm13
(10:0)
(1)
0
Immediate
23
Memory address pointer
0
rb
+