Propeller Manual

Table Of Contents
3: Assembly Language Reference – MOV
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.
Propeller Manual v1.1 · Page 311