mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-05 20:30:56 +11:00
a2f164ecc3
Big bootstrapping change which greatly reduces the role of the modern operating system in the bootstrapping process.
29 lines
390 B
Forth
29 lines
390 B
Forth
: EFS@
|
|
256 /MOD 3 PC! 3 PC!
|
|
1024 0 DO
|
|
4 PC@
|
|
BLK( I + C!
|
|
LOOP
|
|
;
|
|
: EFS!
|
|
256 /MOD 3 PC! 3 PC!
|
|
1024 0 DO
|
|
BLK( I + C@ 4 PC!
|
|
LOOP
|
|
;
|
|
|
|
: INIT
|
|
CURRENT @ HERE !
|
|
BLK$
|
|
['] EFS@ BLK@* !
|
|
['] EFS! BLK!* !
|
|
RDLN$
|
|
LIT< _sys [entry]
|
|
." Collapse OS" CRLF
|
|
INTERPRET
|
|
;
|
|
|
|
(entry) _
|
|
H@ 256 /MOD 2 PC! 2 PC!
|
|
H@ 0x08 ! ( update LATEST )
|