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
65bc3b73ad
link: adjust (br) and (?br) hardcoded offsets
They changed in my earlier commit.
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
f6727f8e34
boot: use CODE where possible
Now that we use xcomp unit, boot entry creation can be a bit
cleaner.
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
6884c5cbe3
boot: use 3 labels instead of 4
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
22f132094a
Clarify signed-ness
And fix broken negative display in ".".
4 years ago
Virgil Dupras
b73e1a5f7a
z80a: invert the meaning of IFZ, IFNZ, IFC, IFNC,
It is much less confusing when "IFZ," means "If Z is set, continue
into IF, else, jump to THEN,".
4 years ago
Virgil Dupras
2439f1ed86
Change SCMP for S=
Remove flagsToBC boot routine.
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
415bd7a169
Support nested LOAD
4 years ago
Virgil Dupras
aec19e5c87
Add word "LOAD"
4 years ago
Virgil Dupras
a67101fb8b
Add word "EMPTY"
4 years ago
Virgil Dupras
add3b6629b
Make DO .. LOOP binary code more compact
Only a few bytes saved in forth1.bin, but the DO .. LOOP construct
isn't used much yet. It's still significant savings per LOOP call.
4 years ago
Virgil Dupras
f59cac0588
blk: first steps
4 years ago
Virgil Dupras
7292d486dc
z80a: add stuctured flow words
Allow us to rely a little less on labels. We now only need 4.
4 years ago
Virgil Dupras
7d184b9e70
Use SUBHLss, macro more
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
1e0b40a876
Add word "FORGET"
4 years ago
Virgil Dupras
76e4422796
Add adev unit
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
420836276d
readln: rename (c<) to (rdln<)
so that it isn't picked up automatically at boot. Only when (c<$) is
called do we override (c<). This fixes tricky boot problems.
4 years ago
Virgil Dupras
06d0a02c12
link: fix LITA processing
4 years ago
Virgil Dupras
9390479d49
link: minor tweaks
4 years ago
Virgil Dupras
bf447f58c5
link: handle doesWord
4 years ago
Virgil Dupras
13cf294201
rc2014/acia: adjust to latest developments
4 years ago
Virgil Dupras
3accc73f38
link: add LITA handling
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
0c6cabfd33
doc improvement
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
Virgil Dupras
7aa1be070b
emul: build boot binary in one pass
... instead of building boot.fs, and then z80c.fs/icore.fs in separate
passes. This strengten xcomp by making it support 2 completely separate
dicts (that is, the X dict is *not* connected to the system dict. The chain
now stops at EXIT def in boot.fs).
4 years ago
Virgil Dupras
c8c337fd58
xcomp: widen scope
We can now cross-compile core.fs.
4 years ago
Virgil Dupras
54929c2aa0
xcomp: simplify further
4 years ago
Virgil Dupras
e6d3638f4f
Add CURRENT* and simplify xcomp
4 years ago
Virgil Dupras
f1171c656c
xcomp: make (xfind) use _find instead of (find)
4 years ago