English
Language : 

UPD78320 Datasheet, PDF (50/88 Pages) NEC – 16/8-BIT SINGLE-CHIP MICROCONTROLLER
µPD78320, 78322
8. INSTRUCTION SET
This chapter covers instruction operations.
For the operation codes and the number of instruction execution clock cycles, see µPD78322 User’s Manual (IEU-1248).
(1) Operand identifier and description method
In each instruction operand field, enter the operand using the description method for the instruction operand identifier
(refer to the assembler specification for details). If two or more factors are included in the description method field, select
one factor. The capital alphabetic letters and +, -, #, $, ! and [ ] symbols are keywords and should be described as they
are.
In case of immediate data, describe appropriate numeric values or labels. When describing labels, make sure to
describe #, $, ! and [ ] symbols.
Table 8-1. Operand Identifier and Description Method
Identifier
r
r1
r2
rp
rp1
rp2
sfr
sfrp
post
mem
saddr
saddrp
$addr16
!addr16
addr11
addr5
word
byte
bit
n
Description Method
R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, R13, R14, R15
R0, R1, R2, R3, R4, R5, R6, R7
C, B
RP0, RP1, RP2, RP3, RP4, RP5, RP6, RP7
RP0, RP1, RP2, RP3, RP4, RP5, RP6, RP7
DE, HL, VP, UP
Special function register code (see Table 2-2)
Special function register code (16-bit manipulation enable register; see Table 2-2)
RP0, RP1, RP2, RP3, RP4, RP5/PSW, RP6, RP7
(Two or more instructions can be described. Only PUSH and POP instructions can be
described for RP5 and only PUSHU and POPU instructions can be described for PSW.)
[DE], [HL], [DE+], [HL+], [DE-], [HL-], [VP], [UP] ; Register indirect mode
[DE+A], [HL+A], [DE+B], [HL+B], [VP+DE], [VP+HL] ; Based indexed mode
[DE+byte], [HL+byte], [VP+byte], [UP+byte], [SP+byte] ; Based mode
word[A], word[B], word[DE], word[HL]
; Indexed mode
FE20H to FF1FH immediate data or label
FE20H to FF1EH immediate data (bit0 = 0) or label (for 16-bit manipulation)
0000H to FDFFH immediate data or label; relative addressing
0000H to FDFFH immediate data or label; immediate addressing
(Up to FFFFH describable by MOV instruction)
800H to FFFH immediate data or label
40H to 7EH immediate data (bit0 = 0)Note or label
16-bit immediate data or label
8-bit immediate data or label
3-bit immediate data or label
3-bit immediate data (0 to 7)
Note Do not make word access to bit0 = 1 (odd address).
Remarks 1. Although rp and rp1 have the same describable register names, they generate different codes.
2. r, r1, rp, rp1 and post can be described with absolute names (R0 to R15, RP0 to RP7) as well as functional
names (X, A, C, B, E, D, L, H, AX, BC, DE, HL, VP, UP (see Table 2-1 for details of the relationships between
the absolute and functional names).
3. Immediate addressing is enabled for all spaces. Relative addressing is only enabled from the first address
of the subsequent instruction to the range of -128 to +127.
50