DP80390
Pipelined High Performance
Microcontroller
Instructions set details
ver 3.10
DP80390 Instructions set details
-2-
Contents
1.
2.
Overview ____________________________________________________________ 7
1.1. Document structure. ________________________________________________________7
Instructions set brief___________________________________________________ 7
2.1. Instruction set notes ________________________________________________________7
2.2. Instruction set brief – functional order _________________________________________8
2.2.1.
2.2.2.
2.2.3.
2.2.4.
2.2.5.
Arithmetic operations ___________________________________________________________ 8
Logic operations _______________________________________________________________ 9
Boolean manipulation___________________________________________________________ 9
Data transfers________________________________________________________________ 10
Program branches ____________________________________________________________ 11
2.3. Instruction set brief – hexadecimal order ______________________________________12
3.
Instructions set details ________________________________________________ 15
3.1. ACALL * _________________________________________________________________15
3.1.1.
3.1.2.
3.2.1.
3.2.2.
3.2.3.
3.2.4.
3.3.1.
3.3.2.
3.3.3.
3.3.4.
3.4.1.
3.4.2.
3.5.1.
3.5.2.
3.5.3.
3.5.4.
3.5.5.
3.5.6.
3.5.7.
3.5.8.
3.6.1.
3.6.2.
3.6.3.
3.6.4.
3.7.1.
3.7.2.
3.7.3.
3.8.1.
3.8.2.
LARGE _____________________________________________________________________ 15
FLAT ______________________________________________________________________ 16
ADD A, Rn __________________________________________________________________
ADD A, direct ________________________________________________________________
ADD A, @Ri _________________________________________________________________
ADD A, #data ________________________________________________________________
ADDC A, Rn _________________________________________________________________
ADDC A, direct _______________________________________________________________
ADDC A, @Ri________________________________________________________________
ADDC A, #data_______________________________________________________________
17
17
18
18
19
19
20
20
3.2. ADD_____________________________________________________________________17
3.3. ADDC ___________________________________________________________________19
3.4. AJMP * __________________________________________________________________21
LARGE _____________________________________________________________________ 21
FLAT ______________________________________________________________________ 22
ANL A, Rn __________________________________________________________________
ANL A, direct ________________________________________________________________
ANL A, @Ri _________________________________________________________________
ANL A, #data ________________________________________________________________
ANL direct, A ________________________________________________________________
ANL direct, #data _____________________________________________________________
ANL C, bit___________________________________________________________________
ANL C, /bit __________________________________________________________________
CJNE A, direct, rel ____________________________________________________________
CJNE A, #data, rel ____________________________________________________________
CJNE RN, #data, rel___________________________________________________________
CJNE @Ri, #data, rel __________________________________________________________
23
23
24
24
24
24
25
25
26
27
27
28
3.5. ANL _____________________________________________________________________23
3.6. CJNE ____________________________________________________________________26
3.7. CLR _____________________________________________________________________29
CLR A______________________________________________________________________ 29
CLR bit ____________________________________________________________________ 29
CLR C _____________________________________________________________________ 30
CPL A______________________________________________________________________ 31
CPL bit _____________________________________________________________________ 31
http://www.DigitalCoreDesign.com
http://www.dcd.pl
3.8. CPL _____________________________________________________________________31
All trademarks mentioned in this document
are trademarks of their respective owners.
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.
DP80390 Instructions set details
3.8.3.
-3-
CPL C______________________________________________________________________ 32
3.9. DA ______________________________________________________________________33
3.10.
DEC ___________________________________________________________________34
DEC A _____________________________________________________________________
DEC Rn ____________________________________________________________________
DEC direct __________________________________________________________________
DEC @Ri ___________________________________________________________________
34
34
35
35
3.10.1.
3.10.2.
3.10.3.
3.10.4.
3.11.
3.12.
DIV____________________________________________________________________36
DJNZ __________________________________________________________________37
3.12.1. DJNZ Rn, rel_________________________________________________________________ 37
3.12.2. DJNZ direct, rel ______________________________________________________________ 38
3.13.
INC ___________________________________________________________________39
INC A ______________________________________________________________________
INC Rn _____________________________________________________________________
INC direct ___________________________________________________________________
INC @Ri ____________________________________________________________________
INC DPTR* __________________________________________________________________
39
39
40
40
40
3.13.1.
3.13.2.
3.13.3.
3.13.4.
3.13.5.
3.14.
3.15.
3.16.
3.17.
3.18.
3.19.
3.20.
3.21.
3.22.
JB ____________________________________________________________________41
JBC ___________________________________________________________________42
JC ____________________________________________________________________43
JMP* __________________________________________________________________44
JNB ___________________________________________________________________45
JNC ___________________________________________________________________46
JNZ ___________________________________________________________________47
JZ ____________________________________________________________________48
LCALL * _______________________________________________________________49
3.22.1. LARGE _____________________________________________________________________ 49
3.22.2. FLAT ______________________________________________________________________ 50
3.23.
LJMP *_________________________________________________________________51
3.23.1. LARGE _____________________________________________________________________ 51
3.23.2. FLAT ______________________________________________________________________ 51
3.24.
MOV __________________________________________________________________52
52
52
52
53
53
53
53
54
54
54
54
55
55
55
55
56
56
57
3.24.1. MOV A, Rn __________________________________________________________________
3.24.2. MOV A, direct ________________________________________________________________
3.24.3. MOV A, @Ri_________________________________________________________________
3.24.4. MOV A, #data________________________________________________________________
3.24.5. MOV Rn, A __________________________________________________________________
3.24.6. MOV Rn, direct_______________________________________________________________
3.24.7. MOV Rn, #data_______________________________________________________________
3.24.8. MOV direct, A ________________________________________________________________
3.24.9. MOV direct, Rn_______________________________________________________________
3.24.10. MOV direct, direct ____________________________________________________________
3.24.11. MOV direct, @Ri _____________________________________________________________
3.24.12. MOV direct, #data ____________________________________________________________
3.24.13. MOV @Ri, A ________________________________________________________________
3.24.14. MOV @Ri, direct _____________________________________________________________
3.24.15. MOV @Ri, #data_____________________________________________________________
3.24.16. MOV C, bit _________________________________________________________________
3.24.17. MOV bit, C _________________________________________________________________
3.24.18. MOV DPTR, #data16 - LARGE__________________________________________________
All trademarks mentioned in this document
are trademarks of their respective owners.
http://www.DigitalCoreDesign.com
http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.
DP80390 Instructions set details
-4-
3.24.19. MOV DPTR, #data24* - FLAT___________________________________________________ 57
3.25.
MOVC* ________________________________________________________________58
3.25.1. MOVC A, @A + DPTR _________________________________________________________ 58
3.25.2. MOVC A, @A + PC ___________________________________________________________ 58
3.26.
MOVX*_________________________________________________________________59
MOVX A, @Ri _______________________________________________________________
MOVX A, @DPTR ____________________________________________________________
MOVX @Ri, A _______________________________________________________________
MOVX @DPTR, A ____________________________________________________________
59
59
60
60
3.26.1.
3.26.2.
3.26.3.
3.26.4.
3.27.
3.28.
3.29.
MUL___________________________________________________________________61
NOP___________________________________________________________________62
ORL ___________________________________________________________________63
ORL A, Rn __________________________________________________________________
ORL A, direct ________________________________________________________________
ORL A, @Ri _________________________________________________________________
ORL A, #data ________________________________________________________________
ORL direct, A ________________________________________________________________
ORL direct, #data _____________________________________________________________
ORL C, bit __________________________________________________________________
ORL C, /bit __________________________________________________________________
63
63
64
64
64
64
65
65
3.29.1.
3.29.2.
3.29.3.
3.29.4.
3.29.5.
3.29.6.
3.29.7.
3.29.8.
3.30.
POP* __________________________________________________________________66
3.30.1. LARGE _____________________________________________________________________ 66
3.30.2. FLAT ______________________________________________________________________ 66
3.31.
PUSH* _________________________________________________________________67
3.31.1. LARGE _____________________________________________________________________ 67
3.31.2. FLAT ______________________________________________________________________ 67
3.32.
RET * __________________________________________________________________68
3.32.1. LARGE _____________________________________________________________________ 68
3.32.2. FLAT ______________________________________________________________________ 68
3.33.
RETI * _________________________________________________________________69
3.33.1. LARGE _____________________________________________________________________ 69
3.33.2. FLAT ______________________________________________________________________ 70
3.34.
3.35.
3.36.
3.37.
3.38.
RL ____________________________________________________________________71
RLC ___________________________________________________________________72
RR ____________________________________________________________________73
RRC___________________________________________________________________74
SETB __________________________________________________________________75
3.38.1. SETB C ____________________________________________________________________ 75
3.38.2. SETB bit ____________________________________________________________________ 75
3.39.
3.40.
SJMP__________________________________________________________________76
SUBB _________________________________________________________________77
SUBB A, Rn _________________________________________________________________
SUBB A, direct _______________________________________________________________
SUBB A, @Ri ________________________________________________________________
SUBB A, #data _______________________________________________________________
77
77
78
78
3.40.1.
3.40.2.
3.40.3.
3.40.4.
3.41.
3.42.
SWAP _________________________________________________________________79
XCH ___________________________________________________________________80
3.42.1. XCH A, Rn __________________________________________________________________ 80
3.42.2. XCH A, direct ________________________________________________________________ 80
All trademarks mentioned in this document
are trademarks of their respective owners.
http://www.DigitalCoreDesign.com
http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.
DP80390 Instructions set details
-5-
3.42.3. XCH A, @Ri _________________________________________________________________ 80
3.43.
3.44.
XCHD _________________________________________________________________81
XRL ___________________________________________________________________82
XRL A, Rn __________________________________________________________________
XRL A, direct ________________________________________________________________
XRL A, @ Ri_________________________________________________________________
XRL A, #data ________________________________________________________________
XRL direct, A ________________________________________________________________
XRL direct, #data _____________________________________________________________
82
82
83
83
83
83
3.44.1.
3.44.2.
3.44.3.
3.44.4.
3.44.5.
3.44.6.
4.
Contacts ____________________________________________________________ 84
All trademarks mentioned in this document
are trademarks of their respective owners.
http://www.DigitalCoreDesign.com
http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.