Annotation of gforth/main.fs, revision 1.25
1.1 anton 1: \ MAIN.FS Kernal main load file 20may93jaw
2:
1.19 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: \ : include bl word count included ;
22: \ we want write include...
23:
1.3 pazsan 24: \ : : ( -- colon-sys ) Header [ ' : @ ] ALiteral cfa, 0 ] ;
25: \ : ; ( colon-sys -- ) ?struc postpone exit reveal postpone [ ; immediate
26: \ : :noname ( -- xt colon-sys ) here [ ' : @ ] ALiteral cfa, 0 ] ;
1.1 anton 27:
1.22 pazsan 28: include search-order.fs
29:
1.15 anton 30: \ include etags.fs
1.1 anton 31:
32: include cross.fs \ include cross-compiler
33:
34: decimal
35:
1.23 pazsan 36: cell 2 = [IF] 32 [ELSE] 256 [THEN] KB makekernel ( size )
1.21 anton 37: \ create image-header
38: 0 A, \ base address
39: 0 , \ checksum
40: 0 , \ image size (without tags)
41: , \ dict size
42: 16 KB , \ data stack size
1.25 ! anton 43: 15 KB 512 + , \ FP stack size
! 44: 15 KB , \ return stack size
! 45: 14 KB 512 + , \ locals stack size
1.21 anton 46: 0 A, \ code entry point
47: 0 A, \ throw entry point
48: 16 KB , \ unused (possibly tib stack size)
49: 0 , \ unused
1.24 anton 50: 0 , \ data stack base
51: 0 , \ fp stack base
52: 0 , \ return stack base
53: 0 , \ locals stack base
1.1 anton 54:
55: UNLOCK ghost - drop \ ghost must exist because - would be treated as number
56: LOCK
57:
58: 0 AConstant forthstart
59:
1.23 pazsan 60: doc-off
1.1 anton 61: include aliases.fs \ include primitive aliases
1.23 pazsan 62: doc-on
1.1 anton 63: \ include cond.fs \ conditional compile
64: \ include patches.fs \ include primitive patches
65:
66: include vars.fs \ variables and other stuff
67: include add.fs \ additional things
68: include errore.fs
1.22 pazsan 69: include version.fs
1.23 pazsan 70: include kernel.fs \ load kernel
1.1 anton 71: include extend.fs \ load core-extended
72: include tools.fs \ load tools ( .s dump )
1.22 pazsan 73: include toolsext.fs
74: include special.fs
1.1 anton 75: \ include words.fs
76: \ include wordinfo.fs
77: \ include see.fs \ load see
78: \ include search-order.fs
79:
80: \ Setup 13feb93py
81:
1.4 anton 82: here normal-dp !
1.2 pazsan 83: tudp H @ minimal udp !
1.1 anton 84: decimal
85:
1.21 anton 86: here 2 cells ! \ image size
87: ' boot >body 8 cells ! \ Entry point
1.1 anton 88:
89: UNLOCK Tlast @
90: LOCK
91: 1 cells - dup forth-wordlist ! Last !
92: .unresolved
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>