2 CPU
2-4
EPSON
S1C17704 TECHNICAL MANUAL
Classification
Mnemonic
Function
Data transfer
ld.a
[%sp],
%rs
General-purpose register (32 bits, zero-extended)
→
stack (
∗
1)
Stack pointer post-increment, post-decrement, and pre-decrement functions
can be used.
[%sp]+,
%rs
[%sp]-,
%rs
-[%sp],
%rs
%sp,
%rs
General-purpose register (24 bits)
→
SP
%sp,
imm7
Immediate
→
SP
Integer arithmetic
operation
add
%rd
,
%rs
16-bit addition between general-purpose registers
Supports conditional execution (/c: executed if C = 1, /nc: executed if C = 0).
add/c
add/nc
add
%rd
,
imm7
16-bit addition of general-purpose register and immediate
add.a
%rd
,
%rs
24-bit addition between general-purpose registers
Supports conditional execution (/c: executed if C = 1, /nc: executed if C = 0).
add.a/c
add.a/nc
add.a
%sp,
%rs
24-bit addition of SP and general-purpose register
%rd
,
imm7
24-bit addition of general-purpose register and immediate
%sp,
imm7
24-bit addition of SP and immediate
adc
%rd
,
%rs
16-bit addition with carry between general-purpose registers
Supports conditional execution (/c: executed if C = 1, /nc: executed if C = 0).
adc/c
adc/nc
adc
%rd
,
imm7
16-bit addition of general-purpose register and immediate with carry
sub
%rd
,
%rs
16-bit subtraction between general-purpose registers
Supports conditional execution (/c: executed if C = 1, /nc: executed if C = 0).
sub/c
sub/nc
sub
%rd
,
imm7
16-bit subtraction of general-purpose register and immediate
sub.a
%rd
,
%rs
24-bit subtraction between general-purpose registers
Supports conditional execution (/c: executed if C = 1, /nc: executed if C = 0).
sub.a/c
sub.a/nc
sub.a
%sp,
%rs
24-bit subtraction of SP and general-purpose register
%rd
,
imm7
24-bit subtraction of general-purpose register and immediate
%sp,
imm7
24-bit subtraction of SP and immediate
sbc
%rd
,
%rs
16-bit subtraction with carry between general-purpose registers
Supports conditional execution (/c: executed if C = 1, /nc: executed if C = 0).
sbc/c
sbc/nc
sbc
%rd
,
imm7
16-bit subtraction of general-purpose register and immediate with carry
cmp
%rd
,
%rs
16-bit comparison between general-purpose registers
Supports conditional execution (/c: executed if C = 1, /nc: executed if C = 0).
cmp/c
cmp/nc
cmp
%rd
,
sign7
16-bit comparison of general-purpose register and immediate
cmp.a
%rd
,
%rs
24-bit comparison between general-purpose registers
Supports conditional execution (/c: executed if C = 1, /nc: executed if C = 0).
cmp.a/c
cmp.a/nc
cmp.a
%rd
,
imm7
24-bit comparison of general-purpose register and immediate
cmc
%rd
,
%rs
16-bit comparison with carry between general-purpose registers
Supports conditional execution (/c: executed if C = 1, /nc: executed if C = 0).
cmc/c
cmc/nc
cmc
%rd
,
sign7
16-bit comparison of general-purpose register and immediate with carry
Logical operation
and
%rd
,
%rs
Logical AND between general-purpose registers
Supports conditional execution (/c: executed if C = 1, /nc: executed if C = 0).
and/c
and/nc
and
%rd
,
sign7
Logical AND of general-purpose register and immediate
or
%rd
,
%rs
Logical OR between general-purpose registers
Supports conditional execution (/c: executed if C = 1, /nc: executed if C = 0).
or/c
or/nc
or
%rd
,
sign7
Logical OR of general-purpose register and immediate
xor
%rd
,
%rs
Exclusive OR between general-purpose registers
Supports conditional execution (/c: executed if C = 1, /nc: executed if C = 0).
xor/c
xor/nc
xor
%rd
,
sign7
Exclusive OR of general-purpose register and immediate
not
%rd
,
%rs
Logical inversion between general-purpose registers (1's complement)
Supports conditional execution (/c: executed if C = 1, /nc: executed if C = 0).
not/c
not/nc
not
%rd
,
sign7
Logical inversion of general-purpose register and immediate (1's complement)
Summary of Contents for S1C17704
Page 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Page 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...