1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-25 17:38:05 +11:00
collapseos/forth
Virgil Dupras dfaa1dc101 link: add "offset" argument to RLDICT
As long as our target was the first word of the "user" dict, using
target's prev to compute offset was fine, but when the target is not
the first word, this system breaks down.

This is the case when, instead of including source code in our boot
binary, we paste it in Collapse OS' prompt.

Also, adjust RC2014 recipe to include stage 3 assembling instructions
with the "paste into prompt" method.
2020-04-19 16:28:40 -04:00
..
adev.fs Add adev unit 2020-04-12 21:49:20 -04:00
blk.fs blk: add dirty flag and auto write blocks on fetch 2020-04-16 20:59:20 -04:00
boot.fs boot: compaction 2020-04-15 20:57:46 -04:00
cmp.fs parse: use "0<" instead of "0 <" 2020-04-18 09:18:09 -04:00
core.fs core: fix PSP leak in CASE..ENDCASE 2020-04-18 22:05:11 -04:00
fmt.fs parse: use "0<" instead of "0 <" 2020-04-18 09:18:09 -04:00
icore.fs parse: use "0<" instead of "0 <" 2020-04-18 09:18:09 -04:00
link.fs link: add "offset" argument to RLDICT 2020-04-19 16:28:40 -04:00
parse.fs parse: use "0<" instead of "0 <" 2020-04-18 09:18:09 -04:00
print.fs Add word "C@+" 2020-04-16 18:58:11 -04:00
readln.fs Add words 1+ 2+ 1- 2- and consts 0 1 -1 2020-04-15 21:29:39 -04:00
README.md Move "forth" folder to project's root folder 2020-03-18 22:25:44 -04:00
str.fs Add word "C@+" 2020-04-16 18:58:11 -04:00
xcomp.fs Make word routine refs 1b instead of 2 2020-04-15 15:16:11 -04:00
z80a.fs Add words 1+ 2+ 1- 2- and consts 0 1 -1 2020-04-15 21:29:39 -04:00
z80c.fs Add words 1+ 2+ 1- 2- and consts 0 1 -1 2020-04-15 21:29:39 -04:00

Forth

WIP A Forth interpreter. Far from complete, but you can do stuff like

KEY EMIT KEY EMIT

See dictionary.txt for a word reference.