Annotation of gforth/main.fs, revision 1.15

1.1       anton       1: \ MAIN.FS      Kernal main load file                   20may93jaw
                      2: 
                      3: \ : include bl word count included ;
                      4: \ we want write include...
                      5: 
1.3       pazsan      6: \ : : ( -- colon-sys )  Header [ ' : @ ] ALiteral cfa, 0 ] ;
                      7: \ : ; ( colon-sys -- )  ?struc postpone exit reveal postpone [ ; immediate
                      8: \ : :noname ( -- xt colon-sys )  here [ ' : @ ] ALiteral cfa, 0 ] ;
1.1       anton       9: 
1.6       pazsan     10: [IFUNDEF] vocabulary include search-order.fs [THEN]
1.15    ! anton      11: \ include etags.fs
1.1       anton      12: 
                     13: include cross.fs               \ include cross-compiler
                     14: 
                     15: decimal
                     16: 
1.13      pazsan     17: 256 KB makekernal , 0 , 0 , 0 A, 0 A, 0 A,
1.1       anton      18: 
                     19: UNLOCK ghost - drop \ ghost must exist because - would be treated as number
                     20: LOCK
                     21: 
                     22: 0 AConstant forthstart
                     23: 
                     24: include aliases.fs             \ include primitive aliases
                     25: \ include cond.fs                \ conditional compile
                     26: \ include patches.fs             \ include primitive patches
                     27: 
                     28: include vars.fs                \ variables and other stuff
                     29: include add.fs                 \ additional things
                     30: include errore.fs
                     31: include kernal.fs              \ load kernal
                     32: include extend.fs              \ load core-extended
                     33: include tools.fs               \ load tools ( .s dump )
                     34: \ include words.fs
                     35: \ include wordinfo.fs
                     36: \ include see.fs                 \ load see
                     37: include toolsext.fs
                     38: \ include search-order.fs
                     39: 
                     40: \ Setup                                                13feb93py
                     41: 
1.4       anton      42: here normal-dp !
1.2       pazsan     43: tudp H @ minimal udp !
1.1       anton      44: decimal
                     45: 
1.14      pazsan     46: \ 64 KB        0 cells !  \ total Space... defined above!
                     47:   here         1 cells !  \ Size of the system
                     48:   16 KB        2 cells !  \ Return and fp stack size
1.5       anton      49:   ' boot >body 3 cells !  \ Entry point
1.1       anton      50: 
                     51: UNLOCK Tlast @
                     52: LOCK
                     53: 1 cells - dup forth-wordlist ! Last !
                     54: .unresolved
                     55: 
1.14      pazsan     56: cr cr
                     57: cell bigendian
                     58: [IF]
                     59:    dup 2 = [IF]   save-cross kernl16b.fi  [THEN]
                     60:    dup 4 = [IF]   save-cross kernl32b.fi  [THEN]
                     61:    dup 8 = [IF]   save-cross kernl64b.fi  [THEN]
1.1       anton      62: [ELSE]
1.14      pazsan     63:    dup 2 = [IF]   save-cross kernl16l.fi  [THEN]
                     64:    dup 4 = [IF]   save-cross kernl32l.fi  [THEN]
                     65:    dup 8 = [IF]   save-cross kernl64l.fi  [THEN]
                     66: [THEN] drop cr
1.1       anton      67: 
                     68: bye

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