Panasonic F77G Cell Phone User Manual


 
Chapter 17 Appendices
XVII - 18
Instruction Set
MN101C SERIES INSTRUCTION SET
Group Mnemonic Operation
Flag
VF
NF CF ZF
Code
Size
Cycle
Re-
peat
Machine Code
Notes
1
234567891011
Exten
sion
*1 d4 sign-extension
*2 d7 sign-extension
*3 d11 sign-extension
NOT
Dn
NOT
_
DnDn=
00
32
0010
10Dn0010
ASR
Dn
ASR Dn.msbtemp,Dn.lsbCF
0--
32
0011
10Dn0010
Dn>>1Dn,tempDn.msb
LSR
Dn
LSR Dn.lsbCF,Dn>>1Dn
00
32
0011
11Dn0010
0Dn.msb
ROR
Dn
ROR Dn.Isbtemp,Dn>>1Dn
0
32
0010
11Dn0010
CFDn.msb,tempCF
Bit manipulation instructions
BSET (io8)bp
BSET
mem8(IOTOP+io8)&bpdata...PSW
00
55
1000
0bp. <io8 ...>0011
1mem8(
IOTOP+
io8)bp
BSET (abs8)bp
mem8(abs8)&bpdata...PSW
00
44
1011
0bp. <abs 8..>
1mem8(abs8)bp
BSET (abs16)bp
mem8(abs16)&bpdata...PSW
00
76
1100
0bp. <abs 16.. .... ...>0011
1mem8(abs16)bp
BCLR (io8)bp
BCLR
mem8(IOTOP+io8)&bpdata...PSW
00
55
1000
1bp. <io8 ...>0011
0mem8(
IOTOP+
io8)bp
BCLR (abs8)bp
mem8(abs8)&bpdata...PSW
00
44
1011
1bp. <abs 8..>
0mem8(abs8)bp
BCLR (abs16)bp
mem8(abs16)&bpdata...PSW
00
76
1100
1bp. <abs 16.. .... ...>0011
0mem8(abs16)bp
BTST imm8,Dm
BTST Dm&imm8...PSW
00
53
0000
11Dm <#8. ...>0010
BTST (abs16)bp
mem8(abs16)&bpdata...PSW
00
75
1101
0bp. <abs 16.. .... ...>0011
Branch instructions
BEQ label
Bcc
if(ZF=1), PC+3+d4(label)+H
PC
-- -- -- --
3 2/3
1001
000H <d4>
if(ZF=0), PC+3PC
BEQ label *2if(ZF=1), PC+4+d7(label)+H
PC
-- -- -- --
4 2/3
1000
1010 <d7. ...H
if(ZF=0), PC+4PC
BEQ label *3if(ZF=1), PC+5+d11(label)+H
PC
-- -- -- --
5 2/3
1001
1010 <d11 .... ...H
if(ZF=0), PC+5PC
BNE label
*1
1
if(ZF=0), PC+3+d4(label)+H
PC
-- -- -- --
3 2/3
1001
001H <d4>
if(ZF=1), PC+3PC
BNE label
if(ZF=0), PC+4+d7(label)+H
PC
-- -- -- --
4 2/3
1000
1011 <d7. ...H
if(ZF=1), PC+4PC
BNE label if(ZF=0), PC+5+d11(label)+H
PC
-- -- -- --
5 2/3
1001
1011 <d11 .... ...H
if(ZF=1), PC+5PC
BGE label
if((VF^NF)=0),PC+4+d7(label)+H
PC
-- -- -- --
4 2/3
1000
1000 <d7. ...H
if((VF^NF)=1),PC+4PC
*2
*3
*2
BGE label
if((VF^NF)=0),PC+5+d11(label)+H
PC
-- -- -- --
5 2/3
1001
1000 <d11 .... ...H
if((VF^NF)=1),PC+5PC
BCC label
if(CF=0),PC+4+d7(label)+H
PC
-- -- -- --
4 2/3
1000
1100 <d7. ...H
if(CF=1), PC+4PC
BCC label
*3
*2
*3if(CF=0), PC+5+d11(label)+H
PC
-- -- -- --
5 2/3
1001
1100 <d11 .... ...H
if(CF=1), PC+5PC
BCS label
if(CF=1),PC+4+d7(label)+H
PC
-- -- -- --
4 2/3
1000
1101 <d7. ...H
if(CF=0), PC+4PC
BCS label if(CF=1), PC+5+d11(label)+H
PC
-- -- -- --
5 2/3
1001
1101 <d11 .... ...H
if(CF=0), PC+5PC
BLT label
if((VF^NF)=1),PC+4+d7(label)+H
PC
-- -- -- --
4 2/3
1000
1110 <d7. ...H
*2
*3
*2
BLT label
if((VF^NF)=1),PC+5+d11(label)+H
PC
-- -- -- --
5 2/3
1001
1110 <d11 .... ...H
if((VF^NF)=0),PC+5PC
BLE label
if((VF^NF)|ZF=1),PC+4+d7(label)+H
PC
-- -- -- --
4 2/3
1000
1111 <d7. ...H
if((VF^NF)|ZF=0),PC+4PC
BLE label
if((VF^NF)|ZF=1),PC+5+d11(label)+H
PC
-- -- -- --
5 2/3
1001
1111 <d11 .... ...H
if((VF^NF)|ZF=0),PC+5PC
BGT label
if((VF^NF)|ZF=0),PC+5+d7(label)+H
PC
-- -- -- --
5 3/4
0010
0001 <d7. ...H0010
if((VF^NF)|ZF=1),PC+5PC
*3
*2
*3
*2
if((VF^NF)=0),PC+4PC