Datasheet
2-48 MCF5407 User’s Manual
ColdFire Instruction Set Architecture Enhancements
MVS Move with Sign Extend MVS
Operation: (Source with sign extension) → Destination
Assembler Syntax: MVS <ea>y,Dx
Attributes: Size = byte, word
Description: Sign-extend the source operand and move to the destination register. For the
byte operation, bit 7 of the source is copied to bits 31–8 of the destination. For the word
operation, bit 15 of the source is copied to bits 31-16 of the destination.
Condition Codes:
Instruction Fields:
• Size field—specifies the size of the operation
0 byte operation
1 word operation
• Register field—specifies a data register as the destination.
• Effective address field—specifies the source operand; use only data addressing
modes from the following table:
X N Z V C X Not affected
N Set if the result is negative; cleared otherwise
Z Set if the result is zero; cleared otherwise
V Always cleared
C Always cleared
— ∗∗00
1514131211109876543210
Instruction
Format:
0111 REGISTER 1 0 SIZ
E
EFFECTIVE ADDRESS
MODE REGISTER
Addressing Mode Mode Register Addressing Mode Mode Register
Dy 000 reg. number:Dy (d
8
,Ay,Xi) 110 reg. number:Ay
Ay 001 reg. number:Ay (xxx).W 111 000
(Ay) 010 reg. number:Ay (xxx).L 111 001
(Ay) + 011 reg. number:Ay #<data> 111 100
– (Ay) 100 reg. number:Ay (d
16
,PC) 111 010
(d
16
,Ay) 101 reg. number:Ay (d
8
,PC,Xi) 111 011
MVS V2, V3 Core V4 Core
Opcode present No Yes
Operand sizes supported — .b, .w
