Virgil Dupras
865f4f9256
Move AT28 driver to blkfs
And adjust rc2014/eeprom recipe
4 years ago
Virgil Dupras
dee7eea497
Move link.fs to blkfs
4 years ago
Virgil Dupras
4d8574c1fe
recipe/rc2014: use core libs from blkfs
4 years ago
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 years ago
Virgil Dupras
0e3cf7fa02
Add word ,"
4 years ago
Virgil Dupras
6f896caf7a
Copy core words to blkfs
4 years ago
Virgil Dupras
13771d8c92
xcomp: add XPACK
4 years ago
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 years ago
Virgil Dupras
5219887ad7
sdc: implement _crc16 in z80
4 years ago
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 years ago
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 years ago
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 years ago
Virgil Dupras
44403c3d4c
Move icore to blkfs
The way is clear for complete stage1 bootstrapping on the RC2014
target!
4 years ago
Virgil Dupras
8fbbf5209a
Copy sdc driver to blkfs
4 years ago
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 years ago
Virgil Dupras
503dbe9a2c
Copy boot.z80 to blkfs
4 years ago
Virgil Dupras
338769a0a8
z80a: add PUSH0, PUSH1, PUSHZ, macros
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
0438cb92fe
Add word "ROLL"
4 years ago
Virgil Dupras
2de1eabaa6
z80a: add LDIR, LDDR, and friends
4 years ago
Virgil Dupras
41ed70f8cb
z80c: Add word "PICK"
4 years ago
Virgil Dupras
58c017448f
z80a: add JPccnn,
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
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 years ago
Virgil Dupras
f3c92684a0
link: improve reliability by never relinking last word
It's not possible to reliably determine its end and with some memory
initialization scenarios, it makes RLDICT fail.
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
66f65daa08
Add word LEAVE
4 years ago
Virgil Dupras
2cadae260d
editor: add "U" word
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
79ce88c12c
tools: add blkunpack
and remove cfspack, which will not ever be used again.
4 years ago
Virgil Dupras
5cb4a7de9a
Add word "C@+"
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
4eca827d36
First function application: Block explorer!
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
0750e8d0c0
Use IY for IP instead of RAM+06
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
22f132094a
Clarify signed-ness
And fix broken negative display in ".".
4 years ago
Virgil Dupras
2439f1ed86
Change SCMP for S=
Remove flagsToBC boot routine.
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
b8dd86bd18
Move notes.txt in blk
4 years ago
Virgil Dupras
1efb2821e3
Make usage and dictionary documentation in-system
4 years ago
Virgil Dupras
d4cdb659b4
tools: add blkpack
4 years ago