Annotation of gforth/vars.fs, revision 1.13

1.1       anton       1: \ VARS.FS      Kernal variables
                      2: 
1.8       anton       3: \ Copyright (C) 1995 Free Software Foundation, Inc.
                      4: 
                      5: \ This file is part of Gforth.
                      6: 
                      7: \ Gforth is free software; you can redistribute it and/or
                      8: \ modify it under the terms of the GNU General Public License
                      9: \ as published by the Free Software Foundation; either version 2
                     10: \ of the License, or (at your option) any later version.
                     11: 
                     12: \ This program is distributed in the hope that it will be useful,
                     13: \ but WITHOUT ANY WARRANTY; without even the implied warranty of
                     14: \ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     15: \ GNU General Public License for more details.
                     16: 
                     17: \ You should have received a copy of the GNU General Public License
                     18: \ along with this program; if not, write to the Free Software
                     19: \ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
                     20: 
1.1       anton      21: hex \ everything now hex!                               11may93jaw
                     22: 
                     23: \ important constants                                  17dec92py
                     24: 
                     25: \ dpANS6 (sect 3.1.3.1) says 
                     26: \ "a true flag ... [is] a single-cell value with all bits set"
                     27: \ better definition: 0 0= constant true ( no dependence on 2's compl)
                     28:  -1 Constant true               \ see starts looking for
                     29:                                 \ primitives after this word!
                     30:   0 Constant false
                     31: 
                     32: 1 cells Constant cell
1.13    ! anton      33: 1 floats Constant float
1.1       anton      34: 
1.7       anton      35: 20 Constant bl \ used by docon:, must be constant
1.1       anton      36: 
                     37: FF Constant /line
                     38: 
1.6       pazsan     39: 40 Constant c/l
                     40: 10 Constant l/s
                     41: 400 Constant chars/block
                     42: 
1.1       anton      43: \ that's enough so long
                     44: 
                     45: \ User variables                                       13feb93py
                     46: 
1.12      anton      47: 0 Value outfile-id ( -- file-id ) \ gforth
                     48: \ initialized by COLD
                     49: 
1.2       pazsan     50: Create main-task  100 cells allot
                     51: main-task tup H ! minimal
                     52: 
1.7       anton      53: Variable udp \ used by dovar:, must be variable
1.2       pazsan     54: 
1.6       pazsan     55: AUser next-task        main-task next-task !
                     56: AUser prev-task        main-task prev-task !
                     57: AUser save-task        0 save-task !
1.7       anton      58: AUser s0 \ used by douser:, must be user
1.1       anton      59: AUser r0
                     60: AUser f0
1.6       pazsan     61: AUser l0
1.1       anton      62: AUser handler
                     63: \ AUser output
                     64: \ AUser input
                     65: 
                     66: AUser errorhandler
                     67: 
                     68: AUser "error            0 "error !
                     69: 
1.9       pazsan     70:  User tibstack
1.1       anton      71:  User >tib
                     72:  User #tib
                     73:  User >in               0 >in !
                     74:  User blk               0 blk !
                     75:  User loadfile          0 loadfile !
1.10      pazsan     76: 
1.8       anton      77:  User loadfilename#    0 loadfilename# !
                     78: 
1.1       anton      79:  User loadline          \ number of the currently interpreted
                     80:                         \ (in TIB) line if the interpretation
                     81:                         \ is in a textfile
                     82:                         \ the first line is 1
                     83: 
1.5       pazsan     84: 2User linestart         \ starting file postition of
1.1       anton      85:                         \ the current interpreted line (in TIB)
                     86: 
1.2       pazsan     87:  User base              A base !
1.1       anton      88:  User dpl               -1 dpl !
                     89: 
                     90:  User state             0 state !
1.3       anton      91: AUser normal-dp                \ the usual dictionary pointer
                     92: AUser dpp              normal-dp dpp !
                     93:                        \ the pointer to the current dictionary pointer
                     94:                         \ ist reset to normal-dp on (doerror)
                     95:                         \  (i.e. any throw caught by quit)
1.1       anton      96: AUser LastCFA
                     97: AUser Last
1.4       anton      98: 
                     99: User locals-size \ this is the current size of the locals stack
                    100:                 \ frame of the current word
1.1       anton     101: 
                    102: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>