Epson S1C33 Series Core Manual page 36

Cmos 32-bit single chip microcomputer
Hide thumbs Also See for S1C33 Series:
Table of Contents

Advertisement

5 INSTRUCTION SET
Extending register-to-register operation instructions
Register-to-register operation instructions are extended by one or two ext instructions. Unlike data transfer
instructions, these instructions add or subtract the content of the rs register and the immediate specified by
an ext instruction according to the arithmetic operation to be performed. They then store the result in the rd
register. The content of the rd register does not affect the arithmetic operation performed. An example of how to
extend for an add operation is shown below.
Extending to rs + imm13
To extend to rs + imm13, enter one ext instruction directly before the target instruction.
Example: ext
imm13
add
%rd,%rs
If not extended, rd = rd + rs
When extended by one ext instruction, rd = rs + imm13
rs
Immediate
rd
Extending to rs + imm26
To extend to rs + imm26, enter two ext instructions directly before the target instruction.
Example: ext
imm13 (1)
imm13 (2)
ext
add
%rd,%rs
If not extended, rd = rd + rs
When extended by two ext instructions, rd = rs + imm26
rs
Immediate
rd
28
31
31
0
0
0
0
0
0
0
0 0 0 0 0 0 0 0
31
31
31
26 25
0
0
0
0
0
0
31
Data
+
13 12
0 0 0 0
Data + imm13
Data
+
13 12
imm13 (1)
Data + imm26
EPSON
imm13
imm13 (2)
S1C33 FAMILY C33 PE CORE MANUAL
0
0
0
0
0
0

Advertisement

Table of Contents
loading

Table of Contents