4/17/98 6-123 Addressing Modes and Data Types
MOVS Move Short
Syntax: MOVS dest, #data
Description: Four bits of signed immediate data are moved to the destination. The immediate data
is sign-extended to the proper size, then moved to the variable specified by the destination operand,
which may be a byte or a word. The immediate data range is +7 to -8. This instruction is used to
save time and code space for the many instances where a small data constant is moved to a
destination.
Size: Byte-Byte, Word-Word
Flags Updated: N, Z
MOVS Rd, #data4
Bytes: 2
Clocks: 3
Operation: (Rd) <-- sign-extended #data4
Encoding:
MOVS [Rd], #data4
Bytes: 2
Clocks: 3
Operation: ((WS:Rd)) <-- sign-extended #data4
Encoding:
MOVS [Rd+], #data4
Bytes: 2
Clocks: 4
Operation: ((WS:Rd)) <-- sign-extended #data4
(Rd) <-- (Rd) + 1 (byte operation) or 2 (word operation)
Encoding:
1 0 1 1 SZ 0 0 1 d d d d #data4
1 0 1 1 SZ 0 1 0 0 d d d #data4
1 0 1 1 SZ 0 1 1 0 d d d #data4