Tony,
The stack pointer in a 65(C)02 is implemented as an 8-bit register that provides an index into the area of memory between 0x100 and 0x1ff. This is part of the main memory map (unlike some microcontrollers that have a seperate memory map for their stacks?). It is byte aligned and contains a mixture of both 'system' and 'user' information. The system information is typically return addresses held, if memory serves, as low-byte then high-byte. Obviously user information can be in any format.
I hope this helps.
Regards,
Simon J
|