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

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
CHAPTER 10: INSTRUCTION EXTENDER
10.6.4 Shift & Rotate Instructions
Types and functions of extended instructions
These extended instructions allow a shift or rotate operation to be performed in up to 31 bits.
Basic instructions after expansion
Expansion formats
(1) xOP %rd, %rs
(2) xOP %rd, imm5
134
xsrl
xsll
xsra
xsla
xrr
xrl
xsrl
xsll
xsra
xsla
xrr
xrl
xsrl
xsll
xsra
xsla
xrr
xrl
Example: xsrl %rd, %rs
Example: xsrl %rd, imm5
ld.w
and
cmp
jrle
srl
jp.d
sub
rl
imm5
srl
16 < imm5
srl
srl
srl
Extended instruction
%rd, %rs
%rd, %rs
%rd, %rs
%rd, %rs
%rd, %rs
%rd, %rs
%rd, imm5
%rd, imm5
%rd, imm5
%rd, imm5
%rd, imm5
%rd, imm5
%r9, %rs
%r9, 0x1f
%r9, 0x8
4
%rd, 0x8
-3
%r9, 0x8
%rd, %r9
%rd, imm5(3:0)
%rd, 0x8
%rd, 0x8
%rd, imm5(3:0)
8
Expanded into the srl instruction
Expanded into the sll instruction
Expanded into the sra instruction
Expanded into the sla instruction
Expanded into the rr instruction
Expanded into the rl instruction
24
; Stores Shift count
; Checks Shift count (Shift count < 31)
; while (Shift count > 0x8)
; {
;
;
; }
; %rd
(OP = srl, sll, sra, sla, rr, rl)
(OP = srl, sll, sra, sla, rr, rl)
Logical shift to right
Logical shift to left
Arithmetic shift to right
Arithmetic shift to left
Rotation to right
Rotation to left
Logical shift to right
Logical shift to left
Arithmetic shift to right
Arithmetic shift to left
Rotation to right
Rotation to left
%rd
Shift count -= 0x8
%rd shift Shift count
8 < imm5 < 16
srl
srl
imm5 > 24
srl
srl
srl
srl
%rd shift 0x8
%rd, 0x8
%rd, imm5(2:0)
%rd, 0x8
%rd, 0x8
%rd, 0x8
%rd, imm5(2:0)
EPSON
Function
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
imm5 = 16
srl
srl
%rd, 0x8
%rd, 0x8
S5U1C33000C MANUAL
Expansion
format
(1)
(1)
(1)
(1)
(1)
(1)
(2)
(2)
(2)
(2)
(2)
(2)

Related parts for s5u1c33000c