5.8.11 TOS

Top-of-Stack Registers
Contents of the stack pointed to by the STKPTR register. To access the stack, adjust the value of STKPTR, which will position TOSH:TOSL, then read/write to TOSH:TOSL.
Note: The individual bytes in this multibyte register can be accessed with the following register names:
  • TOSH: Accesses the high byte TOS[15:8]
  • TOSL: Accesses the low byte TOS[7:0]
Name: TOS
Offset: 0xFEE

Bit 15141312111098 
 TOS[15:8] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 TOS[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 15:0 – TOS[15:0] TOS Register Value

The individual bytes in this multibyte register can be accessed with the following register names: TOSH: Accesses the high byte TOS[15:8] TOSL: Accesses the low byte TOS[7:0]