Keil Logo Arm Logo

MOVX

The MOVX instruction transfers data between the accumulator and external data memory. External memory may be addressed via 16-bits in the DPTR register or via 8-bits in the R0 or R1 registers. When using 8-bit addressing, Port 2 must contain the high-order byte of the address.

See Also: MOV, MOVC

MOVX @Ri, A
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 2
Encoding
1111001i
Operation
MOVX
(Ri) = A
Example
MOVX @R0, A
MOVX A, @DPTR
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 2
Encoding
11100000
Operation
MOVX
A = (DPTR)
Example
MOVX A, @DPTR
MOVX A, @Ri
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 2
Encoding
1110001i
Operation
MOVX
A = (Ri)
Example
MOVX A, @R1

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

ARM’s Privacy Policy has been updated. By continuing to use our site, you consent to ARM’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.