| |
|
| [THEN] |
[THEN] |
| |
|
| cell% 2* 0 0 field >body ( xt -- a_addr ) \ core |
cell% 2* 0 0 field >body ( xt -- a_addr ) \ core to-body |
| \G Get the address of the body of the word represented by @i{xt} (the |
\G Get the address of the body of the word represented by @i{xt} (the |
| \G address of the word's data field). |
\G address of the word's data field). |
| drop drop |
drop drop |
| |
|
| \ \ Cold Boot 13feb93py |
\ \ Cold Boot 13feb93py |
| |
|
| : (bootmessage) |
: (bootmessage) ( -- ) |
| ." Gforth " version-string type |
." Gforth " version-string type |
| ." , Copyright (C) 1995-2006 Free Software Foundation, Inc." cr |
." , Copyright (C) 1995-2006 Free Software Foundation, Inc." cr |
| ." Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'" |
." Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'" |
| cr ." Type `bye' to exit" |
cr ." Type `bye' to exit" |
| [ [THEN] ] ; |
[ [THEN] ] ; |
| |
|
| defer bootmessage \ gforth |
defer bootmessage ( -- ) \ gforth |
| \G Hook (deferred word) executed right after interpreting the OS |
\G Hook (deferred word) executed right after interpreting the OS |
| \G command-line arguments. Normally prints the Gforth startup |
\G command-line arguments. Normally prints the Gforth startup |
| \G message. |
\G message. |