s5u1c17001c Epson Electronics America, Inc., s5u1c17001c Datasheet - Page 369

no-image

s5u1c17001c

Manufacturer Part Number
s5u1c17001c
Description
Cmos 16-bit Application Specific Controller
Manufacturer
Epson Electronics America, Inc.
Datasheet
8.6.2 Comparison Instructions
Types and functions of extended instructions
Basic instructions after expansion
Expansion formats
(1) sOP
(2) scmp.a
(3) xcmp.a
S5U1C17001C MANUAL
(C COMPILER PACKAGE FOR S1C17 FAMILY) (Ver. 1.1)
These extended instructions allow you to compare a general-purpose register and a 16-bit/20-bit/24-bit
immediate.
A conditional operation option (/c, /nc) cannot be specified in the extended instructions.
scmp, xcmp
scmc, xcmc
scmp.a, xcmp.a
Example: xcmp
scmp
scmc
scmp.a
xcmp
xcmc
xcmp.a
cmp
cmp.a
cmp.a
%rd,imm16(6:0)
%rd,imm16 / xOP
Extended instruction
%rd,imm20(6:0)
%rd,imm24(6:0)
%rd,imm16
%rd,imm16
%rd,imm20
%rd,imm16
%rd,imm16
%rd,imm24
imm16 ≤ 0x7f
%rd,imm20
imm20 ≤ 0x7f
%rd,imm24
imm24 ≤ 0x7f
%rd,imm16
Expanded into the cmp instruction
Expanded into the cmc instruction
Expanded into the cmp.a instruction
%rd,imm16
ext
cmp
ext
cmp.a
ext
cmp.a
%rd-imm16
%rd-imm16-C
%rd-imm20
%rd-imm16
%rd-imm16-C
%rd-imm24
imm16(15:7)
%rd,imm16(6:0)
0x7f < imm24 ≤ 0xfffff
imm20(19:7)
%rd,imm20(6:0)
imm24(19:7)
%rd,imm24(6:0)
0x7f < imm16
0x7f < imm20
EPSON
(OP = cmp, cmc)
(Sets/resets C, V, Z and N flags in PSR)
(Sets/resets C, V, Z and N flags in PSR)
(Sets/resets C, V, Z and N flags in PSR)
(Sets/resets C, V, Z and N flags in PSR)
(Sets/resets C, V, Z and N flags in PSR)
(Sets/resets C, V, Z and N flags in PSR)
Function
ext
ext
cmp.a
imm24(23:20)
imm24(19:7)
%rd,imm24(6:0)
0xfffff < imm24
8 ASSEMBLER
Expansion
(1)
(1)
(2)
(1)
(1)
(3)
8-15

Related parts for s5u1c17001c