Virgil Dupras
4967c2add2
Merge z80c.fs and boot.fs into boot.z80
4 years ago
Virgil Dupras
41ed70f8cb
z80c: Add word "PICK"
4 years ago
Virgil Dupras
58c017448f
z80a: add JPccnn,
4 years ago
Virgil Dupras
353d12c27d
boot: inline chkRS, make next a bit faster
4 years ago
Virgil Dupras
bf49ca2ed2
recipes/rc2014: fix Makefile
It didn't have z80a anymore.
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
6ae65940d2
Update bootstrap bin
It seems that I had forgotten in an earlier commit.
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
98191d0b0d
recipes/rc2014/sdcard: now works under Forth!
4 years ago
Virgil Dupras
dfaa1dc101
link: add "offset" argument to RLDICT
As long as our target was the first word of the "user" dict, using
target's prev to compute offset was fine, but when the target is not
the first word, this system breaks down.
This is the case when, instead of including source code in our boot
binary, we paste it in Collapse OS' prompt.
Also, adjust RC2014 recipe to include stage 3 assembling instructions
with the "paste into prompt" method.
4 years ago
Virgil Dupras
29a6ee128d
core: fix PSP leak in CASE..ENDCASE
4 years ago
Virgil Dupras
a2d89de557
drv/sdc: implement core words in z80
In addition to making the driver significantly faster, it allows us
to make SDC port configuration opaque to sdc.fs.
4 years ago
Virgil Dupras
a70366aa43
drv/sdc: Implement SDC!
This has been tested in the RC2014 emulator. I could edit blocks with
the Block Editor and they would correctly be written to SDC.
4 years ago
Virgil Dupras
47a7133b8b
drv/sdc: Implement "SDC@" as a BLK@ word
"0 LIST" in the RC2014 emulator w/ SD card works!
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
052c744000
drv/sdc: implement "SDC@"
I can read a block from blkfs in RC2014 emulator. It even checks
CRC16 successfully!
4 years ago
Virgil Dupras
c64a8a2e2b
drv/sdc: new unit to drive SD card through SPI relay
Goes through initialization in RC2014 emulator.
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
19d94dfb47
recipes/rc2014: stage1 is too big! saving some space
stripfc requires 2 spaces before "(" to strip a comment. This was
a low hanging fruit for me to get stage1.bin under the 8K line.
That thing is getting tight...
4 years ago
Virgil Dupras
287213fc68
recipes/rc2014/eeprom: remove old stuff
4 years ago
Virgil Dupras
82044454d5
Merge branch 'master' into forth
4 years ago
Virgil Dupras
9c41744e46
emul/hw/rc2014: implement blk write in sdc
All of that should help me implement sdc support much faster in
Forth.
4 years ago
Virgil Dupras
7544b3834b
emul/hw/rc2014: implement blkread in sdc
I now get to "fls" in recipes/rc2014/sdcard!
4 years ago
Virgil Dupras
ae470397d7
emul/hw/rc2014: add sdc emulator (wip)
so far, it goes through initialization with the rc2014/sdcard recipe.
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
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
733aff7b7a
rc2014: adjust bootstrapping instructions
4 years ago
Virgil Dupras
65bc3b73ad
link: adjust (br) and (?br) hardcoded offsets
They changed in my earlier commit.
4 years ago
Virgil Dupras
b01de82fd1
drv/acia: latest bells and whistles
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
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