Panasonic F77G, MN101C77C user manual INC ADD DEC Addw INC2 DEC2 CLR SUB

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 521
Image 521

Chapter 17 Appendices

MN101C SERIES INSTRUCTION SET

Group

Mnemonic

Operation

 

Flag

CodeCycle

Re-

Exten-

 

 

 

 

Machine Code

 

 

 

VF

NF

CF

ZF

Size

 

peat

sion 1

2

3

4

5

6

7

8

9

10 11

Notes

RTS

RTS

mem8(SP)(PC).bp7-0

--- --- --- --- 2

7

0000 0001

 

 

mem8(SP+1)(PC).bp15-8

 

 

 

 

 

mem8(SP+2).bp7(PC).H

 

 

 

 

 

mem8(SP+2).bp1-0(PC).bp17-16

 

 

 

 

 

SP+3SP

 

 

 

 

 

 

 

 

 

RTI

RTI

mem8(SP)PSW

2

11

0000 0011

mem8(SP+1)(PC).bp7-0 mem8(SP+2)(PC).bp15-8 mem8(SP+3).bp7(PC).H mem8(SP+3).bp1-0(PC).bp17-16 mem8(SP+4)HA-l mem8(SP+5)HA-h

SP+6SP

Contorl instructions

REP

REP imm3

imm3-1RPC

---

---

---

---

3

2

 

0010 0001 1rep

*1

 

 

 

 

 

 

 

 

 

 

 

 

*1 no repeat whn imm3=0, (rep: imm3-1)

Other than the instruction of MN101C Series,the assembler of this Series has the following instructions as macro instructions.

The assembler will interpret the macro instructions below as the assembler instructions.

macro instructions

replaced instructions

remarks

INC

Dn

ADD

1,Dn

 

DEC

Dn

ADD

-1,Dn

 

INC

An

ADDW

1,An

 

DEC

An

ADDW

-1,An

 

INC2

An

ADDW

2,An

 

DEC2

An

ADDW

-2,An

 

CLR

Dn

SUB

Dn,Dm

n=m

ASL

Dn

ADD

Dn,Dm

n=m

LSL

Dn

ADD

Dn,Dm

n=m

ROL

Dn

ADDC

Dn,Dm

n=m

NEG

Dn

NOT

Dn

 

 

 

ADD

1,Dn

 

NOPL

 

MOVW

DWn,DWm

n=m

MOV

(SP),Dn

MOV

(0,SP),Dn

 

MOV

Dn,(SP)

MOV

Dn,(0,SP)

 

MOVW

(SP),DWn

MOVW

(0,SP),DWn

 

MOVW

DWn,(SP)

MOVW

DWn,(0,SP)

 

MOVW

(SP),An

MOVW

(0,SP),An

 

MOVW

An,(SP)

MOVW

An,(0,SP)

 

Ver3.2(2002.01.31)

Instruction Set

XVII - 21

Page 521
Image 521
Panasonic F77G, MN101C77C user manual INC ADD DEC Addw INC2 DEC2 CLR SUB