2020-04-14 10:04:09 -04:00
|
|
|
Parameter Stack
|
|
|
|
|
|
|
|
DROP a --
|
|
|
|
DUP a -- a a
|
2020-05-22 13:48:30 -04:00
|
|
|
?DUP DUP if a is nonzero
|
2020-04-14 10:04:09 -04:00
|
|
|
OVER a b -- a b a
|
|
|
|
ROT a b c -- b c a
|
|
|
|
SWAP a b -- b a
|
|
|
|
2DROP a a --
|
|
|
|
2DUP a b -- a b a b
|
|
|
|
2OVER a b c d -- a b c d a b
|
|
|
|
2SWAP a b c d -- c d a b
|
2020-04-21 07:45:23 -04:00
|
|
|
'S Returns current stack pointer, not counting the
|
|
|
|
push it's making right now.
|
|
|
|
S0 Returns address of PSP TOS. When PSP is empty,
|
2020-05-22 13:48:30 -04:00
|
|
|
'S == S0 (cont.)
|