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

5.6.2 Floating point stack

floating-stack       – n         environment       “floating-stack”

n is non-zero, showing that Gforth maintains a separate floating-point stack of depth n.

fdrop       r –        float       “f-drop”
fnip       r1 r2 – r2        gforth       “f-nip”
fdup       r – r r        float       “f-dupe”
fover       r1 r2 – r1 r2 r1        float       “f-over”
ftuck       r1 r2 – r2 r1 r2        gforth       “f-tuck”
fswap       r1 r2 – r2 r1        float       “f-swap”
fpick       f:... u – f:... r        gforth       “fpick”

Actually the stack effect is r0 ... ru u -- r0 ... ru r0 .

frot       r1 r2 r3 – r2 r3 r1        float       “f-rote”