Motorola MC68340 manual Instruction Set Summary, Opcode Operation Syntax

Models: MC68340

1 441
Download 441 pages 2.45 Kb
Page 153
Image 153

Freescale Semiconductor, Inc...

Freescale Semiconductor, Inc.

Table 5-2. Instruction Set Summary

Opcode

Operation

 

Syntax

ABCD

Source 10 + Destination10 + X Destination

ABCD Dy,Dx

 

 

 

ABCD –(Ay),–(Ax)

ADD

Source + Destination Destination

ADD ea,Dn

 

 

 

ADD Dn,ea

ADDA

Source + Destination Destination

ADDA ea,An

ADDI

Immediate Data + Destination

Destination

ADDI #data〉,〈 ea

ADDQ

Immediate Data + Destination

Destination

ADDQ # data 〉,〈ea

ADDX

Source + Destination + X Destination

ADDX Dy,Dx

 

 

 

ADDX –(Ay),–(Ax)

AND

Source Λ Destination Destination

AND ea〉, Dn

 

 

 

AND Dn,ea

ANDI

Immediate Data Λ Destination Destination

ANDI #data〉,〈 ea

ANDI to CCR

Source Λ CCR CCR

 

ANDI #data,CCR

ANDI to SR

If supervisor state

 

ANDI #data,SR

 

the Source Λ SR SR

 

 

 

else TRAP

 

 

ASL,ASR

Destination Shifted by count〉 ⇒ Destination

ASd Dx,Dy

 

 

 

ASd # data ,Dy

 

 

 

ASd ea

Bcc

If (condition true) then PC + d PC

Bcc label

BCHG

~(number of Destination) Z;

 

BCHG Dn,ea

 

~(number of Destination) ⇒ 〈bit numberof

BCHG # data 〉,〈ea

 

Destination

 

 

BCLR

~(number of Destination) Z;

 

BCLR Dn, ea

 

0 ⇒ 〈bit numberof Destination

 

BCLR # data 〉,〈ea

BGND

If (background mode enabled) then

BGND

 

enter background mode

 

 

 

else Format/Vector offset –(SSP)

 

 

PC –(SSP)

 

 

 

SR –(SSP)

 

 

 

(Vector) PC

 

 

BKPT

Run breakpoint acknowledge cycle;

BKPT #data

 

TRAP as illegal instruction

 

 

BRA

PC + d PC

 

BRA label

BSET

~(number of Destination) Z;

 

BSET Dn,ea

 

1 ⇒ 〈bit numberof Destination

 

BSET #data〉,〈 ea

BSR

SP – 4 SP; PC (SP); PC + d PC

BSR label

BTST

– (number of Destination) Z;

 

BTST Dn, ea

 

 

 

BTST # data 〉,〈ea

CHK

If Dn < 0 or Dn > Source then TRAP

CHK ea,Dn

CHK2

If Rn < lower bound or

 

CHK2 ea,Rn

 

If Rn > upper bound

 

 

 

then TRAP

 

 

CLR

0 Destination

 

CLR ea

CMP

Destination — Source cc

 

CMP ea,Dn

CMPA

Destination — Source

 

CMPA ea,An

CMPI

Destination — Immediate Data

 

CMPI # data〉,〈 ea

CMPM

Destination — Source cc

 

CMPM (Ay)+,(Ax)+

5- 16MC68340 USER’S MANUALMOTOROLA

For More Information On This Product,

Go to: www.freescale.com

Page 153
Image 153
Motorola MC68340 manual Instruction Set Summary, Opcode Operation Syntax