I was writing code for variable swap in in Motorola 68k Assembly Code. It was not working as intended. I was trying to debug but I simply cannot see where I messed up.
VALUE EQU $2000
PROG EQU $2100
ORG VALUE
VAR1: DS.L 1
VAR2: DS.L 1
ORG PROG
START: MOVE.L VAR1, $210E
MOVE.L VAR2, VAR1
MOVE.L $210E, VAR2
END START
First I tried to initialize variable TEMP at $210E but result was the same. After that I tried to initialize TEMP at $2100 but that did not work either.