English
Language : 

UPD784218 Datasheet, PDF (57/92 Pages) NEC – 16-/8-BIT SINGLE-CHIP MICROCONTROLLERS
µPD784218, 784218Y
14. INSTRUCTION SET
(1) 8-bit instructions (The instructions in parentheses are combinations realized by describing A as r)
MOV, XCH, ADD, ADDC, SUB, SUBC, AND, OR, XOR, CMP, MULU, DIVUW, INC, DEC, ROR, ROL, RORC,
ROLC, SHR, SHL, ROR4, ROL4, DBNZ, PUSH, POP, MOVM, XCHM, CMPME, CMPMNE, CMPMNC,
CMPMC, MOVBK, XCHBK, CMPBKE, CMPBKNE, CMPBKNC, CMPBKC
Table 14-1. Instruction List by 8-Bit Addressing
Second Operand #byte
A
First Operand
r
saddr
sfr
!addr16 mem
r3
[WHL+]
n
NoneNote 2
r'
saddr'
!!addr24 [saddrp] PSWL [WHL–]
[%saddrg] PSWH
A
(MOV) (MOV)
MOV (MOV)Note 6 MOV
(MOV)
MOV
MOV (MOV)
ADDNote 1 (XCH)
XCH (XCH)Note 6 (XCH) (XCH)
XCH
(XCH)
(ADD)Note 1 (ADD)Note 1 (ADD)Notes 1,6 (ADD)Note 1 ADDNote 1 ADDNote 1
(ADD)Note 1
r
MOV (MOV) MOV
MOV
MOV
MOV
ADDNote 1 (XCH)
XCH
XCH
XCH
XCH
(ADD)Note 1 ADDNote 1 ADDNote 1 ADDNote 1
RORNote 3
MULU
DIVUW
INC
DEC
saddr
MOV (MOV)Note 6 MOV
MOV
ADDNote 1 (ADD)Note 1 ADDNote 1
XCH
ADDNote 1
INC
DEC
DBNZ
sfr
MOV
MOV
MOV
ADDNote 1 (ADD)Note 1 ADDNote 1
PUSH
POP
!addr16
!!addr24
MOV
(MOV)
ADDNote 1
MOV
mem
[saddrp]
[%saddrg]
MOV
ADDNote 1
mem3
ROR4
ROL4
r3
PSWL
PSWH
MOV
MOV
B, C
DBNZ
STBC, WDM
MOV
[TDE+]
[TDE–]
(MOV)
(ADD)Note 1
MOVMNote 4
MOVBKNote 5
Notes 1. The operands of ADDC, SUB, SUBC, AND, OR, XOR, and CMP are the same as those of ADD.
2. Either the second operand is not used, or the second operand is not an operand address.
3. The operands of ROL, RORC, ROLC, SHR, and SHL are the same as those of ROR.
4. The operands of XCHM, CMPME, CMPMNE, CMPMNC, and CMPMC are the same as those of MOVM.
5. The operands of XCHBK, CMPBKE, CMPBKNE, CMPBKNC, and CMPBKC are the same as those of
MOVBK.
6. The code length of some instructions having saddr2 as saddr in this combination is short.
Data Sheet U12304EJ2V0DS00
57