mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 17:58:06 +11:00
3d908cef3a
This allows us to get rid of the (parse*) indirection.
17 lines
585 B
Plaintext
17 lines
585 B
Plaintext
On a bare system (only boot+icore), this sequence will result
|
|
in (c<) reading characters from memory starting from CURRENT
|
|
(this is why we put CURRENT in BOOT C< PTR, it tracks current
|
|
pos ).
|
|
|
|
This means that you can put initialization code in source form
|
|
right into your binary, right after your last compiled dict
|
|
entry and it's going to be executed as such until you set a new
|
|
(c<).
|
|
|
|
Note that there is no EMIT in a bare system. You have to take
|
|
care of supplying one before your load core.fs and its higher
|
|
levels.
|
|
|
|
|
|
(cont.)
|