Chapter 10 Appendices
143
Instruction Set
MN101C00 SERIES INSTRUCTION SET
Group Mnemonic Operation Affected Flag
VFNF CF ZF
Code
SizeCycle
Re-
peat Machine Code
Notes
Page
1234567891011Expand
1 d4 sign extended2 d7 sign extended3 d11 sign extended
NOT
Dn
NOT _DnDn 0032 0010 10Dn0010 89
92
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
90
91
ROR
Dn
ROR Dn.Isbtemp,Dn>>1Dn 032 0010 11Dn0010
CFDn.msb,tempCF
93
93
94
95
95
96
97
Bit manipulation instructions
BSET (io8)bp
BSET
mem8(IOTOP+io8)&bpdata...PSW
0 0 55 1000 0bp. <io8 ...>0011
1mem8(
IOTOP+
io8)bp
BSET (abs8)bp
mem8(abs8)&bpdata...PSW 0 0 44 1011 0bp. <abs 8..>
1mem8(abs8)bp
BSET (abs16)bp
mem8(abs16)&bpdata...PSW 0 0 76 1100 0bp. <abs 16.. .... ...>0011
1mem8(abs16)bp
BCLR (io8)bp
BCLR
mem8(IOTOP+io8)&bpdata...PSW
0 0 55 1000 1bp. <io8 ...>0011
0mem8(
IOTOP+
io8)bp
BCLR (abs8)bp
mem8(abs8)&bpdata...PSW 0 0 44 1011 1bp. <abs 8..>
0mem8(abs8)bp
BCLR (abs16)bp
mem8(abs16)&bpdata...PSW 0 0 76 1100 1bp. <abs 16.. .... ...>0011
0mem8(abs16)bp
BTST imm8,Dm
BTST Dm&imm8...PSW 0 0 53 0000 11Dm <#8. ...>0010
BTST (abs16)bp
mem8(abs16)&bpdata...PSW 0 0 75 1101 0bp. <abs 16.. .... ...> 970011
98
98
99
100
100
101
102
Branch instructions
BEQ label
Bcc
if(ZF=1), PC+3+d4(label)+H
PC
––––32/3 1001000H <d4>
if(ZF=0), PC+3PC
BEQ label 2if(ZF=1), PC+4+d7(label)+H
PC
––––42/3 1000 1010 <d7. ...H
if(ZF=0), PC+4PC
BEQ label 3if(ZF=1), PC+5+d11(label)+H
PC
––––52/3 1001 1010 <d11 .... ...H
if(ZF=0), PC+5PC
BNE label
1
1
if(ZF=0), PC+3+d4(label)+H
PC
––––32/3 1001001H <d4>
if(ZF=1), PC+3PC
BNE label
if(ZF=0), PC+4+d7(label)+H
PC
––––42/3 1000 1011 <d7. ...H
if(ZF=1), PC+4PC
BNE label if(ZF=0), PC+5+d11(label)+H
PC
––––52/3 1001 1011 <d11 .... ...H
if(ZF=1), PC+5PC
BGE label
if((VF^NF)=0),PC+4+d7(label)+HPC
––––42/3 1000 1000 <d7. ...H
if((VF^NF)=1),PC+4PC
2
3
2
102
103
103
104
104
105
BGE label
if((VF^NF)=0),PC+5+d11(label)+HPC
––––52/3 1001 1000 <d11 .... ...H
if((VF^NF)=1),PC+5PC
BCC label
if(CF=0),PC+4+d7(label)+H
PC
––––42/3 1000 1100 <d7. ...H
if(CF=1), PC+4PC
BCC label
3
2
3if(CF=0), PC+5+d11(label)+H
PC
––––52/3 1001 1100 <d11 .... ...H
if(CF=1), PC+5PC
BCS label
if(CF=1),PC+4+d7(label)+H
PC
––––42/3 1000 1101 <d7. ...H
if(CF=0), PC+4PC
BCS label if(CF=1), PC+5+d11(label)+H
PC
––––52/3 1001 1101 <d11 .... ...H
if(CF=0), PC+5PC
BLT label
if((VF^NF)=1),PC+4+d7(label)+HPC
––––42/3 1000 1110 <d7. ...H
2
3
2
105
106
106
107
BLT label
if((VF^NF)=1),PC+5+d11(label)+HPC
––––52/3 1001 1110 <d11 .... ...H
if((VF^NF)=0),PC+5PC
BLE label
if((VF^NF)|ZF=1),PC+4+d7(label)+HPC
––––42/3 1000 1111 <d7. ...H
if((VF^NF)|ZF=0),PC+4PC
BLE label
if((VF^NF)|ZF=1),PC+5+d11(label)+HPC
––––52/3 1001 1111 <d11 .... ...H
if((VF^NF)|ZF=0),PC+5PC
BGT label
if((VF^NF)|ZF=0),PC+5+d7(label)+HPC
––––53/4 0010 0001 <d7. ...H0010
if((VF^NF)|ZF=1),PC+5PC
3
2
3
2
if((VF^NF)=0),PC+4PC
Note: "Page" refers to the corresponding page in the Instruction Manual.