s5u1c33000c Epson Electronics America, Inc., s5u1c33000c Datasheet - Page 151

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
10.6.5 Data Transfer Instructions (between Stack and Register)
Types and functions of extended instructions
These extended instructions allow you to directly specify a displacement of up to 32 bits. Specification of imm32
can be omitted.
Basic instructions after expansion
Expansion formats
(1) Byte data transfer (xld.b, xld.ub)
(2) Half word data transfer (xld.h, xld.uh)
(3) Word data transfer (xld.w)
(4) Word data transfer using SP as the source (xld.w [%sp+imm32], %sp)
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
xld.b
xld.ub
xld.h
xld.uh
xld.w
xld.b
xld.h
xld.w
xld.w
xld.b
xld.ub
xld.h
xld.uh
xld.w
If imm32 is omitted, the ext33 assumes that [%sp+0x0] is specified as it expands the instruction.
Example: xld.b %rd, [%sp+imm32]
Example: xld.h %rd, [%sp+imm32]
Example: xld.w %rd, [%sp+imm32]
imm32
ld.b
imm32
ld.h
imm32
ld.w
imm32
ld.w
ld.w
Extended instruction
%rd, [%sp+imm32]
%rd, [%sp+imm32]
%rd, [%sp+imm32]
%rd, [%sp+imm32]
%rd, [%sp+imm32]
[%sp+imm32], %rs
[%sp+imm32], %rs
[%sp+imm32], %rs
[%sp+imm32], %sp
%rd, [%sp+imm32(5:0)]
%rd, [%sp+imm32(6:1)]
%rd, [%sp+imm32(7:2)]
%r9, %sp
[%sp+imm32(7:2)], %r9
0x3f
0x7f
0xff
0xff
Expanded into the ld.b instruction
Expanded into the ld.ub instruction
Expanded into the ld.h instruction
Expanded into the ld.uh instruction
Expanded into the ld.w instruction
%rd
%rd
%rd
%rd
%rd
B[%sp+imm32]
H[%sp+imm32]
W[%sp+imm32]
W[%sp+imm32]
B[%sp+imm32] (with sign extension)
B[%sp+imm32] (with zero extension)
H[%sp+imm32] (with sign extension)
H[%sp+imm32] (with zero extension)
W[%sp+imm32]
0x3f < imm32
ext
ld.b
0x7f < imm32
ext
ld.h
0xff < imm32
ext
ld.w
0xff < imm32
ld.w
ext
ld.w
imm32(18:6)
%rd, [%sp+imm32(5:0)]
imm32(18:6)
%rd, [%sp+imm32(5:0)]
imm32(18:6)
%rd, [%sp+imm32(5:0)]
%r9, %sp
imm32(18:6)
[%sp+imm32(5:0)], %r9
%rs(7:0)
%rs(15:0)
%rs
%sp
EPSON
0x7ffff
0x7ffff
0x7ffff
0x7ffff
Function
CHAPTER 10: INSTRUCTION EXTENDER
imm32 > 0x7ffff
ext
ext
ld.b
imm32 > 0x7ffff
ext
ext
ld.h
imm32 > 0x7ffff
ext
ext
ld.w
imm32 > 0x7ffff
ld.w
ext
ext
ld.w
imm32(31:19)
imm32(18:6)
%rd, [%sp+imm32(5:0)]
imm32(31:19)
imm32(18:6)
%rd, [%sp+imm32(5:0)]
imm32(31:19)
imm32(18:6)
%rd, [%sp+imm32(5:0)]
%r9, %sp
imm32(31:19)
imm32(18:6)
[%sp+imm32(5:0)], %r9
Expansion
format
(1)
(1)
(2)
(2)
(3)
(1)
(2)
(3)
(4)
135

Related parts for s5u1c33000c