
150
μ
PD75237
8.
INSTRUCTION SET
8.1
CHARACTERISTIC INSTRUCTIONS OF
μ
PD75237
(1)
GETI instruction
The GETI instruction is a 1-byte instruction to execute the following three types of operations by referring
to the 2-byte table in the program memory.
It can considerably help to decrease the number of program steps.
(a)
(b)
(c)
(d)
Subroutine call to 16K-byte space (0000H to 3FFFH) of table data as call instruction call address.
Branch to 16K-byte space (0000H to 3FFFH) of table data as branch instruction branch address
Execution of table data as 2-byte instruction (except BRCB and CALLF instructions)
Execution of table data as 1-byte instruction and 2 operation codes.
As shown in Fig. 3-2, the table addressed referred to by GETI instruction as 0020H to 007FH of the program
memory and data can be set in 48 tables.
When describing table addresses as operands, describe even addresses.
Note
1. 2-byte instructions which can be referred to by GETI instruction are limited to 2-machine cycle
instructions.
2. When referring to two 1-byte instructions by GETI instruction, combinations are limited as follows.
1st Byte Instruction
2nd Byte Instruction
INCS
DECS
INCS
DECS
INCS
L
L
H
H
HL
INCS
DECS
INCS
DECS
INCS
E
E
D
D
DE
INCS
DECS
INCS
DECS
L
L
D
D
MOV
A, @HL
MOV
@HL, A
XCH
A, @HL
MOV
A, @DE
XCH
A, @DE
MOV
A, @DL
XCH
A, @DL
3. When a branch instruction or subroutine instruction is referenced by a GETI instruction, the relevant
branch destination or subroutine call address must be within 16K bytes (0000H to 3FFFH). It is not
possible to use a GETI instruction to reference a branch instruction or subroutine call instruction to an
address outside this range (4000H to 5F7FH).