| |
|
| [IFUNDEF] r@ |
[IFUNDEF] r@ |
| ' i Alias r@ ( -- w ; R: w -- w ) \ core r-fetch |
' i Alias r@ ( -- w ; R: w -- w ) \ core r-fetch |
| \G copy w from the return stack to the data stack |
\G Copy @var{w} from the return stack to the data stack. |
| [THEN] |
[THEN] |
| |
|
| \ !! this is machine-dependent, but works on all but the strangest machines |
\ !! this is machine-dependent, but works on all but the strangest machines |
| \ !! use a separate exception stack? anton |
\ !! use a separate exception stack? anton |
| |
|
| has? glocals [IF] |
has? glocals [IF] |
| : lp@ ( -- addr ) \ gforth l-p-fetch |
: lp@ ( -- addr ) \ gforth lp-fetch |
| laddr# [ 0 , ] ; |
laddr# [ 0 , ] ; |
| [THEN] |
[THEN] |
| |
|
| rdrop ; |
rdrop ; |
| |
|
| : abort ( ?? -- ?? ) \ core,exception-ext |
: abort ( ?? -- ?? ) \ core,exception-ext |
| |
\G Empty the data stack and perform the functions of @code{quit}. |
| |
\G Since the exception word set is present, this is performed by |
| |
\G @code{-1 throw}. |
| -1 throw ; |
-1 throw ; |
| |
|
| \ ?stack 23feb93py |
\ ?stack 23feb93py |
| \ DEPTH 9may93jaw |
\ DEPTH 9may93jaw |
| |
|
| : depth ( -- +n ) \ core depth |
: depth ( -- +n ) \ core depth |
| \G +n is the number of values that were on the data stack before |
\G @var{+n} is the number of values that were on the data stack before |
| \G +n itself was placed on the stack. |
\G @var{+n} itself was placed on the stack. |
| sp@ sp0 @ swap - cell / ; |
sp@ sp0 @ swap - cell / ; |
| |
|
| : clearstack ( ... -- ) \ gforth clear-stack |
: clearstack ( ... -- ) \ gforth clear-stack |