Re: A89: Starting out assembly, need help
[Prev][Next][Index][Thread]
Re: A89: Starting out assembly, need help
>What does decrementing the pointer by a word mean?
The pointer in this case is just the address for the top of the stack. By
decrementing it by a word you subtract 2 from it -- since the stack grows
upwords you subtract when you add. A word takes up two bytes of RAM, a
long word 4, and a byte 1 (duh). With a .w instruction the pointer is
decremented by 2, 4 for a .l instruction...
--Nate
References: