| \ VARS.FS Kernal variables |
\ VARS.FS Kernal variables |
| |
|
| \ Copyright (C) 1995,1996,1997,1998,2000 Free Software Foundation, Inc. |
\ Copyright (C) 1995,1996,1997,1998,2000,2003 Free Software Foundation, Inc. |
| |
|
| \ This file is part of Gforth. |
\ This file is part of Gforth. |
| |
|
| |
|
| \ initialized by COLD |
\ initialized by COLD |
| |
|
| Create main-task has? OS [IF] 100 [ELSE] 40 [THEN] cells allot |
Create main-task has? OS [IF] 100 [ELSE] 40 [THEN] cells dup allot |
| |
|
| \ set user-pointer from cross-compiler right |
\ set user-pointer from cross-compiler right |
| main-task |
main-task |
| UNLOCK tup ! LOCK |
UNLOCK swap region user-region user-region setup-region LOCK |
| |
|
| Variable udp ( -- a-addr ) \ gforth |
Variable udp ( -- a-addr ) \ gforth |
| \ user area size? -anton |
\G user area size |
| |
|
| AUser next-task main-task next-task ! |
AUser next-task main-task next-task ! |
| AUser prev-task main-task prev-task ! |
AUser prev-task main-task prev-task ! |
| |
|
| User loadfile 0 loadfile ! |
User loadfile 0 loadfile ! |
| |
|
| User loadfilename# 0 loadfilename# ! |
2user loadfilename 0 0 loadfilename 2! \ addr u for sourcefilename |
| |
|
| User loadline \ number of the currently interpreted |
User loadline \ number of the currently interpreted |
| \ (in TIB) line if the interpretation |
\ (in TIB) line if the interpretation |
| AUser LastCFA |
AUser LastCFA |
| AUser Last |
AUser Last |
| |
|
| |
AUser last-compiled \ last compile,d xt |
| |
\ 0 if last xt was dyn-compiled already (basic-block-end) |
| |
0 last-compiled ! |
| |
AUser last-compiled-here \ where LAST-COMPILED should be stored |
| |
|
| |
User max-name-length \ maximum length of all names defined yet |
| |
32 max-name-length ! |
| |
|
| |
\ has? peephole [IF] |
| |
\ 0 value peeptable \ initialized in boot |
| |
\ [THEN] |
| |
|
| has? glocals [IF] |
has? glocals [IF] |
| User locals-size \ this is the current size of the locals stack |
User locals-size \ this is the current size of the locals stack |
| \ frame of the current word |
\ frame of the current word |