
CHAPTER 4: INSTRUCTION SET
CHAPTER 4 INSTRUCTION SET
The S1C63000 offers high machine cycle efficiency and a high speed instruction set. It has 47 basic instructions (412 instructions in all) that are designed as an instruction system permitting relocatable programming.
This chapter explains about the addressing modes for memory management and about the details of each instruction.
4.1 Addressing Mode
The S1C63000 has the following 8 types of addressing modes and the address specifications corresponding to the various statuses are done concisely and accurately.
•Types of addressing modes
Basic addressing modes (5 types)
1)Immediate data addressing
2)Register direct addressing
3)Register indirect addressing
4)
5)Signed
Extended addressing modes (3 types)
1)
2)
3)Signed
4.1.1 Basic addressing modes
The basic addressing mode is an addressing function independent of the instruction.
•Immediate data addressing
The immediate data addressing is the addressing mode in which the immediate data is used for operations and is used as transfer data. Values that are specified in the operand are directly used as data or addresses. In the instruction list, the following symbols are used to write immediate data.
Table 4.1.1.1 Symbol and size of immediate data
Symbol | Use | Size | Specifiable range |
imm2 | Specifying a bit No. in | 2 bits | |
|
|
|
|
imm4 | 4 bits | ||
|
|
|
|
imm6 | Specifying a software interrupt vector | 6 bits | |
|
|
|
|
imm8 | 8 bits | ||
|
|
|
|
sign8 | Signed | 8 bits | |
|
|
|
|
n4 | Specifying a radix | 4 bits | |
|
|
|
|
Examples: |
| |
CLR | [addr6],imm2 | ...Clears a bit specified with imm2 within a |
LD | %A,imm4 | ...Loads a |
INT | imm6 | ...A software interrupt of which the vector address is specified with imm6 |
LDB | %BA,imm8 | ...Loads an |
CALZ | imm8 | ...Calls a subroutine that starts from an address imm8 |
|
| (Address specifiable range is 0000H to 00FFH.) |
ADD | %X,sign8 | ...Adds a signed |
ADC | %B,%A,n4 | ...Adds data in the A register to the B register with a radix n4 specification |
S1C63000 CORE CPU MANUAL | EPSON | 33 |