English
Language : 

UPD784031 Datasheet, PDF (52/90 Pages) NEC – 16/8-BIT SINGLE-CHIP MICROCONTROLLER
µPD784031
13. INSTRUCTION SET
(1) 8-bit instructions (The instructions enclosed in parentheses are implemented by a combination of
operands, where A is described 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, CHKL, CHKLA
Table 13-1. Instructions Implemented by 8-Bit Addressing
2nd operand #byte
A
1st operand
r
saddr
sfr
!addr16 mem
r3
r'
saddr'
!!addr24 [saddrp] PSWL
[%saddrg] PSWH
A
(MOV) (MOV) MOV
(MOV)Note 6 MOV
(MOV) MOV
MOV
ADDNote 1 (XCH)
XCH
(XCH)Note 6 (XCH) (XCH)
XCH
(ADD)Note 1 (ADD)Note 1 (ADD)Notes 1, 6 (ADD)Note 1 ADDNote 1 ADDNote 1
r
MOV
(MOV) MOV
MOV
MOV
MOV
ADDNote 1 (XCH)
XCH
XCH
XCH
XCH
(ADD)Note 1 ADDNote 1 ADDNote 1 ADDNote 1
saddr
sfr
MOV
(MOV)Note 6 MOV
MOV
ADDNote 1 (ADD)Note 1 ADDNote 1 XCH
ADDNote 1
MOV
MOV
MOV
ADDNote 1 (ADD)Note 1 ADDNote 1
!addr16
!!addr24
mem
[saddrp]
[%saddrg]
mem3
MOV
(MOV) MOV
ADDNote 1
MOV
ADDNote 1
r3
PSWL
PSWH
B, C
STBC, WDM
[TDE+]
[TDE–]
MOV
MOV
MOV
(MOV)
(ADD)Note 1
MOVMNote 4
[WHL+]
[WHL-]
n
NoneNote 2
(MOV)
(XCH)
(ADD)Note 1
RORNote 3 MULU
DIVUW
INC
DEC
INC
DEC
DBNZ
PUSH
POP
CHKL
CHKLA
ROR4
ROL4
MOVBKNote 5
DBNZ
Notes 1. ADDC, SUB, SUBC, AND, OR, XOR, and CMP are the same as ADD.
2. There is no second operand, or the second operand is not an operand address.
3. ROL, RORC, ROLC, SHR, and SHL are the same as ROR.
4. XCHM, CMPME, CMPMNE, CMPMNC, and CMPMC are the same as MOVM.
5. XCHBK, CMPBKE, CMPBKNE, CMPBKNC, and CMPBKC are the same as MOVBK.
6. When saddr is saddr2 with this combination, an instruction with a short code exists.
52