Chapter 10 Appendices
MN101C00 SERIES INSTRUCTION SET
Group
Mnemonic
Operation
Affected Flag | CodeCycle | Re- |
|
|
|
|
| Machine Code |
|
|
| |||||
VF | NF | CF | ZF | Size |
| peat | Expand 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NotesPage
Bcc | BGT label | if((VF^NF)ZF=0),PC+6+d11(label)+H→PC | – | – | – | – | 6 | 3/4 |
| 0010 | 0011 | 0001 | <d11 | .... | ...H |
|
|
|
|
|
| ∗3 | 107 |
|
| if((VF^NF)ZF=1),PC+6→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| BHI label | if(CFIZF=0),PC+5+d7(label)+H→PC | – | – | – | – | 5 | 3/4 |
| 0010 | 0010 | 0010 | <d7. | ...H |
|
|
|
|
|
|
| ∗2 | 108 |
|
| if(CFIZF=1), PC+5→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| BHI label | if(CFIZF=0),PC+6+d11(label)+H→PC | – | – | – | - | 6 | 3/4 |
| 0010 | 0011 | 0010 | <d11 | .... | ...H |
|
|
|
|
|
| ∗3 | 108 |
|
| if(CFIZF=1), PC+6→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| BLS label | if(CFIZF=1),PC+5+d7(label)+H→PC | – | – | – | – | 5 | 3/4 |
| 0010 | 0010 | 0011 | <d7. | ...H |
|
|
|
|
|
|
| ∗2 | 109 |
|
| if(CFIZF=0), PC+5→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| BLS label | if(CFIZF=1),PC+6+d11(label)+H→PC | – | – | – | – | 6 | 3/4 |
| 0010 | 0011 | 0011 | <d11 | .... | ...H |
|
|
|
|
|
| ∗3 | 109 |
|
| if(CFIZF=0), PC+6→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| BNC label | if(NF=0),PC+5+d7(label)+H→PC | – | - | - | - | 5 | 3/4 |
| 0010 | 0010 | 0100 | <d7. | ...H |
|
|
|
|
|
|
| ∗2 | 110 |
|
| if(NF=1),PC+5→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| BNC label | if(NF=0),PC+6+d11(label)+H→PC | – | – | – | – | 6 | 3/4 |
| 0010 | 0011 | 0100 | <d11 | .... | ...H |
|
|
|
|
|
| ∗3 | 110 |
|
| if(NF=1),PC+6→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| BNS label | if(NF=1),PC+5+d7(label)+H→PC | – | – | – | – | 5 | 3/4 |
| 0010 | 0010 | 0101 | <d7. | ...H |
|
|
|
|
|
|
| ∗2 | 111 |
|
| if(NF=0),PC+5→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| BNS label | if(NF=1),PC+6+d11(label)+H→PC | – | – | – | – | 6 | 3/4 |
| 0010 | 0011 | 0101 | <d11 | .... | ...H |
|
|
|
|
|
| ∗3 | 111 |
|
| if(NF=0),PC+6→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| BVC label | if(VF=0),PC+5+d7(label)+H→PC | – | – | – | – | 5 | 3/4 |
| 0010 | 0010 | 0110 | <d7. | ...H |
|
|
|
|
|
|
| ∗2 | 112 |
|
| if(VF=1),PC+5→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| BVC label | if(VF=0),PC+6+d11(label)+H→PC | – | – | – | – | 6 | 3/4 |
| 0010 | 0011 | 0110 | <d11 | .... | ...H |
|
|
|
|
|
| ∗3 | 112 |
|
| if(VF=1),PC+6→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| BVS label | if(VF=1),PC+5+d7(label)+H→PC | – | – | – | – | 5 | 3/4 |
| 0010 | 0010 | 0111 | <d7. | ...H |
|
|
|
|
|
|
| ∗2 | 113 |
|
| if(VF=0),PC+5→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| BVS label | if(VF=1),PC+6+d11(label)+H→PC | – | – | – | – | 6 | 3/4 |
| 0010 | 0011 | 0111 | <d11 | .... | ...H |
|
|
|
|
|
| ∗3 | 113 |
|
| if(VF=0),PC+6→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| BRA label | PC+3+d4(label)+H→PC | – | – | – | – | 3 | 3 |
|
| 1110 | 111H <d4> |
|
|
|
|
|
|
|
| ∗1 | 114 | |
| BRA label | PC+4+d7(label)+H→PC | – | – | – | – | 4 | 3 |
|
| 1000 | 1001 | <d7. | ...H |
|
|
|
|
|
|
| ∗2 | 114 |
| BRA label | PC+5+d11(label)+H→PC | – | – | – | – | 5 | 3 |
|
| 1001 | 1001 | <d11 | .... | ...H |
|
|
|
|
|
| ∗3 | 115 |
CBEQ | CBEQ imm8,Dm,label | if(Dm=imm8),PC+6+d7(label)+H→PC |
|
|
|
| 6 | 3/4 |
|
| 1100 | 10Dm <#8. | ...> | <d7. | ...H |
|
|
|
|
| ∗2 | 116 | |
|
| if(Dm=imm8),PC+6/→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| CBEQ imm8,Dm,label | if(Dm=imm8),PC+8+d11(label)+H→PC |
|
|
|
| 8 | 4/5 |
| 0010 | 1100 | 10Dm <#8. | ...> | <d11 | .... | ...H |
|
|
|
| ∗3 | 116 | |
|
| if(Dm=imm8),PC+8/→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| CBEQ imm8,(abs8),label | if(mem8(abs8)=imm8),PC+9+d7(label)+H→PC |
|
|
|
| 9 | 6/7 |
| 0010 | 1101 | 1100 | <abs | 8..> | <#8. | ...> | <d7. | ...H |
|
|
| ∗2 | 117 |
|
| if(mem8(abs8)=imm8),PC+9/→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| CBEQ imm8,(abs8),label | if(mem8(abs8)=imm8),PC+10+d11(label)+H→PC |
|
|
|
| 10 | 6/7 |
| 0010 | 1101 | 1101 | <abs | 8..> | <#8. | ...> | <d11 | .... | ...H |
|
| ∗3 | 117 |
|
| if(mem8(abs8)=imm8),PC+10/→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| CBEQ imm8,(abs16),label | if(mem8(abs16)=imm8),PC+11+d7(label)+H→PC |
|
|
|
| 11 | 7/8 |
| 0011 | 1101 | 1100 | <abs | 16.. | .... | ...> | <#8. | ...> | <d7. | ...H |
| ∗2 | 118 |
|
| if(mem8(abs16)=imm8),PC+11/→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| CBEQ imm8,(abs16),label | if(mem8(abs16)=imm8),PC+12+d11(label)+H→PC |
|
|
|
| 12 | 7/8 |
| 0011 | 1101 | 1101 | <abs | 16.. | .... | ...> | <#8. | ...> | <d11 .... | ...H | ∗3 | 118 | |
|
| if(mem8(abs16)=imm8),PC+12/→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CBNE | CBNE imm8,Dm,label | if(Dm=imm8),PC+6+d7(label)+H/→PC |
|
|
|
| 6 | 3/4 |
|
| 1101 | 10Dm <#8. | ...> | <d7. | ..H> |
|
|
|
|
| ∗2 | 119 | |
|
| if(Dm=imm8),PC+6→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| CBNE imm8,Dm,label | if(Dm=imm8),PC+8+d11(label)+H/→PC |
|
|
|
| 8 | 4/5 |
| 0010 | 1101 | 10Dm <#8. | ...> | <d11 | .... | ...H |
|
|
|
| ∗3 | 119 | |
|
| if(Dm=imm8),PC+8→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| CBNE imm8,(abs8),label | if(mem8(abs8)=imm8),PC+9+d7(label)+H/→PC |
|
|
|
| 9 | 6/7 |
| 0010 | 1101 | 1110 | <abs | 8..> | <#8. | ...> | <d7. | ...H |
|
|
| ∗2 | 120 |
|
| if(mem8(abs8)=imm8),PC+9→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| CBNE imm8,(abs8),label | if(mem8(abs8)=imm8),PC+10+d11(label)+H/→PC |
|
|
|
| 10 | 6/7 |
| 0010 | 1101 | 1111 | <abs | 8..> | <#8. | ...> | <d11 | .... | ...H |
|
| ∗3 | 120 |
|
| if(mem8(abs8)=imm8),PC+10→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| CBNE imm8,(abs16),label | if(mem8(abs16)=imm8),PC+11+d7(label)+H/→PC |
|
|
|
| 11 | 7/8 |
| 0011 | 1101 | 1110 | <abs | 16.. | .... | ...> | <#8. | ...> | <d7. | ...H |
| ∗2 | 121 |
|
| if(mem8(abs16)=imm8),PC+11→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| CBNE imm8,(abs16),label | if(mem8(abs16)=imm8),PC+12+d11(label)+H/→PC |
|
|
|
| 12 | 7/8 |
| 0011 | 1101 | 1111 | <abs | 16.. | .... | ...> | <#8. | ...> | <d11 .... | ...H | ∗3 | 121 | |
|
| if(mem8(abs16)=imm8),PC+12→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TBZ | TBZ (abs8)bp,label | if(mem8(abs8)bp=0),PC+7+d7(label)+H→PC | 0 |
| 0 |
| 7 | 6/7 |
| 0011 | 0000 | 0bp. | <abs | 8..> | <d7. | ...H |
|
|
|
|
| ∗2 | 122 |
|
| if(mem8(abs8)bp=1),PC+7→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| TBZ (abs8)bp,label | if(mem8(abs8)bp=0),PC+8+d11(label)+H→PC | 0 |
| 0 |
| 8 | 6/7 |
| 0011 | 0000 | 1bp. | <abs | 8..> | <d11 | .... | ...H |
|
|
|
| ∗3 | 122 |
|
| if(mem8(abs8)bp=1),PC+8→PC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Note: "Page" refers to the corresponding page in the Instruction Manual.
∗1 d4 sign extended ∗2 d7 sign extended ∗3 d11 sign extended
144 Instruction Set