Immediate Data Load Instructions - Epson S5U1C17001C Manual

Cmos 16-bit single chip microcontroller (c compiler package for s1c17 family) (ver. 3.2)
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

6.6.6

Immediate Data Load Instructions

 Types and functions of extended instructions
Extended instruction
sld
%rd,imm16
sld.a
%rd,imm20
sld.a
%sp,imm20
sld
%rd,symbol  imm16
sld.a
%rd,symbol  imm20
%sp,symbol  imm20
sld.a
xld
%rd,imm16
xld.a
%rd,imm24
xld.a
%sp,imm24
%rd,symbol  imm16
xld
%rd,symbol  imm24
xld.a
%sp,symbol  imm24
xld.a
These extended instructions allow a 16-bit/20-bit/24-bit immediate to be loaded directly into a general-purpose register. A symbol
also can be used for immediate specification.
 Basic instructions after expansion
sld, xld
sld.a, xld.a
 Expansion formats
(1) sld %rd,imm16 / xld %rd,imm16
Example: xld %rd,imm16
imm16  0x7f
ld %rd,imm16(6:0)
(2) sld.a %rd,imm20 / sld.a %sp,imm20
Example: sld.a %rd,imm20
imm20  0x7f
ld.a %rd,imm20(6:0)
(3) xld.a %rd,imm24 / xld.a %sp,imm24
Example: xld.a %rd,imm24
imm24  0x7f
ld.a %rd,imm24(6:0)
S5U1C17001C Manual
(Rev. 1.0)
%rd ← imm16
%rd ← imm20
%sp ← imm20
%rd ← symbol  imm16(15:0)
%rd ← symbol  imm20(19:0)
%sp ← symbol  imm20(19:0)
%rd ← imm16
%rd ← imm24
%sp ← imm24
%rd ← symbol  imm16(15:0)
%rd ← symbol  imm24(23:0)
%sp ← symbol  imm24(23:0)
Expanded into the ld instruction
Expanded into the ld.a instruction
ext imm16(15:7)
ld
%rd,imm16(6:0)
ext
imm20(19:7)
ld.a %rd,imm20(6:0)
0x7f < imm24  0xfffff
ext
imm24(19:7)
ld.a %rd,imm24(6:0)
Seiko Epson Corporation
Function
0x7f < imm16
0x7f < imm20
ext
ext
ld.a %rd,imm24(6:0)
Expansion
(1)
(2)
(2)
(4)
(5)
(5)
(1)
(3)
(3)
(4)
(6)
(6)
0xfffff < imm24
imm24(23:20)
imm24(19:7)
6 Assembler
6-19

Advertisement

Table of Contents
loading

Table of Contents