
CHAPTER 4: INSTRUCTION SET
These instructions perform a PC relative branch using the content (4 bits) of a memory specified with the [addr6] as a relative address. The branch destination address is [the address next to the branch instruction] + [the contents (0 to 15) of the memory specified with the addr6].
(2)Instructions that access from FFC0H to FFFFH
This area is reserved for the I/O memory in the S1C63 Family and the following instructions are provided to operate the control bits of the peripheral circuits.
An address within FFC0H to FFFFH is specified with the addr6. However the addr6 is handled as 0 to 3FH in the machine codes.
CLR | [addr6],imm2 ...Clears a bit specified with the imm2 in a memory specified with the addr6 | |
SET | [addr6],imm2 | ...Sets a bit specified with the imm2 in a memory specified with the addr6 |
TST | [addr6],imm2 | ...Tests a bit specified with the imm2 in a memory specified with the addr6 |
Write only or read only control bits may have been assigned depending on the peripheral circuit. Pay attention when using the
•Signed 8-bit PC relative addressing
The signed
The following instructions operate in this addressing mode.
Jump instructions: | JR | sign8 |
| JRC | sign8 |
| JRNC | sign8 |
| JRZ | sign8 |
| JRNZ | sign8 |
Call instruction: | CALR | sign8 |
4.1.2 Extended addressing mode
In the S1C63000, when data is written to the EXT register (the E flag is set) and a specific instruction follows, the data specified by that instruction is extended with the EXT register data (see Section 2.1.5). When the E flag is set, instructions are extended in an addressing mode different from the mode that is specified in each instruction. This is the extended addressing mode that will be explained below. However, instructions that can operate in the extended addressing mode are limited to those indicated in the instruction list, so check it when programming.
Further the extended addressing mode is effective only for the instruction following immediately after writing data to the EXT register and setting the E flag to "1" (the E flag is reset to "0" by executing that instruction). When using an instruction in the extended addressing mode, write data to be extended to the EXT register or set the E flag (when the E register has already been set).
•16-bit immediate data addressing
The addressing mode of the following instructions, which have an
Instructions that operate in the
LDB | %XL,imm8 | LDB | %Y,imm8 |
ADD | %X,sign8 | ADD | %Y,sign8 |
CMP | %X,imm8 | CMP | %X,imm8 |
The data is extended into 16 bits in which the E register data is the
S1C63000 CORE CPU MANUAL | EPSON | 35 |