Previous: Locals stack, Up: Stack Manipulation


5.6.5 Stack pointer manipulation

sp0       – a-addr         gforth       “sp0”

User variable – initial value of the data stack pointer. OBSOLETE alias of sp0

sp@       S:... – a-addr        gforth       “sp-fetch”

sp!       a-addr – S:...        gforth       “sp-store”

fp0       – a-addr         gforth       “fp0”

User variable – initial value of the floating-point stack pointer.

fp@       f:... – f-addr        gforth       “fp-fetch”

fp!       f-addr – f:...        gforth       “fp-store”

rp0       – a-addr         gforth       “rp0”

User variable – initial value of the return stack pointer. OBSOLETE alias of rp0

rp@       – a-addr        gforth       “rp-fetch”

rp!       a-addr –        gforth       “rp-store”

lp0       – a-addr         gforth       “lp0”

User variable – initial value of the locals stack pointer. OBSOLETE alias of lp0

lp@       – addr         gforth       “lp-fetch”

lp!       c-addr –        gforth       “lp-store”