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
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
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
353d12c27d
boot: inline chkRS, make next a bit faster
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
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
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
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
9edab10a3a
blk: add dirty flag and auto write blocks on fetch
Also, fix some PSP leaks related to LOAD.
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
5d4155aa32
Add words 1+ 2+ 1- 2- and consts 0 1 -1
Saves quite a few bytes in the final binary.
4 years ago
Virgil Dupras
e1e634c815
boot: compaction
It's more hassle than it seems to move the stable ABI...
4 years ago
Virgil Dupras
a56ace4d3e
boot: optimize (br)
4 years ago
Virgil Dupras
0750e8d0c0
Use IY for IP instead of RAM+06
4 years ago
Virgil Dupras
2a84a426b4
Strip usages of IY register
4 years ago
Virgil Dupras
2b0186fd58
boot: make routine field 1b
I forgot to do it earlier. NOP having an opcode of 0, it didn't have
any effect.
4 years ago
Virgil Dupras
d2ec5e271c
Optimize boot binary's word execution code
Should be significantly faster now. Less push/popping and usage of
DE instead of IY.
4 years ago
Virgil Dupras
d8de8a058a
Make word routine refs 1b instead of 2
Saves quite a bit of binary space. More than 300 bytes in forth1.bin
4 years ago
Virgil Dupras
e40c059c26
Make word routines all in the <0x100 range
4 years ago
Virgil Dupras
728e4ce123
Bring EXECUTE word outside of stable ABI
4 years ago
Virgil Dupras
2439f1ed86
Change SCMP for S=
Remove flagsToBC boot routine.
4 years ago
Virgil Dupras
16d5cd91de
emul: don't segfault on quit when there is no blkfs
4 years ago
Virgil Dupras
c40f336959
icore: extract "_pdacc" from "(parsed)"
Makes boot binary a bit bigger, but that "_pdacc" word will be
reused in high level apps.
4 years ago
Virgil Dupras
79acf92b28
emul: fix Makefile
4 years ago
Virgil Dupras
aec19e5c87
Add word "LOAD"
4 years ago
Virgil Dupras
a67101fb8b
Add word "EMPTY"
4 years ago
Virgil Dupras
b8dd86bd18
Move notes.txt in blk
4 years ago
Virgil Dupras
f59cac0588
blk: first steps
4 years ago
Virgil Dupras
d919a10265
Remove runbin
It's not used
4 years ago
Virgil Dupras
d08a9711c5
boot: make HERE point to RAMEND instead of CURRENT
The former was only used in the peculiar context of "/emul". The
regular case is actually HERE pointing to RAMEND on boot.
4 years ago
Virgil Dupras
d996dd8c9e
Add one layer of indirection in subsystem memory management
This allows optional subsystems to not needlessly reserve too much
system memory and it also reduces offsets bookkeeping.
4 years ago
Virgil Dupras
c515720e23
Revert "Remove link.fs"
Let's revisit the relinking approach, with LITA this time.
This reverts commit 6652125d47
.
4 years ago
Virgil Dupras
af3db1c3cf
Add word "LITA"
4 years ago
Virgil Dupras
3822182226
xcomp: shrink scope
It seems that xcomp can't manage to reliably compile core+ units.
Let's limit the role of xcomp to z80c+icore.
I'm getting a little desperate here. I'll revisit the link.fs approach
with a new idea I had...
4 years ago
Virgil Dupras
6368cc3bac
Remove (sysv)
Replace its usages with direct RAM+ offsets. The (sysv) mechanism was
incompatible with cross-compilation of a full interpreter.
4 years ago
Virgil Dupras
a6efb65010
emul: extract capture mark from icore into xstop.fs
4 years ago
Virgil Dupras
f62376bd0a
boot: remove _bend
It's not needed anymore now that the boot binary is built in one pass.
4 years ago