My code is the following
Code:
ORG $50
START: ; first instruction of program
* Put program code here
lea message,a0 *50
move.b #2,d0 *56
MOVE.W #0,d1 *5A
Move.w ($2,PC,d0.w) , d1 *5E
message dc.b 1 *62
dc.b 2 *63
dc.b 3 *64
dc.b 4 *65
dc.b 5 *66
dc.b 6 *67
dc.b 7 *68
dc.b 8 *69
dc.b 9 *70
* Put variables and constants here
END START ; last line of source
I think the value in d1 should be 00000001. but the result is 0000FFFF.
what is wrong with it . The PC Is 5E , inplacement is $2 + #2 ,so the address is 62.
but it seem that the address is wrong(somewhere not init).could some one help me