| undefine(`shift') |
undefine(`shift') |
| undefine(`symbols') |
undefine(`symbols') |
| |
|
| |
\g control |
| |
|
| noop ( -- ) gforth |
noop ( -- ) gforth |
| : |
: |
| ; |
; |
| |
|
| \ digit is high-level: 0/0% |
\ digit is high-level: 0/0% |
| |
|
| |
\g strings |
| |
|
| move ( c_from c_to ucount -- ) core |
move ( c_from c_to ucount -- ) core |
| ""Copy the contents of @i{ucount} aus at @i{c-from} to |
""Copy the contents of @i{ucount} aus at @i{c-from} to |
| @i{c-to}. @code{move} works correctly even if the two areas overlap."" |
@i{c-to}. @code{move} works correctly even if the two areas overlap."" |
| : |
: |
| tuck - >r + r> dup 0< IF - 0 THEN ; |
tuck - >r + r> dup 0< IF - 0 THEN ; |
| |
|
| |
\g arith |
| |
|
| + ( n1 n2 -- n ) core plus |
+ ( n1 n2 -- n ) core plus |
| n = n1+n2; |
n = n1+n2; |
| |
|
| : |
: |
| over - >r - r> u< ; |
over - >r - r> u< ; |
| |
|
| |
\g internal |
| |
|
| sp@ ( -- a_addr ) gforth sp_fetch |
sp@ ( -- a_addr ) gforth sp_fetch |
| a_addr = sp+1; |
a_addr = sp+1; |
| |
|
| ""The primitive compiled by @code{EXIT}."" |
""The primitive compiled by @code{EXIT}."" |
| SET_IP((Xt *)w); |
SET_IP((Xt *)w); |
| |
|
| |
\g stack |
| |
|
| >r ( w -- R:w ) core to_r |
>r ( w -- R:w ) core to_r |
| : |
: |
| (>r) ; |
(>r) ; |
| |
|
| \f[THEN] |
\f[THEN] |
| |
|
| |
\g hostos |
| |
|
| key-file ( wfileid -- n ) gforth paren_key_file |
key-file ( wfileid -- n ) gforth paren_key_file |
| #ifdef HAS_FILE |
#ifdef HAS_FILE |
| fflush(stdout); |
fflush(stdout); |
| \+ |
\+ |
| \+floating |
\+floating |
| |
|
| |
\g floating |
| |
|
| comparisons(f, r1 r2, f_, r1, r2, gforth, gforth, float, gforth) |
comparisons(f, r1 r2, f_, r1, r2, gforth, gforth, float, gforth) |
| comparisons(f0, r, f_zero_, r, 0., float, gforth, float, gforth) |
comparisons(f0, r, f_zero_, r, 0., float, gforth, float, gforth) |
| |
|
| |
|
| \+peephole |
\+peephole |
| |
|
| |
\g peephole |
| |
|
| primtable ( -- wprimtable ) new |
primtable ( -- wprimtable ) new |
| ""wprimtable is a table containing the xts of the primitives indexed |
""wprimtable is a table containing the xts of the primitives indexed |
| by sequence-number in prim (for use in prepare-peephole-table)."" |
by sequence-number in prim (for use in prepare-peephole-table)."" |