Virgil Dupras
04335fc40a
wip
4 år sedan
Virgil Dupras
00401077f0
wip
4 år sedan
Virgil Dupras
53c9580944
wip
4 år sedan
Virgil Dupras
9b01e16f6d
wip
4 år sedan
Virgil Dupras
cc59d37658
wip
4 år sedan
Virgil Dupras
a776df27d2
wip
4 år sedan
Virgil Dupras
c668433c5d
wip
4 år sedan
Virgil Dupras
98d23bc59b
wip
4 år sedan
Virgil Dupras
6a507bcaac
Add word MOVE,
4 år sedan
Virgil Dupras
2d2a846b25
Inline SCPY
I'm planning a string reform and it's standing in the way.
4 år sedan
Virgil Dupras
a59322c252
Remove XPACK
Now that everything is cross-compiled, no need to XPACK. If we ever
need it again, we know where to find it.
4 år sedan
Virgil Dupras
4c1cacd8d0
Remove Linker
Now that the boot binary is fully cross-compiled, there's no use for
the linker anymore. Theoretically, it could still be useful, but I
can't think of a real use case.
Let's take it out of the picture. If it's ever needed again, I'll
know where to find it.
4 år sedan
Virgil Dupras
ed2b91411a
Limit ourselves to 8-bit branching
I'm planning on going back to 8-bit branching. 16-bit br cells incur
a non-negligible penalty and, while at first 64 words (128 bytes
forward or backward) seemed a bit limiting, I now don't see why one
would ever construct such a big branch. It would be un-forthy.
Also, I looked at using BC instead of IY to hold IP and the transition
would be a lot easier with 8-bit branching.
In this commit, all I do is add overflow checks in IF. The mechanic
below doesn't change. I'll give myself some time to think it over so
that I avoid yet another back and forth.
4 år sedan
Virgil Dupras
5bbc256faf
Flush input buffer on QUIT
Prebiously, when encountering an error during a : ; definition from
input buffer, because the input buffer wasn't flushed, we would continue
interpreting and quit the whole program when encountering ;.
4 år sedan
Virgil Dupras
02e6979a46
emul: implement AT-XY
VI, here we come!
4 år sedan
Virgil Dupras
05ca95e759
emul: make updatebootstrap two-stepped
Writing directly to forth.bin seems to cause problems in some
environments such as Travis CI.
4 år sedan
Virgil Dupras
c0b7b45570
emul: fix backspace
it was broken in the move to ncurses.
4 år sedan
Virgil Dupras
7f3e55cb51
emul: add live register stats in the corner
4 år sedan
Virgil Dupras
08b0c56ff6
emul: run Collapse OS inside a limited, fixed window
This will allow us to implement AT-XY, paving the way to all sorts
of nice new things.
4 år sedan
Virgil Dupras
1d4b75add2
emul: deduplicate some code
4 år sedan
Virgil Dupras
93c6d150e2
emul: don't embed forth.bin in emul binaries
Read the contents of forth.bin at runtime. This allows us to get
rid of the bin2c tooling.
4 år sedan
Virgil Dupras
8d3da4c0de
emul: stop embedding blkfs in binaries
Instead, embed absolute path to blkfs. Having to rebuild the stage
binary at every change in blkfs is getting tedious.
4 år sedan
Virgil Dupras
f884918d73
emul: use ncurses in /emul/forth
It doesn't change anything featurewise, but this change is in
preparation for the addition of an eventual AT-XY.
4 år sedan
Virgil Dupras
d041b91846
Optimize chkPS
Use EXX instead of the stack for HL protection and remove all
spurious uses of chkPS,
I wanted to inline chkPS in next because of its "tight loop" status,
but for reasons I don't understand, doing so breaks Collapse OS.
Later...
4 år sedan
Virgil Dupras
4f2c2ab80a
z80a: add a few ops
4 år sedan
Virgil Dupras
581c6d015c
Fix blk overflow in usage guide index
4 år sedan
Virgil Dupras
a2136e604d
rc2014/eeprom: adjust instructions
Now that adev is directly in core, things are easier.
4 år sedan
Virgil Dupras
6bff03a48b
Move adev to core
It's small enough to be worth it.
4 år sedan
Virgil Dupras
bb190f9665
Add word TUCK
4 år sedan
Virgil Dupras
41d439376d
Add word NIP
4 år sedan
Virgil Dupras
f75b1c8864
Add word ?DUP
4 år sedan
Virgil Dupras
986249cf5e
rc2014: fix misinformation in README
4 år sedan
Virgil Dupras
ae87e88c52
Add 5x7 font
Also, fix PSP leak in font compilers.
4 år sedan
Virgil Dupras
d777a74be3
Forth takeover!
4 år sedan
Virgil Dupras
0939241db1
Add bootstrap guide
4 år sedan
Virgil Dupras
b5683f447b
sms/kbd: update instructions for Forth Collapse OS
The keyboard is a bit glitchy, but these are the same glitch as those
that were already present in Z80 Collapse OS. They still need fixing...
4 år sedan
Virgil Dupras
b06cf09754
rc2014/ps2: update recipe to Forth's Collapse OS
4 år sedan
Virgil Dupras
e9e3bd80f6
ps2: fix PS2_SHIFT check
4 år sedan
Virgil Dupras
223cb94466
tools/upload: use C! instead of A!
Addressed devices are not included in Collapse OS by default. Let's
just accept that upload only works with memory.
4 år sedan
Virgil Dupras
7d28637740
ps2: add shift support
4 år sedan
Virgil Dupras
b874a1c175
ps2: wip
4 år sedan
Virgil Dupras
c86d8a74a0
sms/kbd: PS/2 driver WIP
4 år sedan
Virgil Dupras
aad6b5c2e5
avra: add global constants
4 år sedan
Virgil Dupras
ac309bbd9e
avra: rename AGAIN, to AGAIN?,
AGAIN, becomes a shortcut for "' RJMP AGAIN?,"
4 år sedan
Virgil Dupras
7a41c5c6f9
avra: add IF, .. THEN,
I decided to keep SKIP, .. TO, (renamed from AT,) around and limit
IF, .. THEN, to the simple BRNE case.
4 år sedan
Virgil Dupras
8bbd29d37d
avra: add SKIP, .. AT,
Will change to IF, .. THEN, but I need a way to easily reverse a
BR op. But from this commit, the translation of sms/kbd/ps2ctl.asm
is complete! perfect binary match!
4 år sedan
Virgil Dupras
8ca85abfbd
avra: add BEGIN, .. AGAIN,
4 år sedan
Virgil Dupras
7b7e60ed4a
avra: implement LD/ST
Still making great progress on sms/kbd/ps2ctl. Still matching ref
binary.
4 år sedan
Virgil Dupras
6a55a04f22
sms/kbd: still advancing on ps2ctl
next step: implement ST.
4 år sedan
Virgil Dupras
e0bc14e55c
avra: implement BR*
Getting good! still advancing on ps2ctl in sms/kbd and still
matching reference binary.
4 år sedan