Panasonic MN101C00 Cell Phone User Manual


 
Chapter 10 Appendices
142
Instruction Set
MN101C00 SERIES INSTRUCTION SET
Group Mnemonic Operation
Affected Flag
VF
NF CF ZF
Code
Size
Cycle
Re-
peat
Machine Code
Notes
Page
1
234567891011Expand
PUSH
Dn
PUSH SP-1SP,Dnmem8(SP)
––––
23
1111
10Dn
PUSH
An
SP-2SP,Anmem16(SP)
––––
25
0001
011A
POP
Dn
POP mem8(SP)Dn,SP+1SP
––––
23
1110
10Dn
POP
An
mem16(SP)An,SP+2SP
––––
24
0000
011A
EXT
Dn,DWm
EXT sign(Dn)DWm
––––
33
1001
000d0010
Arithmetic instructions
ADD
Dn,Dm
ADD Dm+DnDm
32
0011
DnDm0011
ADD
imm4,Dm
Dm+sign(imm4)Dm
32
1000
00Dm <#4>
ADD
imm8,Dm
Dm+imm8Dm
42
0000
10Dm <#8. ...>
ADDC
Dn,Dm
ADDC Dm+Dn+CFDm
32
1011
DnDm0011
ADDW
DWn,DWm
ADDW DWm+DWnDWm
33
0101
00Dd0010
ADDW
DWn,Am
Am+DWnAm
33
0101
10Da0010
ADDW
imm4,Am
Am+sign(imm4)Am
32
1110
110a <#4>
ADDW
imm8,Am
Am+sign(imm8)Am
53
1110
110a <#8. ...>0010
ADDW
imm16,Am
Am+imm16Am
74
0101
011a <#16 .... .... ...>0010
ADDW
imm4,SP
SP+sign(imm4)SP
––––
32
1111
1101 <#4>
ADDW
imm8,SP
SP+sign(imm8)SP
––––
42
1111
1100 <#8.
...>
ADDW
imm16,SP
SP+imm16SP
––––
74
1111
1100 <#16 .... .... ...>0010
ADDW
imm16,DWm
DWm+imm16DWm
74
0101
010d <#16 .... .... ...>0010
ADDUW
Dn,Am
ADDUW Am+zero(Dn)Am
33
1000
1aDn0010
ADDSW
Dn,Am
ADDSW Am+sign(Dn)Am
33
1001
1aDn0010
SUB
Dn,Dm(when DnDm)
SUB Dm-DnDm
32
1010
DnDm0010
SUB
Dn,Dn
Dn-DnDn
0001
21
1000
01Dn
SUB
imm8,Dm
Dm-imm8Dm
53
1010
DmDm <#8.0010
SUBC
Dn,Dm
SUBC Dm-Dn-CFDm
32
1011
DnDm0010
SUBW
DWn,DWm
SUBW DWm-DWnDWm
33
0100
00Dd0010
SUBW
DWn,Am
Am-DWnAm
33
0100
10Da0010
SUBW
imm16,DWm
DWm-imm16DWm
74
0100
010d <#16 .... .... ...>0010
SUBW
imm16,Am
Am-imm16Am
74
0100
011a <#16 .... .... ...>0010
MULU
Dn,Dm
MULU DmDnDWk
0
38
1111
111D0010
DIVU
Dn,DWm
DIVU DWm/DnDWm-I...DWm-h
39
1110
111d0010
MOVW
imm16,Am
imm16Am
––––
63 54
55
55
56
56
57
57
58
58
59
59
60
61
61
62
63
64
64
65
65
66
66
67
67
68
69
70
71
71
72
73
74
74
75
75
76
77
1101
111a <#16 .... .... ...>
MOVW
SP,Am
SPAm
––––
33
0000
100a0010
MOVW
An,SP
AnSP
––––
33
0000
101A0010
MOVW
DWn,DWm
DWnDWm
––––
33
1000
00Dd0010
MOVW
DWn,Am
DWnAm
––––
33
0100
11Da0010
MOVW
An,DWm
AnDWm
––––
33
1100
11Ad0010
MOVW
An,Am
AnAm
––––
33
0000
00Aa0010
3
6
1
6
7
6
7
8
1
4
5
1
1 D=DWn, d=DWm
2 A=An, a=Am
3 d=DWm
4 D=DWk
5 D=DWm
6 #4 sign extended
7 #8 sign extended
8 Dn zero extended
CMP
Dn,Dm
CMP Dm-Dn...PSW
32
0010
DnDm0011
CMP
imm8,Dm
Dm-imm8...PSW
42
1100
00Dm <#8. ...>
CMP
imm8,(abs8)
mem8(abs8)-imm8...PSW
63
0000
0100 <abs 8..>
78
78
79
CMP
imm8,(abs12)
mem8(abs12)-imm8...PSW
73 79
80
81
81
82
82
83
0000
0101 <abs 12..
...>
<#8. ...>
CMP
imm8,(abs16)
mem8(abs16)-imm8...PSW
95
1101
1000 <abs 16.. .... ...> <#8. ...>0011
CMPW
DWn,DWm
CMPW DWm-DWn...PSW
33
1000
01Dd0010
CMPW
DWn,Am
Am-DWn...PSW
33
0101
11Da0010
CMPW
An,Am
1
2
Am-An...PSW
33
0000
01Aa0010
CMPW
imm16,DWm
DWm-imm16...PSW
63
1100
110d <#16 .... .... ...>
CMPW
imm16,Am
Am-imm16...PSW
63
1101
110a <#16 .... .... ...>
Logical instructions
AND
Dn,Dm
AND Dm&DnDm
00
32
0111
DnDm0011
AND
imm8,Dm
Dm&imm8Dm
00
42
0001
11Dm <#8. ...>
AND
imm8,PSW
PSW&imm8PSW
53
1001
0010 <#8. ...>0010
OR
Dn,Dm
OR DmIDnDm
00
32
0110
DnDm0011
OR
imm8,Dm
DmIimm8Dm
00
42
0001
10Dm <#8. ...>
OR
imm8,PSW
PSWIimm8PSW
53
1001
0011 <#8. ...>0010
XOR
Dn,Dm
XOR Dm^DnDm
00
32
1010
DnDm0011
XOR
imm8,Dm
Dm^imm8Dm
00
53
1010
DmDm <#8. ...>0011
84
84
85
86
86
87
88
88
...>
<#8. ...>
2
9 mn
9
Note: "Page" refers to the corresponding page in the Instruction Manual.