mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-28 08:58:07 +11:00
icore: add BIN+
This allows us to write LATEST at proper offset in emul/stage1.fs in cases where we set a nonzero BIN(.
This commit is contained in:
parent
fc67b88720
commit
1b2c4b519e
1
blk/393
1
blk/393
@ -1,4 +1,5 @@
|
||||
: RAM+ [ RAMSTART LITN ] + ;
|
||||
: BIN+ [ BIN( @ LITN ] + ;
|
||||
: (parse*) 0x0a RAM+ ;
|
||||
: HERE 0x04 RAM+ ;
|
||||
: CURRENT* 0x51 RAM+ ;
|
||||
|
24
emul/run.fs
24
emul/run.fs
@ -1,24 +0,0 @@
|
||||
: 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
|
||||
;
|
BIN
emul/stage0.bin
BIN
emul/stage0.bin
Binary file not shown.
@ -25,4 +25,4 @@
|
||||
|
||||
(entry) _
|
||||
H@ 256 /MOD 2 PC! 2 PC!
|
||||
H@ 0x08 ! ( update LATEST )
|
||||
H@ 0x08 BIN+ ! ( update LATEST )
|
||||
|
@ -1,2 +0,0 @@
|
||||
(entry) _
|
||||
H@ 256 /MOD 2 PC! 2 PC!
|
Loading…
Reference in New Issue
Block a user