Audio-19, page (Compilation) 17, under ‘another example’, we are showing x = 20; as ‘move.l 20, (sp+4)’.
Shouldn’t it just be the contents of sp (instead of sp+4) since we already did a ‘sub.a 4,sp’ previously?
I must be missing something obvious..
(sp) is correct to refer to the new reference y. But the instruction refers to variable x which is exactly 4 bytes above sp because of “sub sp,4” instruction !!
Please login first to submit.