Difference between supervisor and user stack pointer
Page 1 of 1

Author:  richardcavell [ Thu Dec 27, 2012 4:43 am ]
Post subject:  Difference between supervisor and user stack pointer

Hi, everyone. I want to make sure that I understand this. Let me describe the situation as I think it is, and correct me if I'm wrong.

Within the 68000 CPU, there are two stack pointers, the user stack pointer and the supervisor stack pointer. When the CPU is in user mode, it uses the USP, which can be aliased as A7. Sometimes the CPU will enter supervisor mode. When it does so, it stops using USP and tucks the value away somewhere for safekeeping. While in supervisor mode, A7 references the SSP.

It is impossible to access the value of SSP while in user mode. While in supervisor mode, the USP can be accessed with a special opcode.

So at any given time, the 68000 is remembering the values of the two stack pointers, and A7 refers to one of them.

Am I right?

Author:  profkelly [ Thu Dec 27, 2012 2:03 pm ]
Post subject:  Re: Difference between supervisor and user stack pointer

Correct :thumbleft:

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group