Virgil Dupras
9a8c25ceb4
core: fix PSP leak in MOVE
před 4 roky
Virgil Dupras
7cd9d29cd8
core: fix MOVE so it copies the right number of bytes
It copied one too much.
před 4 roky
Virgil Dupras
058b85686f
core: add word "MOVE"
před 4 roky
Virgil Dupras
6f9d0a98c4
fmt: fix stack leak in DUMP
před 4 roky
Virgil Dupras
67d732c4be
cmp: add tests
před 4 roky
Virgil Dupras
fca0e79da3
cmp: fix & and | logic
It simply didn't work before, except for =.
před 4 roky
Virgil Dupras
74a32db5cc
Move forth/*.txt to root folder
před 4 roky
Virgil Dupras
974018831e
Add chained comparison support
před 4 roky
Virgil Dupras
7b34268a9a
Add "DUMP" word
před 4 roky
Virgil Dupras
7df7416e9e
fmt: add word ".x" and fix .X to 4 chars output
Simpler code, more predictable output.
před 4 roky
Virgil Dupras
7390cb18ed
rc2014: a little cleanup
před 4 roky
Virgil Dupras
58e88119ec
rc2014: Forth Collapse OS, fully operational!
před 4 roky
Virgil Dupras
e5f22c7d91
rc2014: update README
před 4 roky
Virgil Dupras
edb2771488
rc2014: bingo!
Interpreter is functional in the emulator!
před 4 roky
Virgil Dupras
7b42bbde27
rc2014: aaalmost there...
Red 5 standing by.
před 4 roky
Virgil Dupras
d1f4dc0ca3
rc2014: aaaalmost there....
před 4 roky
Virgil Dupras
32b420b19c
readln: fix typo
před 4 roky
Virgil Dupras
5be9b9cd3e
rc2014: we're almost getting there...
před 4 roky
Virgil Dupras
435b4f452c
Move ASCII constants from str unit to print
před 4 roky
Virgil Dupras
ba384bfa0f
Add stripfc tool
před 4 roky
Virgil Dupras
2af959a13d
Don't use IMMEDIATE in icore
Since the fix of its RAM addr, we use the wrong CURRENT in every
usage of IMMEDIATE in icore. We therefore have to manually set the
flag for all 3 immediate words in that unit.
před 4 roky
Virgil Dupras
c972c70ab1
Use proper RAM addr for CURRENT in IMMEDIATE
před 4 roky
Virgil Dupras
41cefb7460
Extract EMIT-dependent routines from core
před 4 roky
Virgil Dupras
d013c572ad
Use proper RAM addr for HERE in SCPY
před 4 roky
Virgil Dupras
80891d7ec1
Add in-memory bootstrapping system
This should help with the bootstrapping of non-emulated environment.
For example, I have a problem with the RC2014: I can't send it
bootstrap info until the ACIA is up. I need to find a way...
před 4 roky
Virgil Dupras
b575d7f863
Move (print) and (uflw) from icore to core
před 4 roky
Virgil Dupras
c56386af02
wip
před 4 roky
Virgil Dupras
9235fa9223
Add /tools/slatest
To update LATEST offset more easily. Will be useful for recipes.
před 4 roky
Virgil Dupras
6bf51ae57c
Forth reboot underway!
před 4 roky
Virgil Dupras
b162ef84f5
forth: fix broken RAM+
před 4 roky
Virgil Dupras
e284081c79
forth: fix readln overflow handling
It was badly handled.
před 4 roky
Virgil Dupras
941791d609
forth: remove RAMSTART and RS_ADDR from stable ABI
před 4 roky
Virgil Dupras
2481ed4b66
forth: remove dummy.fs
All "stop pings" are now explicitly made at appropriate places. This
fixes a problem I've introduced in the last commit where RAM+ was
unexpectedly part of a stable ABI because of "HERE" usage in dummy.fs.
This system will, anyways, soon change because boot.bin and z80c.bin
will be built during the same process (but there's a bit of retooling
to do before I get there).
před 4 roky
Virgil Dupras
68a7be3707
forth: Remove RAM offsets from stable ABI
Doing this was a bit stupid. These offsets are constants. Moreover,
having them in stable ABI had us construct the boot binary from the
stable ABI of the host, making it very difficult to change RAMSTART
for a new system.
před 4 roky
Virgil Dupras
d0c5d3a741
Forth self-bootstraps!!!
This commit cuts Forth's dependency on zasm. It now self-assembles
its own boot-binary! Things are a bit messy now, I'll clean up
later.
před 4 roky
Virgil Dupras
e846d07238
forth: simplify build process
Make LATEST configurable through a value in the binary instead of through
a ZASM constant. This enables the simple concatenation of compiled dicts and
simplifies the build process.
před 4 roky
Virgil Dupras
b7244f8985
forth: shrink forth.asm's binary size
před 4 roky
Virgil Dupras
1e85d60d89
forth: Forth-ify ","
před 4 roky
Virgil Dupras
7d5b1f5cea
forth: Forth-ify parseDecimal
před 4 roky
Virgil Dupras
25814c0b8b
forth: add label system to z80 assembler
před 4 roky
Virgil Dupras
ce6e31dda1
forth: inline "strcmp"
před 4 roky
Virgil Dupras
031bfc6d72
forth: setup SYSVNXT in Forth code
před 4 roky
Virgil Dupras
e5ab0dd1c9
forth: a little bit of ASM routine inlining
před 4 roky
Virgil Dupras
5c03b33982
forth: remove sysvarWord type
Not needed anymore. CONSTANT does the trick.
před 4 roky
Virgil Dupras
05045b2aa4
forth: move stable ABI stuff at the top of forth.asm
Now we're having a real nice and tidy forth.asm...
před 4 roky
Virgil Dupras
f366732424
forth: Forth-ify "DOES>"
před 4 roky
Virgil Dupras
36e200adbb
forth: Forth-ify "SCPY"
před 4 roky
Virgil Dupras
5b01f797fc
forth: Forth-ify "(find)"
před 4 roky
Virgil Dupras
de3da19333
forth: Forth-ify "NOT"
před 4 roky
Virgil Dupras
4756fb7763
forth: Forth-ify "(parsed)"
před 4 roky