MOVEQ Instruction



The instruction MOVEQ (MOVE Quick) is used to put small immediate data in a data register. The instruction is two bytes long and can handle constants in the range -128 and +127 (decimal). All 32 bits in the register are affected If you used MOVE.L the instruction would take 6 bytes.



ADDRESS METHODS: Dn, (An), (An)+, -(An), x(An), x(An,xr.s), x.w, x.l, x(PC), x(PC,xr.s), #x

DATA LENGTH: Longword

FLAGS: X - U
N - S
Z - S
C - 0
V - 0

SYNTAX: MOVEQ #<data>,Dn

Many assemblers automatically change a MOVE to a MOVEQ, if possible.

EXAMPLE CODE:

        MOVEQ.L    #3,D0   *puts 3 into D0, but affects the entire longword, quicker than move