Virgil Dupras
295b4b6e0a
z80a: add BIN( parameter
Will be useful for assembling binaries for the TRS-80 which can't start
at addr 0.
4 anni fa
Virgil Dupras
ee79df225e
typo
4 anni fa
Virgil Dupras
efed0e249e
recipes/rc2014/selfhost: add verification instructions
4 anni fa
Virgil Dupras
6c51ea1ebb
recipes/rc2014/selfhost: complete instructions
I have yet to test the whole process on real hardware. Soon.
4 anni fa
Virgil Dupras
f690cb2e5b
recipes/rc2014/sdcard: use driver from blkfs
This completes the migration of all Collapse OS code into blkfs!
4 anni fa
Virgil Dupras
865f4f9256
Move AT28 driver to blkfs
And adjust rc2014/eeprom recipe
4 anni fa
Virgil Dupras
7c692c1111
recipes/rc2014: include readln directly in stage 1
XPACK is more efficient than stripfc was, we can pack more stuff in 8K.
We now have enough space to fit readln.
4 anni fa
Virgil Dupras
dee7eea497
Move link.fs to blkfs
4 anni fa
Virgil Dupras
4d8574c1fe
recipe/rc2014: use core libs from blkfs
4 anni fa
Virgil Dupras
a2f164ecc3
emul: bootstrap to stage2 from within Collapse OS!
Big bootstrapping change which greatly reduces the role of the modern
operating system in the bootstrapping process.
4 anni fa
Virgil Dupras
0e3cf7fa02
Add word ,"
4 anni fa
Virgil Dupras
4b7247a971
emul: use LATEST instead of binary size as start addr in stage
More reliable.
4 anni fa
Virgil Dupras
898684a795
emul: merge pre.fs and emul.fs into stage1.fs
4 anni fa
Virgil Dupras
bc3aabc84e
Update z80c.bin's LATEST during xcomp instead of using slatest
4 anni fa
Virgil Dupras
6f896caf7a
Copy core words to blkfs
4 anni fa
Virgil Dupras
6767012ebd
recipe/rc2014/selfhost: new recipe
4 anni fa
Virgil Dupras
13771d8c92
xcomp: add XPACK
4 anni fa
Virgil Dupras
389b23fe1a
Change C<? mechanic
It's now a simple flag updated by the C< implementation. No more
routine pointer.
The goal is to avoid tons of "ok" during a LOAD operation.
4 anni fa
Virgil Dupras
4160c8ebbf
recipes/rc2014: busting the 8K limit again!
4 anni fa
Virgil Dupras
5219887ad7
sdc: implement _crc16 in z80
4 anni fa
Virgil Dupras
8d78ca9dac
tests: add test_sdc
The SD card driver is a bit too slow to be bearable. I'll write
_crc16 in z80 and see how it goes.
4 anni fa
Virgil Dupras
b5c370a936
emul: embed blkfs in forth binary
This will allow us to read from blkfs in tests.
4 anni fa
Virgil Dupras
1bd191e86a
Move /emul/forth/* to /emul
Less noisy this way
4 anni fa
Virgil Dupras
816563e2e3
Stop LOADing on ABORT
This is done by adding a "C<* override" layer that is reset to 0 on
ABORT.
The problem was that when ABORT happened during a LOAD, we had a
resetted RSP and started from a clean INTERPRET, but LOAD didn't
have the opportunity to restore C<*, which caused it to continue
interpreting from the faulty BLK.
With a C<* override, we don't need to *restore* C<*, we just need to
clear the override.
4 anni fa
Virgil Dupras
af39b37dd1
Replace the "> " prompt with the more traditional "ok" one
This is more than cosmetic, it's also highly usable. The presence
or absence of the "ok" message allows us to know whether the command
aborted. Previously, the "> " prompt appeared when the system expected
a prompt in the INTERPRET context, whether the previous command aborted
or not.
Also, this allows us to get rid of that ugly FLAGS global variable.
4 anni fa
Virgil Dupras
a699c93509
Print word that wasn't found on "word not found" error
4 anni fa
Virgil Dupras
f19a5e1f71
Remove recipes/rc2014/zasm
That becomes irrelevant in Forth
4 anni fa
Virgil Dupras
44403c3d4c
Move icore to blkfs
The way is clear for complete stage1 bootstrapping on the RC2014
target!
4 anni fa
Virgil Dupras
8fbbf5209a
Copy sdc driver to blkfs
4 anni fa
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.
4 anni fa
Virgil Dupras
dd6ce1b8fe
Avoid using (xentry) outside xcomp config
4 anni fa
Virgil Dupras
fcd77f80ab
Use blk's boot.z80
4 anni fa
Virgil Dupras
503dbe9a2c
Copy boot.z80 to blkfs
4 anni fa
Virgil Dupras
338769a0a8
z80a: add PUSH0, PUSH1, PUSHZ, macros
4 anni fa
Virgil Dupras
7464c67c80
boot: fix (roll)
It didn't work for values over 0xff. Duh!
4 anni fa
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 anni fa
Virgil Dupras
372524fd19
Move xcomp to blocks
4 anni fa
Virgil Dupras
446ce574cd
Add words "'S" and "S0"
4 anni fa
Virgil Dupras
ae14c55feb
boot: a little dereferencing to make things a bit faster
4 anni fa
Virgil Dupras
e569e40665
Forth-ify 2DUP 2OVER 2SWAP
2DROP was left in boot.z80 because it's used in icore.
4 anni fa
Virgil Dupras
0438cb92fe
Add word "ROLL"
4 anni fa
Virgil Dupras
2de1eabaa6
z80a: add LDIR, LDDR, and friends
4 anni fa
Virgil Dupras
4967c2add2
Merge z80c.fs and boot.fs into boot.z80
4 anni fa
Virgil Dupras
41ed70f8cb
z80c: Add word "PICK"
4 anni fa
Virgil Dupras
58c017448f
z80a: add JPccnn,
4 anni fa
Virgil Dupras
353d12c27d
boot: inline chkRS, make next a bit faster
4 anni fa
Virgil Dupras
bf49ca2ed2
recipes/rc2014: fix Makefile
It didn't have z80a anymore.
4 anni fa
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 anni fa
Virgil Dupras
6ae65940d2
Update bootstrap bin
It seems that I had forgotten in an earlier commit.
4 anni fa
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.
4 anni fa