[gforth] / gforth / Attic / main.fs  

gforth: gforth/Attic/main.fs


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help