Hi guys, I'm having trouble understanding how the 68000 handles the stack. I know that the 68000 uses the A7 register as its stack pointer. This is how I currently understand it tell me if I'm wrong:

1. A7 is referred to as "USP" when the 68000 is in User Mode
2. A7 in supervisor mode is now A7' (totally different reg) and is refered to as the SSP.

So in either mode the current stack pointer can be accessed by referring register A7?

Thanks in advance
Posted on 2004-11-19 19:45:08 by x86asm
Yes, that is right. And in privileged mode, you can use the MOVE An, USP and MOVE USP, An instructions to access the user stack pointer.
Posted on 2004-11-20 13:59:23 by Sephiroth3