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

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
10.6 Extended Instructions
The ext33 expands the extended instructions, explained below, to mnemonics that can be processed by the
Assembler as33.
Extended instructions allow an operation that normally requires using multiple instructions including the ext
instruction to be written in one instruction. They are expanded into the absolutely necessary minimum basic
instructions according to instruction functionality and the operand's immediate size.
Symbols used in explanation
immX
signX
symbol
label
(X:Y)
10.6.1 Arithmetic Operation Instructions
Types and functions of extended instructions
These extended instructions allow a 32-bit immediate to be specified directly in an add or subtract operation.
Furthermore, they support addition or subtraction between a stack pointer SP and a general-purpose register.
Basic instructions after expansion
Expansion formats
(1) xOP %rd, %rd, imm32
(2) xOP %sp, %sp, imm32
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
xadd
xsub
xadd
xsub
xadd
xsub
xadd
xsub
xadd
xsub
xadd
xsub
xadd
xsub
Example: xadd %rd, %rd, imm32
Example: xadd %sp, %sp, imm32
imm32
add
imm32
add
Extended instruction
Unsigned X-bit immediate
Signed X-bit immediate
Symbol to indicate memory address
Jump address label
Bit field from bit X to bit Y
%rd, %rd, imm32
%rd, %rd, imm32
%sp, %sp, imm32
%sp, %sp, imm32
%rd, %rs, imm32
%rd, %rs, imm32
%rd, %sp, imm32
%rd, %sp, imm32
%rd, %rd, %sp
%rd, %rd, %sp
%sp, %sp, %rs
%sp, %sp, %rs
%rd, imm32(5:0)
%sp, imm32(11:2)
0x3f
0xfff
Expanded into the add instruction
Expanded into the sub instruction
%rd
%rd
%sp
%sp
%rd
%rd
%rd
%rd
%rd
%rd
%sp
%sp
(OP = add, sub)
(OP = add, sub)
%rd + imm32
%rd - imm32
%rs + imm32
%rs - imm32
%sp + imm32
%sp - imm32
%rd + %sp
%rd - %sp
%sp + imm32
%sp - imm32
%sp + %rs
%sp - %rs
0x3f < imm32
ext
add
0xfff < imm32
ld.w
ext
add
ld.w
imm32(18:6)
%rd, imm32(5:0)
%r9, %sp
imm32(18:6)
%r9, imm32(5:0)
%sp, %r9
EPSON
0x7ffff
0x7ffff
Function
CHAPTER 10: INSTRUCTION EXTENDER
imm32 > 0x7ffff
ext
ext
add
imm32 > 0x7ffff
ld.w
ext
ext
add
ld.w
imm32(31:19)
imm32(18:6)
%rd, imm32(5:0)
%r9, %sp
imm32(31:19)
imm32(18:6)
%r9, imm32(5:0)
%sp, %r9
Expansion
format
(1)
(1)
(2)
(2)
(3)
(3)
(4)
(4)
(5)
(5)
(6)
(6)
131

Related parts for s5u1c33000c