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

NOT

 

NOT

Dn

_

0

 

0

 

3

2

 

0010

0010

10Dn

 

DnDn

 

 

 

ASR

 

ASR

Dn

Dn.msbtemp,Dn.lsbCF

0

 

 

3

2

 

0010

0011

10Dn

 

 

 

 

Dn>>1Dn,tempDn.msb

 

 

 

 

 

 

 

 

 

 

LSR

 

LSR

Dn

Dn.lsbCF,Dn>>1Dn

0

0

 

 

3

2

 

0010

0011

11Dn

 

 

 

 

0Dn.msb

 

 

 

 

 

 

 

 

 

 

ROR

 

ROR

Dn

Dn.Isbtemp,Dn>>1Dn

0

 

 

 

3

2

 

0010

0010

11Dn

 

 

 

 

CFDn.msb,tempCF

 

 

 

 

 

 

 

 

 

 

Bit manipulation instructions

 

 

 

 

 

 

 

 

 

 

 

89

90

91

92

BSET

BSET (io8)bp

mem8(IOTOP+io8)&bpdata...PSW

0

0

5

5

 

0011

1000

0bp.

<io8

...>

 

 

 

93

 

 

 

1mem8(IOTOP+io8)bp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BSET (abs8)bp

mem8(abs8)&bpdata...PSW

0

0

4

4

 

 

1011

0bp.

<abs

8..>

 

 

 

93

 

 

 

1mem8(abs8)bp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BSET (abs16)bp

mem8(abs16)&bpdata...PSW

0

0

7

6

 

0011

1100

0bp.

<abs

16..

....

...>

 

94

 

 

 

1mem8(abs16)bp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BCLR

BCLR (io8)bp

mem8(IOTOP+io8)&bpdata...PSW

0

0

5

5

 

0011

1000

1bp.

<io8

...>

 

 

 

95

 

 

 

0mem8(IOTOP+io8)bp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BCLR (abs8)bp

mem8(abs8)&bpdata...PSW

0

0

4

4

 

 

1011

1bp.

<abs

8..>

 

 

 

95

 

 

 

0mem8(abs8)bp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BCLR (abs16)bp

mem8(abs16)&bpdata...PSW

0

0

7

6

 

0011

1100

1bp.

<abs

16..

....

...>

 

96

 

 

 

0mem8(abs16)bp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BTST

BTST imm8,Dm

Dm&imm8...PSW

0

0

5

3

 

0010

0000

11Dm <#8.

...>

 

 

 

97

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BTST (abs16)bp

mem8(abs16)&bpdata...PSW

0

0

7

5

 

0011

1101

0bp.

<abs

16..

....

...>

 

97

Branch instructions

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bcc

BEQ label

if(ZF=1), PC+3+d4(label)+HPC

3

2/3

 

 

1001

000H <d4>

 

 

 

1

98

 

 

 

if(ZF=0), PC+3PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BEQ label

if(ZF=1), PC+4+d7(label)+HPC

4

2/3

 

 

1000

1010

<d7.

...H

 

 

2

98

 

 

 

if(ZF=0), PC+4PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BEQ label

if(ZF=1), PC+5+d11(label)+HPC

5

2/3

 

 

1001

1010

<d11

....

...H

 

3

99

 

 

 

if(ZF=0), PC+5PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BNE label

if(ZF=0), PC+3+d4(label)+HPC

3

2/3

 

 

1001

001H <d4>

 

 

 

1

100

 

 

 

if(ZF=1), PC+3PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BNE label

if(ZF=0), PC+4+d7(label)+HPC

4

2/3

 

 

1000

1011

<d7.

...H

 

 

2

100

 

 

 

if(ZF=1), PC+4PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BNE label

if(ZF=0), PC+5+d11(label)+HPC

5

2/3

 

 

1001

1011

<d11

....

...H

 

3

101

 

 

 

if(ZF=1), PC+5PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BGE label

if((VF^NF)=0),PC+4+d7(label)+HPC

4

2/3

 

 

1000

1000

<d7.

...H

 

 

2

102

 

 

 

if((VF^NF)=1),PC+4PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BGE label

if((VF^NF)=0),PC+5+d11(label)+HPC

5

2/3

 

 

1001

1000

<d11

....

...H

 

3

102

 

 

 

if((VF^NF)=1),PC+5PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BCC label

if(CF=0),PC+4+d7(label)+HPC

4

2/3

 

 

1000

1100

<d7.

...H

 

 

2

103

 

 

 

if(CF=1), PC+4PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BCC label

if(CF=0), PC+5+d11(label)+HPC

5

2/3

 

 

1001

1100

<d11

....

...H

 

3

103

 

 

 

if(CF=1), PC+5PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BCS label

if(CF=1),PC+4+d7(label)+HPC

4

2/3

 

 

1000

1101

<d7.

...H

 

 

2

104

 

 

 

if(CF=0), PC+4PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BCS label

if(CF=1), PC+5+d11(label)+HPC

5

2/3

 

 

1001

1101

<d11

....

...H

 

3

104

 

 

 

if(CF=0), PC+5PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BLT label

if((VF^NF)=1),PC+4+d7(label)+HPC

4

2/3

 

 

1000

1110

<d7.

...H

 

 

2

105

 

 

 

if((VF^NF)=0),PC+4PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BLT label

if((VF^NF)=1),PC+5+d11(label)+HPC

5

2/3

 

 

1001

1110

<d11

....

...H

 

3

105

 

 

 

if((VF^NF)=0),PC+5PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BLE label

if((VF^NF)ZF=1),PC+4+d7(label)+HPC

4

2/3

 

 

1000

1111

<d7.

...H

 

 

2

106

 

 

 

if((VF^NF)ZF=0),PC+4PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BLE label

if((VF^NF)ZF=1),PC+5+d11(label)+HPC

5

2/3

 

 

1001

1111

<d11

....

...H

 

3

106

 

 

 

if((VF^NF)ZF=0),PC+5PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BGT label

if((VF^NF)ZF=0),PC+5+d7(label)+HPC

5

3/4

 

0010

0010

0001

<d7.

...H

 

 

2

107

 

 

 

if((VF^NF)ZF=1),PC+5PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Note: "Page" refers to the corresponding page in the Instruction Manual.

1 d4 sign extended 2 d7 sign extended 3 d11 sign extended

Instruction Set 143

Page 157
Image 157
Panasonic MN101C00 user manual ∗1 d4 sign extended ∗2 d7 sign extended ∗3 d11 sign extended