Previous: , Up: Stack Manipulation   [Contents][Index]


5.6.5 Stack pointer manipulation

sp0       – a-addr         gforth       “sp0”

User variable – initial value of the data stack pointer.

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.

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.

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