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


5.6.5 Stack pointer manipulation

sp0 ( – a-addr  ) gforth-0.4 “sp0”

User variable – initial value of the data stack pointer.

sp@ ( S:... – a-addr ) gforth-0.4 “sp-fetch”
sp! ( a-addr – S:... ) gforth-0.4 “sp-store”
fp0 ( – a-addr  ) gforth-0.4 “fp0”

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

fp@ ( f:... – f-addr ) gforth-0.4 “fp-fetch”
fp! ( f-addr – f:... ) gforth-0.4 “fp-store”
rp0 ( – a-addr  ) gforth-0.4 “rp0”

User variable – initial value of the return stack pointer.

rp@ ( – a-addr ) gforth-0.4 “rp-fetch”
rp! ( a-addr – ) gforth-0.4 “rp-store”
lp0 ( – a-addr  ) gforth-0.4 “lp0”

User variable – initial value of the locals stack pointer.

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