I am currently solving some problems out of "Microcontrollers Second Edition" and the question is asking:
mov [ W1],W0
The initial register memory contents of
W0 = 0x1004
W1 = 0x1006
W3 = 0xF0A2
0x1000 = 0x382A
0x1002 = 0xFB80
0x1004 = 0x80FF
The answer is:
W0 = 0x80FF
W1 = 0x0804
once the command is executed. The problem I am facing is the fact that there is no operation before the [ W1] register such as "--" or "++" which is why I do not understand how they came to this answer. If anyone could clarify I would greatly appreciate it.
mov [ W1],W0 ;Intentional space left before "W1" register.
W0 = 0x80FF
W1 = 0x0804
is the answer