mirror of
https://github.com/hsoft/collapseos.git
synced 2024-09-06 12:58:45 +10:00
... instead of building boot.fs, and then z80c.fs/icore.fs in separate passes. This strengten xcomp by making it support 2 completely separate dicts (that is, the X dict is *not* connected to the system dict. The chain now stops at EXIT def in boot.fs).
19 lines
271 B
Forth
19 lines
271 B
Forth
: _
|
|
['] EXIT ,
|
|
R> DROP ( exit : )
|
|
XCOFF
|
|
; IMMEDIATE
|
|
';' CURRENT @ 4 - C!
|
|
|
|
: (find) (xfind) ;
|
|
: ['] X['] ; IMMEDIATE
|
|
: COMPILE XCOMPILE ; IMMEDIATE
|
|
: CODE XCODE ;
|
|
: IMMEDIATE XIMM ;
|
|
: : [ ' X: , ] ;
|
|
|
|
CURRENT @ XCURRENT !
|
|
|
|
H@ 256 /MOD 2 PC! 2 PC!
|
|
H@ XOFF !
|