Datasheet

2-20 MCF5407 User’s Manual
Instruction Set Summary
ADDI #<data>,Dx .L Immediate data + destination destination
ADDQ #<data>,<ea>x .L Immediate data + destination destination
ADDX Dy,Dx .L Source + destination + X destination
AND Dy,<ea>x
<ea>y,Dx
.L
.L
Source & destination destination
ANDI #<data>,Dx .L Immediate data & destination destination
ASL Dy,Dx
#<data>,Dx
.L
.L
X/C (Dx << Dy) 0
X/C (Dx << #<data>) 0
ASR Dy,Dx
#<data>,Dx
.L
.L
MSB (Dx >> Dy) X/C
MSB (Dx >> #<data>) X/C
Bcc <label> .B,.W,.L If condition true, then PC + 2 + d
n
PC
BCHG Dy,<ea>x
#<data>,<ea-1>x
.B,.L
.B,.L
~(<bit number> of destination) Z,
Bit of destination
BCLR Dy,<ea>x
#<data>,<ea-1>x
.B,.L
.B,.L
~(<bit number> of destination) Z;
0 bit of destination
BRA <label> .B,.W,.L PC + 2 + d
n
PC
BSET Dy,<ea>x
#<data>,<ea-1>x
.B,.L
.B,.L
~(<bit number> of destination) Z;
1→ bit of destination
BSR <label> .B,.W,.L SP – 4 SP; next sequential PC (SP); PC + 2 + d
n
PC
BTST Dy,<ea>x
#<data>,<ea-1>x
.B,.L
.B,.L
~(<bit number> of destination) Z
CLR <ea>y,Dx .B,.W,.L 0 destination
CMP <ea>y,Ax .B,.W,.L Destination – source
CMPA <ea>y,Dx .W,.L Destination – source
CMPI <ea>y,Dx .B,.W,.L Destination – immediate data
DIVS <ea-1>y,Dx
<ea>y,Dx
.W
.L
Dx /<ea>y Dx {16-bit remainder; 16-bit quotient}
Dx /<ea>y Dx {32-bit quotient}
Signed operation
DIVU <ea-1>y,Dx
Dy,<ea>x
.W
.L
Dx /<ea>y Dx {16-bit remainder; 16-bit quotient}
Dx /<ea>y Dx {32-bit quotient}
Unsigned operation
EOR Dy,<ea>x .L Source ^ destination destination
EORI #<data>,Dx .L Immediate data ^ destination destination
EXT #<data>,Dx .B .W
.W .L
Sign-extended destination destination
EXTB Dx .B .L Sign-extended destination destination
HALT
1
None Unsized Enter halted state
JMP <ea-3>y Unsized Address of <ea> PC
JSR <ea-3>y Unsized SP – 4 SP; next sequential PC (SP); <ea> PC
LEA <ea-3>y,Ax .L <ea> Ax
Table 2-8. User-Level Instruction Set Summary (Continued)
Instruction Operand Syntax Operand Size Operation