Virgil Dupras
c8c337fd58
xcomp: widen scope
...
We can now cross-compile core.fs.
2020-04-10 07:53:41 -04:00
Virgil Dupras
54929c2aa0
xcomp: simplify further
2020-04-09 12:10:43 -04:00
Virgil Dupras
e6d3638f4f
Add CURRENT* and simplify xcomp
2020-04-09 12:01:08 -04:00
Virgil Dupras
f1171c656c
xcomp: make (xfind) use _find instead of (find)
2020-04-09 11:24:43 -04:00
Virgil Dupras
1b6286dcfe
Make (find) 2-layered, the lower layer having CURRENT as a param
2020-04-09 11:20:54 -04:00
Virgil Dupras
66dc621919
xcomp: don't automatically shadow core words
2020-04-09 09:43:48 -04:00
Virgil Dupras
0c3067ed9a
icore: simplify definition of ":" and ";"
2020-04-09 09:38:59 -04:00
Virgil Dupras
784b109652
So, why was ":" an immediate again?
2020-04-09 09:27:51 -04:00
Virgil Dupras
afed423530
Remove memory maps
...
It was a dead end. my new tentative solution is xcomp.
2020-04-09 09:21:55 -04:00
Virgil Dupras
6c48c1b53c
parse: be a bit more graceful on parsing meta-failure
2020-04-09 08:27:14 -04:00
Virgil Dupras
6f082b0b13
Change DELW signature
2020-04-09 08:26:27 -04:00
Virgil Dupras
68f359d6c2
Add xcomp unit for cross compilation
...
Memory mapping is a dead end too, solution has to be at a higher
level. xcomp is my new approach.
2020-04-09 08:23:53 -04:00
Virgil Dupras
b5638d142a
Add word "DELW"
2020-04-08 20:40:23 -04:00
Virgil Dupras
2a2e3a64a4
Move IMMED? from z80c to icore
2020-04-08 20:09:32 -04:00
Virgil Dupras
a7a2f3d08b
Move IMMEDIATE from z80c to core
...
This makes IMMEDIATE affected by memory mappings.
2020-04-08 19:43:44 -04:00
Virgil Dupras
64e441d059
Move SCPY from z80c to icore
...
This way, it can be affected by memory mappers.
2020-04-08 16:12:34 -04:00
Virgil Dupras
6652125d47
Remove link.fs
...
This was a dead end.
2020-04-07 21:23:42 -04:00
Virgil Dupras
ba918d0fef
Add memory maps
2020-04-07 20:54:10 -04:00
Virgil Dupras
521ff84ca4
Reserve some RAM for future features
2020-04-07 17:32:04 -04:00
Virgil Dupras
a09e552ccc
link: fix literal ASKIP
2020-04-07 11:26:47 -04:00
Virgil Dupras
400f0ab0b0
boot: fix flagsToBC
...
Why did I ever think that using CM was a good idea? any comparison
with numbers more than 0x8000 apart would be wrong...
2020-04-07 11:26:37 -04:00
Virgil Dupras
1c6e979028
link: new unit to relink dictionaries
...
Not quite functional yet, but works in toy situations. The goal is to
concatenate RC2014's bootstrapped dict to the boot binary.
2020-04-06 20:59:55 -04:00
Virgil Dupras
9a8c25ceb4
core: fix PSP leak in MOVE
2020-04-06 19:59:20 -04:00
Virgil Dupras
7cd9d29cd8
core: fix MOVE so it copies the right number of bytes
...
It copied one too much.
2020-04-06 16:54:56 -04:00
Virgil Dupras
058b85686f
core: add word "MOVE"
2020-04-05 21:02:38 -04:00
Virgil Dupras
6f9d0a98c4
fmt: fix stack leak in DUMP
2020-04-05 20:19:58 -04:00
Virgil Dupras
fca0e79da3
cmp: fix & and | logic
...
It simply didn't work before, except for =.
2020-04-05 17:36:07 -04:00
Virgil Dupras
74a32db5cc
Move forth/*.txt to root folder
2020-04-05 16:12:28 -04:00
Virgil Dupras
974018831e
Add chained comparison support
2020-04-05 16:11:17 -04:00
Virgil Dupras
7b34268a9a
Add "DUMP" word
2020-04-05 13:53:03 -04:00
Virgil Dupras
7df7416e9e
fmt: add word ".x" and fix .X to 4 chars output
...
Simpler code, more predictable output.
2020-04-05 12:15:43 -04:00
Virgil Dupras
58e88119ec
rc2014: Forth Collapse OS, fully operational!
2020-04-05 09:09:00 -04:00
Virgil Dupras
edb2771488
rc2014: bingo!
...
Interpreter is functional in the emulator!
2020-04-04 17:43:00 -04:00
Virgil Dupras
7b42bbde27
rc2014: aaalmost there...
...
Red 5 standing by.
2020-04-04 17:07:35 -04:00
Virgil Dupras
32b420b19c
readln: fix typo
2020-04-04 14:26:41 -04:00
Virgil Dupras
435b4f452c
Move ASCII constants from str unit to print
2020-04-04 10:28:00 -04:00
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.
2020-04-04 08:40:55 -04:00
Virgil Dupras
c972c70ab1
Use proper RAM addr for CURRENT in IMMEDIATE
2020-04-04 08:11:30 -04:00
Virgil Dupras
41cefb7460
Extract EMIT-dependent routines from core
2020-04-04 08:08:45 -04:00
Virgil Dupras
d013c572ad
Use proper RAM addr for HERE in SCPY
2020-04-04 07:34:38 -04:00
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...
2020-04-03 20:13:11 -04:00
Virgil Dupras
b575d7f863
Move (print) and (uflw) from icore to core
2020-04-03 07:44:44 -04:00
Virgil Dupras
c56386af02
wip
2020-04-02 23:21:53 -04:00
Virgil Dupras
b162ef84f5
forth: fix broken RAM+
2020-04-02 13:42:49 -04:00
Virgil Dupras
e284081c79
forth: fix readln overflow handling
...
It was badly handled.
2020-04-02 13:40:22 -04:00
Virgil Dupras
941791d609
forth: remove RAMSTART and RS_ADDR from stable ABI
2020-04-02 11:39:40 -04:00
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).
2020-04-02 11:29:23 -04:00
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.
2020-04-02 10:20:51 -04:00
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.
2020-04-01 22:19:37 -04:00
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.
2020-04-01 08:54:01 -04:00