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
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
e6d3638f4f
Add CURRENT* and simplify xcomp
4 years ago
Virgil Dupras
1b6286dcfe
Make (find) 2-layered, the lower layer having CURRENT as a param
4 years ago
Virgil Dupras
66dc621919
xcomp: don't automatically shadow core words
4 years ago
Virgil Dupras
0c3067ed9a
icore: simplify definition of ":" and ";"
4 years ago
Virgil Dupras
784b109652
So, why was ":" an immediate again?
4 years ago
Virgil Dupras
afed423530
Remove memory maps
It was a dead end. my new tentative solution is xcomp.
4 years ago
Virgil Dupras
b69ca4488e
Add emul_memdump() and stop automatically on ROM write
4 years ago
Virgil Dupras
68f359d6c2
Add xcomp unit for cross compilation
Memory mapping is a dead end too, solution has to be at a higher
level. xcomp is my new approach.
4 years ago
Virgil Dupras
2a2e3a64a4
Move IMMED? from z80c to icore
4 years ago
Virgil Dupras
a7a2f3d08b
Move IMMEDIATE from z80c to core
This makes IMMEDIATE affected by memory mappings.
4 years ago
Virgil Dupras
64e441d059
Move SCPY from z80c to icore
This way, it can be affected by memory mappers.
4 years ago
Virgil Dupras
6652125d47
Remove link.fs
This was a dead end.
4 years ago
Virgil Dupras
ba918d0fef
Add memory maps
4 years ago
Byron A. Grobe
217df20d77
Moved tools/bin2c to single-level with other tools.
4 years ago
Virgil Dupras
521ff84ca4
Reserve some RAM for future features
4 years ago
Virgil Dupras
71d1350143
emul/hw/rc2014: add memdump command
Why didn't I think of adding it before?
4 years ago
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...
4 years ago
Virgil Dupras
1c6e979028
link: new unit to relink dictionaries
Not quite functional yet, but works in toy situations. The goal is to
concatenate RC2014's bootstrapped dict to the boot binary.
4 years ago
Virgil Dupras
974018831e
Add chained comparison support
4 years ago
Byron A. Grobe
f65c189e9b
Replace bin2c.sh with a more portable implementation.
`xxd' is not available on all systems, and on others does not support
the `-i' flag. Since bin2c.sh relied on a tool that I can't seem to find
a compatible version of, I have included a simple, portable replacement in C.
Usage remains the same:
bin2c ARRAYNAME < inputfile > outputfile.
This change is also reflected in emul/Makefile.
4 years ago
Virgil Dupras
ba384bfa0f
Add stripfc tool
4 years ago
Virgil Dupras
41cefb7460
Extract EMIT-dependent routines from core
4 years ago
Virgil Dupras
d013c572ad
Use proper RAM addr for HERE in SCPY
4 years ago