Node:Stack pointer manipulation, Previous:Locals stack, Up:Stack Manipulation



Stack pointer manipulation


sp0       -- a-addr         gforth       ``sp0''
User variable - initial value of the data stack pointer.
sp@       -- a-addr        gforth       ``sp-fetch''

sp!       a-addr --        gforth       ``sp-store''

fp0       -- a-addr         gforth       ``fp0''
User variable - initial value of the floating-point stack pointer.
fp@       -- f-addr        gforth       ``fp-fetch''

fp!       f-addr --        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''