C for The Microprocessor Engineer P2
Figure 2.1 shows how the post-byte is calculated for a Push or a Pull. Specifically the System stack is shown; if the User stack is being employed then U is replaced by S. Figure 2.3 shows a snapshot of memory after a Push onto the System stack.