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.
2020-04-24 12:10:07 -04:00
Virgil Dupras
5d4155aa32
Add words 1+ 2+ 1- 2- and consts 0 1 -1
...
Saves quite a few bytes in the final binary.
2020-04-15 21:29:39 -04:00
Virgil Dupras
d996dd8c9e
Add one layer of indirection in subsystem memory management
...
This allows optional subsystems to not needlessly reserve too much
system memory and it also reduces offsets bookkeeping.
2020-04-12 20:42:00 -04:00
Virgil Dupras
420836276d
readln: rename (c<) to (rdln<)
...
so that it isn't picked up automatically at boot. Only when (c<$) is
called do we override (c<). This fixes tricky boot problems.
2020-04-12 14:01:54 -04:00
Virgil Dupras
6368cc3bac
Remove (sysv)
...
Replace its usages with direct RAM+ offsets. The (sysv) mechanism was
incompatible with cross-compilation of a full interpreter.
2020-04-10 14:57:00 -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
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
e284081c79
forth: fix readln overflow handling
...
It was badly handled.
2020-04-02 13:40:22 -04:00
Virgil Dupras
c2d8fc845d
forth: bring ." and ABORT" down to core.fs level
2020-03-25 20:39:07 -04:00
Virgil Dupras
3e934a2a3b
forth: fix name conflict with "H" in core and z80a
2020-03-25 20:13:33 -04:00
Virgil Dupras
9791c0957d
forth: make readline skip prompt when appropriate
2020-03-21 14:59:12 -04:00
Virgil Dupras
c1ece95089
forth: implement readline in Forth
...
The commit ended up being much bigger than anticipated. This was a long thread
of underlying complexities. This lead to the creation of interesting concepts
such as (sysv).
2020-03-21 12:57:49 -04:00