XA User Guide 6-120 4/17/98
MOVC Move Code
Syntax: MOVC Rd, [Rs+]
Operation: (Rd) <-- code memory ((WS:Rs))
(Rs) <-- (Rs) + 1 (byte operation) or 2 (word operation)
Description: Contents of code memory are copied to an internal register. The byte or word
specified by the source operand is copied to the variable specified by the destination operand. In
the case of MOVC, the pointer segment selection gives the choices of PC
23-16
or CS segment
(current working segment referred here as WS), rather than DS or ES as is used for all other
instructions.
Size: Byte-Byte, Word-Word
Flags Updated: N, Z
Bytes:2
Clocks:4
Encoding:
1 0 0 0 SZ 0 0 0 d d d d 0 s s s