Virgil Dupras
a699c93509
Print word that wasn't found on "word not found" error
4 years ago
Virgil Dupras
f19a5e1f71
Remove recipes/rc2014/zasm
That becomes irrelevant in Forth
4 years ago
Virgil Dupras
44403c3d4c
Move icore to blkfs
The way is clear for complete stage1 bootstrapping on the RC2014
target!
4 years ago
Virgil Dupras
8fbbf5209a
Copy sdc driver to blkfs
4 years ago
Virgil Dupras
a19376df6c
Copy ACIA driver to blkfs
We can get rid of acia.z80, but not of acia.fs yet, we still need it.
4 years ago
Virgil Dupras
dd6ce1b8fe
Avoid using (xentry) outside xcomp config
4 years ago
Virgil Dupras
fcd77f80ab
Use blk's boot.z80
4 years ago
Virgil Dupras
503dbe9a2c
Copy boot.z80 to blkfs
4 years ago
Virgil Dupras
338769a0a8
z80a: add PUSH0, PUSH1, PUSHZ, macros
4 years ago
Virgil Dupras
7464c67c80
boot: fix (roll)
It didn't work for values over 0xff. Duh!
4 years ago
Virgil Dupras
7a0e63746f
parse: don't validate 0x and 0b lengths
It doesn't serve much purpose and takes up many precious bytes. And,
after all, parsed didn't do it either...
4 years ago
Virgil Dupras
372524fd19
Move xcomp to blocks
4 years ago
Virgil Dupras
446ce574cd
Add words "'S" and "S0"
4 years ago
Virgil Dupras
ae14c55feb
boot: a little dereferencing to make things a bit faster
4 years ago
Virgil Dupras
e569e40665
Forth-ify 2DUP 2OVER 2SWAP
2DROP was left in boot.z80 because it's used in icore.
4 years ago
Virgil Dupras
0438cb92fe
Add word "ROLL"
4 years ago
Virgil Dupras
2de1eabaa6
z80a: add LDIR, LDDR, and friends
4 years ago
Virgil Dupras
4967c2add2
Merge z80c.fs and boot.fs into boot.z80
4 years ago
Virgil Dupras
41ed70f8cb
z80c: Add word "PICK"
4 years ago
Virgil Dupras
58c017448f
z80a: add JPccnn,
4 years ago
Virgil Dupras
353d12c27d
boot: inline chkRS, make next a bit faster
4 years ago
Virgil Dupras
bf49ca2ed2
recipes/rc2014: fix Makefile
It didn't have z80a anymore.
4 years ago
Virgil Dupras
d466c6d95d
emul: make stage2 load z80a from blkfs
This allows us to remove forth/z80a.fs. Another big step towards
self-hosting!
4 years ago
Virgil Dupras
6ae65940d2
Update bootstrap bin
It seems that I had forgotten in an earlier commit.
4 years ago
Virgil Dupras
0892193cbe
Copy z80a.fs to disk blocks
I don't remove z80a.fs yet because build process needs it, but that
will change shortly.
4 years ago
Virgil Dupras
98191d0b0d
recipes/rc2014/sdcard: now works under Forth!
4 years ago
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.
4 years ago
Virgil Dupras
29a6ee128d
core: fix PSP leak in CASE..ENDCASE
4 years ago
Virgil Dupras
a2d89de557
drv/sdc: implement core words in z80
In addition to making the driver significantly faster, it allows us
to make SDC port configuration opaque to sdc.fs.
4 years ago
Virgil Dupras
a70366aa43
drv/sdc: Implement SDC!
This has been tested in the RC2014 emulator. I could edit blocks with
the Block Editor and they would correctly be written to SDC.
4 years ago
Virgil Dupras
47a7133b8b
drv/sdc: Implement "SDC@" as a BLK@ word
"0 LIST" in the RC2014 emulator w/ SD card works!
4 years ago
Virgil Dupras
f3c92684a0
link: improve reliability by never relinking last word
It's not possible to reliably determine its end and with some memory
initialization scenarios, it makes RLDICT fail.
4 years ago
Virgil Dupras
052c744000
drv/sdc: implement "SDC@"
I can read a block from blkfs in RC2014 emulator. It even checks
CRC16 successfully!
4 years ago
Virgil Dupras
c64a8a2e2b
drv/sdc: new unit to drive SD card through SPI relay
Goes through initialization in RC2014 emulator.
4 years ago
Virgil Dupras
b062a9092a
parse: use "0<" instead of "0 <"
As I wrote in my "Clarify signed-ness" commit, "0 <" is broken.
Also, made this unit a bit more compact. The RC2014 stage1 can
really use some breathing room...
4 years ago
Virgil Dupras
66f65daa08
Add word LEAVE
4 years ago
Virgil Dupras
19d94dfb47
recipes/rc2014: stage1 is too big! saving some space
stripfc requires 2 spaces before "(" to strip a comment. This was
a low hanging fruit for me to get stage1.bin under the 8K line.
That thing is getting tight...
4 years ago
Virgil Dupras
287213fc68
recipes/rc2014/eeprom: remove old stuff
4 years ago
Virgil Dupras
82044454d5
Merge branch 'master' into forth
4 years ago
Virgil Dupras
9c41744e46
emul/hw/rc2014: implement blk write in sdc
All of that should help me implement sdc support much faster in
Forth.
4 years ago
Virgil Dupras
7544b3834b
emul/hw/rc2014: implement blkread in sdc
I now get to "fls" in recipes/rc2014/sdcard!
4 years ago
Virgil Dupras
ae470397d7
emul/hw/rc2014: add sdc emulator (wip)
so far, it goes through initialization with the rc2014/sdcard recipe.
4 years ago
Virgil Dupras
2cadae260d
editor: add "U" word
4 years ago
Virgil Dupras
9edab10a3a
blk: add dirty flag and auto write blocks on fetch
Also, fix some PSP leaks related to LOAD.
4 years ago
Virgil Dupras
79ce88c12c
tools: add blkunpack
and remove cfspack, which will not ever be used again.
4 years ago
Virgil Dupras
5cb4a7de9a
Add word "C@+"
4 years ago
Virgil Dupras
eefa8e6de5
Add word "BLK!"
as well as emulator support for it. We can now write an edited
block back to "blkfs".
4 years ago
Virgil Dupras
57e20f0532
Block explorer upgraded to block editor!
4 years ago
Virgil Dupras
5067d40e3b
Add CASE..OF words
4 years ago
Virgil Dupras
733aff7b7a
rc2014: adjust bootstrapping instructions
4 years ago