1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-17 08:58:06 +11:00
collapseos/emul/stage1.fs

29 lines
393 B
Forth
Raw Normal View History

: 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]
2020-05-04 22:10:18 +10:00
." Collapse OS" NL
INTERPRET
;
(entry) _
H@ 256 /MOD 2 PC! 2 PC!
H@ 0x08 BIN+ ! ( update LATEST )