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.
il y a 4 ans
Virgil Dupras
dd6ce1b8fe
Avoid using (xentry) outside xcomp config
il y a 4 ans
Virgil Dupras
fcd77f80ab
Use blk's boot.z80
il y a 4 ans
Virgil Dupras
503dbe9a2c
Copy boot.z80 to blkfs
il y a 4 ans
Virgil Dupras
338769a0a8
z80a: add PUSH0, PUSH1, PUSHZ, macros
il y a 4 ans
Virgil Dupras
7464c67c80
boot: fix (roll)
It didn't work for values over 0xff. Duh!
il y a 4 ans
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...
il y a 4 ans
Virgil Dupras
372524fd19
Move xcomp to blocks
il y a 4 ans
Virgil Dupras
446ce574cd
Add words "'S" and "S0"
il y a 4 ans
Virgil Dupras
ae14c55feb
boot: a little dereferencing to make things a bit faster
il y a 4 ans
Virgil Dupras
e569e40665
Forth-ify 2DUP 2OVER 2SWAP
2DROP was left in boot.z80 because it's used in icore.
il y a 4 ans
Virgil Dupras
0438cb92fe
Add word "ROLL"
il y a 4 ans
Virgil Dupras
2de1eabaa6
z80a: add LDIR, LDDR, and friends
il y a 4 ans
Virgil Dupras
4967c2add2
Merge z80c.fs and boot.fs into boot.z80
il y a 4 ans
Virgil Dupras
41ed70f8cb
z80c: Add word "PICK"
il y a 4 ans
Virgil Dupras
58c017448f
z80a: add JPccnn,
il y a 4 ans
Virgil Dupras
353d12c27d
boot: inline chkRS, make next a bit faster
il y a 4 ans
Virgil Dupras
bf49ca2ed2
recipes/rc2014: fix Makefile
It didn't have z80a anymore.
il y a 4 ans
Virgil Dupras
d466c6d95d
emul: make stage2 load z80a from blkfs
This allows us to remove forth/z80a.fs. Another big step towards
self-hosting!
il y a 4 ans
Virgil Dupras
6ae65940d2
Update bootstrap bin
It seems that I had forgotten in an earlier commit.
il y a 4 ans
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.
il y a 4 ans
Virgil Dupras
98191d0b0d
recipes/rc2014/sdcard: now works under Forth!
il y a 4 ans
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.
il y a 4 ans
Virgil Dupras
29a6ee128d
core: fix PSP leak in CASE..ENDCASE
il y a 4 ans
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.
il y a 4 ans
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.
il y a 4 ans
Virgil Dupras
47a7133b8b
drv/sdc: Implement "SDC@" as a BLK@ word
"0 LIST" in the RC2014 emulator w/ SD card works!
il y a 4 ans
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.
il y a 4 ans
Virgil Dupras
052c744000
drv/sdc: implement "SDC@"
I can read a block from blkfs in RC2014 emulator. It even checks
CRC16 successfully!
il y a 4 ans
Virgil Dupras
c64a8a2e2b
drv/sdc: new unit to drive SD card through SPI relay
Goes through initialization in RC2014 emulator.
il y a 4 ans
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...
il y a 4 ans
Virgil Dupras
66f65daa08
Add word LEAVE
il y a 4 ans
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...
il y a 4 ans
Virgil Dupras
287213fc68
recipes/rc2014/eeprom: remove old stuff
il y a 4 ans
Virgil Dupras
82044454d5
Merge branch 'master' into forth
il y a 4 ans
Virgil Dupras
9c41744e46
emul/hw/rc2014: implement blk write in sdc
All of that should help me implement sdc support much faster in
Forth.
il y a 4 ans
Virgil Dupras
7544b3834b
emul/hw/rc2014: implement blkread in sdc
I now get to "fls" in recipes/rc2014/sdcard!
il y a 4 ans
Virgil Dupras
ae470397d7
emul/hw/rc2014: add sdc emulator (wip)
so far, it goes through initialization with the rc2014/sdcard recipe.
il y a 4 ans
Virgil Dupras
2cadae260d
editor: add "U" word
il y a 4 ans
Virgil Dupras
9edab10a3a
blk: add dirty flag and auto write blocks on fetch
Also, fix some PSP leaks related to LOAD.
il y a 4 ans
Virgil Dupras
79ce88c12c
tools: add blkunpack
and remove cfspack, which will not ever be used again.
il y a 4 ans
Virgil Dupras
5cb4a7de9a
Add word "C@+"
il y a 4 ans
Virgil Dupras
eefa8e6de5
Add word "BLK!"
as well as emulator support for it. We can now write an edited
block back to "blkfs".
il y a 4 ans
Virgil Dupras
57e20f0532
Block explorer upgraded to block editor!
il y a 4 ans
Virgil Dupras
5067d40e3b
Add CASE..OF words
il y a 4 ans
Virgil Dupras
733aff7b7a
rc2014: adjust bootstrapping instructions
il y a 4 ans
Virgil Dupras
65bc3b73ad
link: adjust (br) and (?br) hardcoded offsets
They changed in my earlier commit.
il y a 4 ans
Virgil Dupras
b01de82fd1
drv/acia: latest bells and whistles
il y a 4 ans
Virgil Dupras
4eca827d36
First function application: Block explorer!
il y a 4 ans
Virgil Dupras
5d4155aa32
Add words 1+ 2+ 1- 2- and consts 0 1 -1
Saves quite a few bytes in the final binary.
il y a 4 ans