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.
2020-04-15 16:09:10 -04:00
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
2020-04-15 15:16:11 -04:00
Virgil Dupras
e40c059c26
Make word routines all in the <0x100 range
2020-04-15 14:00:59 -04:00
Virgil Dupras
728e4ce123
Bring EXECUTE word outside of stable ABI
2020-04-15 13:36:28 -04:00
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,".
2020-04-15 12:20:09 -04:00
Virgil Dupras
2439f1ed86
Change SCMP for S=
...
Remove flagsToBC boot routine.
2020-04-15 12:19:58 -04:00
Virgil Dupras
7292d486dc
z80a: add stuctured flow words
...
Allow us to rely a little less on labels. We now only need 4.
2020-04-13 20:34:53 -04:00
Virgil Dupras
7d184b9e70
Use SUBHLss, macro more
2020-04-13 19:31:23 -04:00
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.
2020-04-13 11:43:15 -04:00
Virgil Dupras
af3db1c3cf
Add word "LITA"
2020-04-11 13:13:20 -04:00
Virgil Dupras
f62376bd0a
boot: remove _bend
...
It's not needed anymore now that the boot binary is built in one pass.
2020-04-10 09:59:45 -04:00
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).
2020-04-10 09:55:58 -04:00
Virgil Dupras
1b6286dcfe
Make (find) 2-layered, the lower layer having CURRENT as a param
2020-04-09 11:20:54 -04:00
Virgil Dupras
400f0ab0b0
boot: fix flagsToBC
...
Why did I ever think that using CM was a good idea? any comparison
with numbers more than 0x8000 apart would be wrong...
2020-04-07 11:26:37 -04:00
Virgil Dupras
b575d7f863
Move (print) and (uflw) from icore to core
2020-04-03 07:44:44 -04:00
Virgil Dupras
c56386af02
wip
2020-04-02 23:21:53 -04:00
Virgil Dupras
941791d609
forth: remove RAMSTART and RS_ADDR from stable ABI
2020-04-02 11:39:40 -04:00
Virgil Dupras
68a7be3707
forth: Remove RAM offsets from stable ABI
...
Doing this was a bit stupid. These offsets are constants. Moreover,
having them in stable ABI had us construct the boot binary from the
stable ABI of the host, making it very difficult to change RAMSTART
for a new system.
2020-04-02 10:20:51 -04:00
Virgil Dupras
d0c5d3a741
Forth self-bootstraps!!!
...
This commit cuts Forth's dependency on zasm. It now self-assembles
its own boot-binary! Things are a bit messy now, I'll clean up
later.
2020-04-01 22:19:37 -04:00