Skip to main content
Knowledgebase
Home
Renesas Singapore - Knowledgebase

What are respective address values to register A & X in MOVW AX, 0FE20H?

Latest Updated:04/01/2006

Question:

In 78K0 devices, such as when a "MOVW AX, 0FE20H" instruction is executed, what are the respective address values that are stored to register A and register X?

Answer:

The contents of address FE21 are stored to register A and the contents of address FE20 are stored to register X.
Basically, this CPU operates in little endian order, so low data values correspond to low address values (however, note with caution that in the case of the "MOVW AX, saddrp" instructions, only even-numbered addresses can be specified).
Suitable Products
RL78 Family
78K Family