2 CPU
S1C17704 TECHNICAL MANUAL
EPSON
2-3
2.3 Instruction Set
The S1C17 Core instruction codes are all fixed to 16 bits in length which, combined with pipelined processing,
allows most important instructions to be executed in one cycle. For details, refer to the “S1C17 Family S1C17 Core
Manual.”
Table 2.3.1 List of S1C17 Core Instructions
Classification
Mnemonic
Function
Data transfer
ld.b
%rd
,
%rs
General-purpose register (byte)
→
general-purpose register (sign-extended)
%rd
,[
%rb
]
Memory (byte)
→
general-purpose register (sign-extended)
Memory address post-increment, post-decrement, and pre-decrement
functions can be used.
%rd
,[
%rb
]+
%rd
,[
%rb
]-
%rd
,-[
%rb
]
%rd
,[%sp+
imm7
]
Stack (byte)
→
general-purpose register (sign-extended)
%rd
,[
imm7
]
Memory (byte)
→
general-purpose register (sign-extended)
[
%rb
],
%rs
General-purpose register (byte)
→
memory
Memory address post-increment, post-decrement, and pre-decrement
functions can be used.
[
%rb
]+,
%rs
[
%rb
]-,
%rs
-[
%rb
],
%rs
[%sp+
imm7
],
%rs
General-purpose register (byte)
→
stack
[
imm7
],
%rs
General-purpose register (byte)
→
memory
ld.ub
%rd
,
%rs
General-purpose register (byte)
→
general-purpose register (zero-extended)
%rd
,[
%rb
]
Memory (byte)
→
general-purpose register (zero-extended)
Memory address post-increment, post-decrement, and pre-decrement
functions can be used.
%rd
,[
%rb
]+
%rd
,[
%rb
]-
%rd
,-[
%rb
]
%rd
,[%sp+
imm7
]
Stack (byte)
→
general-purpose register (zero-extended)
%rd
,[
imm7
]
Memory (byte)
→
general-purpose register (zero-extended)
ld
%rd
,
%rs
General-purpose register (16 bits)
→
general-purpose register
%rd
,
sign7
Immediate
→
general-purpose register (sign-extended)
%rd
,[
%rb
]
Memory (16 bits)
→
general-purpose register
Memory address post-increment, post-decrement, and pre-decrement
functions can be used.
%rd
,[
%rb
]+
%rd
,[
%rb
]-
%rd
,-[
%rb
]
%rd
,[%sp+
imm7
]
Stack (16 bits)
→
general-purpose register
%rd
,[
imm7
]
Memory (16 bits)
→
general-purpose register
[
%rb
],
%rs
General-purpose register (16 bits)
→
memory
Memory address post-increment, post-decrement, and pre-decrement
functions can be used.
[
%rb
]+,
%rs
[
%rb
]-,
%rs
-[
%rb
],
%rs
[%sp+
imm7
],
%rs
General-purpose register (16 bits)
→
stack
[
imm7
],
%rs
General-purpose register (16 bits)
→
memory
ld.a
%rd
,
%rs
General-purpose register (24 bits)
→
general-purpose register
%rd
,
imm7
Immediate
→
general-purpose register (zero-extended)
%rd
,[
%rb
]
Memory (32 bits)
→
general-purpose register (
∗
1)
Memory address post-increment, post-decrement, and pre-decrement
functions can be used.
%rd
,[
%rb
]+
%rd
,[
%rb
]-
%rd
,-[
%rb
]
%rd
,[%sp+
imm7
]
Stack (32 bits)
→
general-purpose register (
∗
1)
%rd
,[
imm7
]
Memory (32 bits)
→
general-purpose register (
∗
1)
[
%rb
],
%rs
General-purpose register (32 bits, zero-extended)
→
memory (
∗
1)
Memory address post-increment, post-decrement, and pre-decrement
functions can be used.
[
%rb
]+,
%rs
[
%rb
]-,
%rs
-[
%rb
],
%rs
[%sp+
imm7
],
%rs
General-purpose register (32 bits, zero-extended)
→
stack (
∗
1)
[
imm7
],
%rs
General-purpose register (32 bits, zero-extended)
→
memory (
∗
1)
%rd
,%sp
SP
→
general-purpose register
%rd
,%pc
PC
→
general-purpose register
%rd
,[%sp]
Stack (32 bits)
→
general-purpose register (
∗
1)
Stack pointer post-increment, post-decrement, and pre-decrement functions
can be used.
%rd
,[%sp]+
%rd
,[%sp]-
%rd
,-[%sp]
Содержание S1C17704
Страница 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Страница 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...