MOV

Instruction: Set a register to a value.
MOV Destination, < # > Value


Result: Value is stored in Destination.

  • Destination (d-field) is the register in which to store Value.
  • Value (s-field) is a register or a 9-bit literal whose value is stored into Destination.

Opcode Table:

–INSTR–  ZCRI  –CON–    –DEST–         –SRC–

Z Result

C Result

Result

Clocks

  101000    001i    1111    ddddddddd    sssssssss

Result = 0

S[31]

Written

4

Concise Truth Table:

In

Out

Destination

Source

Z

C

Effects

Destination

Z

C

$----_----; -

$FFFF_FFFF; -1

-

-

wz wc

$FFFF_FFFF; -1

0

1

$----_----; -

$0000_0000; 0

-

-

wz wc

$0000_0000; 0

1

0

$----_----; -

$0000_0001; 1

-

-

wz wc

$0000_0001; 1

0

0

Explanation

MOV copies, or stores, the number in Value into Destination.

If the WZ effect is specified, the Z flag is set (1) if Value equals zero. If the WC effect is specified, the C flag is set to Value's MSB. The result is written to Destination unless the NR effect is specified.

Unless otherwise noted, content on this site is licensed under the
Creative Commons Attribution-ShareAlike 4.0 International License.