Extension Of Register Indirect 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 rs + imm24 (24-bit
To extend to rs + imm24, enter two ext instructions directly before the target instruction.
Example: ext
imm13
ext
imm13
add.a
%rd,%rs
If not extended, rd = rd + rs
When extended by two ext instructions, rd = rs + imm24
23
rs
23
Immediate
23
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]
23
rb
23
Immediate
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
ext
imm13
ld.b
%rd,[%rb]
23
rb
23
Immediate
5-10
operation instructions)
(1)
(2)
imm13
(1)
(10:0)
Data + imm24
; = ld.b
Memory address pointer
0 0 0 0 0 0 0
0 0 0 0
(1)
(2)
; = ld.b
Memory address pointer
imm13
(1)
(10:0)
Seiko Epson Corporation
Data
+
13 12
imm13 (2)
%rd,[%rb+imm13]
+
13 12
imm13
%rd,[%rb+imm24]
+
13 12
imm13 (2)
0
0
0
0
0
0
0
S1C17 CORE MANUAL
(REV. 1.2)

Advertisement

Table of Contents
loading

Table of Contents