Virgil Dupras
3d908cef3a
Move all parsing words to Inner core
This allows us to get rid of the (parse*) indirection.
vor 4 Jahren
Virgil Dupras
8009270e79
Optimize parsing words
vor 4 Jahren
Virgil Dupras
931c812394
Remove cmp
Not worth the complexity and space.
vor 4 Jahren
Virgil Dupras
0b3a328e65
Add a layer of indirection for KEY
vor 4 Jahren
Virgil Dupras
446a58006d
Remove one of the 2 indirection layers for EMIT
2 was overkill
vor 4 Jahren
Virgil Dupras
443ed754e9
trs80: add missing blk
vor 4 Jahren
Virgil Dupras
3a27479f2b
fix stupid typo
I don't believe this, one hour of my life I'll never get back.
vor 4 Jahren
Virgil Dupras
b8d8007a3f
trs80: add *CL< and *CL>
vor 4 Jahren
Virgil Dupras
2a578b3352
editor: implement F
vor 4 Jahren
Virgil Dupras
ecca70c7f3
Add layer of indirection to EMIT
This would allow things like temporary giving control to the *CL
line on the TRS-80. For example... A very far fetched example. Not
at all the only *raison d'etre* of the layer...
vor 4 Jahren
Virgil Dupras
5bf3baff05
editor: add edit buffer
Also, add word "C!+" and fix PSP leak in FILL.
vor 4 Jahren
Virgil Dupras
792c781614
editor: add cursor pos tracking and display
vor 4 Jahren
Virgil Dupras
07f807edee
recipes/trs80: making progress on floppy drivers
vor 4 Jahren
Virgil Dupras
65f359bda4
recipes/trs80: can write compiled version to floppy
vor 4 Jahren
Virgil Dupras
f38de1c151
Introduce the notion of Extra words
vor 4 Jahren
Virgil Dupras
0044011f06
Move AT28 and TRS80 drivers to higher blocknos
I'm reserving the 100-200 range for non-bootstrapping needs.
vor 4 Jahren
Virgil Dupras
0cf26547ff
Add words FLUSH and COPY
vor 4 Jahren
Virgil Dupras
1b2c4b519e
icore: add BIN+
This allows us to write LATEST at proper offset in emul/stage1.fs in
cases where we set a nonzero BIN(.
vor 4 Jahren
Virgil Dupras
fc67b88720
Make BIN( offsetted binaries closer to working at all
I have a working offset-by-0x100 stage0 now.
vor 4 Jahren
Virgil Dupras
0b8c8c9ca0
recipes/trs80: still wip...
vor 4 Jahren
Virgil Dupras
61b2e02351
xcomp: remove XOFF and use ORG and BIN( instead
vor 4 Jahren
Virgil Dupras
838548843e
boot: apply BIN( to stray stable ABI references
With cross compiling and IMMEDIATE words, things get icky with stable
ABI references. For the same reason that EXIT, (br) and (br?) need to
stay at stable offsets, these word references will not have BIN(
properly applied at Inner core xcomp.
The solution for now is to adjust during EXECUTE, which is ugly and
inefficient, but I don't see a better solution right now.
vor 4 Jahren
Virgil Dupras
4501313410
Add [IF] .. [THEN]
Will be useful as kinds of "#ifdef"s during xcomp.
vor 4 Jahren
Virgil Dupras
f97df4614e
recipes/trs80: wip
vor 4 Jahren
Virgil Dupras
b8ea515612
Add word WIPE
vor 4 Jahren
Virgil Dupras
2b2ccad96c
Add word FILL
vor 4 Jahren
Virgil Dupras
f605e2d85c
Give CASE's default branch access to its input value
ref #97
vor 4 Jahren
Virgil Dupras
3b66aefcd1
block editor: fix broken B and N
fixes #97
vor 4 Jahren
Virgil Dupras
295b4b6e0a
z80a: add BIN( parameter
Will be useful for assembling binaries for the TRS-80 which can't start
at addr 0.
vor 4 Jahren
Virgil Dupras
865f4f9256
Move AT28 driver to blkfs
And adjust rc2014/eeprom recipe
vor 4 Jahren
Virgil Dupras
dee7eea497
Move link.fs to blkfs
vor 4 Jahren
Virgil Dupras
4d8574c1fe
recipe/rc2014: use core libs from blkfs
vor 4 Jahren
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.
vor 4 Jahren
Virgil Dupras
0e3cf7fa02
Add word ,"
vor 4 Jahren
Virgil Dupras
6f896caf7a
Copy core words to blkfs
vor 4 Jahren
Virgil Dupras
13771d8c92
xcomp: add XPACK
vor 4 Jahren
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.
vor 4 Jahren
Virgil Dupras
5219887ad7
sdc: implement _crc16 in z80
vor 4 Jahren
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.
vor 4 Jahren
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.
vor 4 Jahren
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.
vor 4 Jahren
Virgil Dupras
44403c3d4c
Move icore to blkfs
The way is clear for complete stage1 bootstrapping on the RC2014
target!
vor 4 Jahren
Virgil Dupras
8fbbf5209a
Copy sdc driver to blkfs
vor 4 Jahren
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.
vor 4 Jahren
Virgil Dupras
503dbe9a2c
Copy boot.z80 to blkfs
vor 4 Jahren
Virgil Dupras
338769a0a8
z80a: add PUSH0, PUSH1, PUSHZ, macros
vor 4 Jahren
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...
vor 4 Jahren
Virgil Dupras
372524fd19
Move xcomp to blocks
vor 4 Jahren
Virgil Dupras
446ce574cd
Add words "'S" and "S0"
vor 4 Jahren
Virgil Dupras
0438cb92fe
Add word "ROLL"
vor 4 Jahren