Virgil Dupras
87b51a6261
By default, allocate about 0x100 bytes for PSP+RSP
During "make updatebootstrap", we use less than 0x20 bytes on the
PSP side and less than 0x40 bytes on the RSP one. 0x100 bytes ought
to be enough for anybody.
4 år sedan
Virgil Dupras
bf289b0a67
z80a: de-variable-ize
Use straight VARIABLE instead of Z80MEM+. Initially, I used this
system to allow z80a to be embedded in a system binary, but now
I don't think it's worth it. Compiled, z80a is 2.5k. Sure, it's a
sizeable amount of RAM, but I think that even with it in RAM, I'll
manage a bootstrap within my most constrained machine, the SMS with
8K.
4 år sedan
Virgil Dupras
a5269a1c7c
Make blk use system RAM
4 år sedan
Virgil Dupras
eec9549bde
Make rdln use system RAM
4 år sedan
Virgil Dupras
8a58449776
Add word ERR
4 år sedan
Virgil Dupras
9d4d9de511
emul: remove stage1
4 år sedan
Virgil Dupras
e6bac985fa
Cross-compiles in a single stage!
Finally got rid of the XPACKed core and managed to cross-compile
all core words, which greatly simplifies the bootstrapping process.
4 år sedan
Virgil Dupras
68262f925b
Almost done De-XPACKing!
4 år sedan
Virgil Dupras
640e3321fc
Move a bunch of words from XPACKed core to xcomp core
4 år sedan
Virgil Dupras
4143e2a699
Improve late-stage xcomp
4 år sedan
Virgil Dupras
179c66be8a
Move a bunch of words from XPACKed core to xcomp core
4 år sedan
Virgil Dupras
74896051bb
Move BOOT, (boot<) and INTEPRET to high xcomp
Saves us an (ok) indirection and will save us more soon.
4 år sedan
Virgil Dupras
40a756cf1c
Move a bunch of words from XPACKed core to xcomp core
4 år sedan
Virgil Dupras
51997533ff
Move a bunch of words from XPACKed core to xcomp core
4 år sedan
Virgil Dupras
80d730318a
Simplify LOAD's INTERPRET exit mechanism
4 år sedan
Virgil Dupras
2e9e7047bf
Make INTERPRET break on ASCII EOT
This should allow me to simplify LOAD's exit mechanism on block
end.
4 år sedan
Virgil Dupras
052d59a3a2
TOWORD: tiny optimization
My mind is getting forthy.
4 år sedan
Virgil Dupras
33d37d4ce9
WORD: don't overwrite RAM on words over 31 chars
This allows me to reclaim some RAM I hadn't even noticed I
needlessly monopolise.
4 år sedan
Virgil Dupras
76037ca1e7
Simplify boot process
That INIT thing is unnecessary.
4 år sedan
Virgil Dupras
0434d02818
xcomp: implement X[']
4 år sedan
Virgil Dupras
7c20501f27
Move core's blk to xcomp core (low and high)
TODO: implement X['] so that I can remove those XCURRENT patterns.
4 år sedan
Virgil Dupras
d956386e9b
Move core's readln to xcomp core (high)
4 år sedan
Virgil Dupras
56af516d07
Move core's fmt to xcomp core (high)
4 år sedan
Virgil Dupras
e2e9faef2c
Move a bunch of words from core to xcomp core
4 år sedan
Virgil Dupras
ddf23e3d02
Move a bunch of words from core to xcomp core
4 år sedan
Virgil Dupras
dfe474ca0e
xcomp: add XCOMPILE and X[COMPILE]
This allows us to move words like ABORT" to xcomp-core, which is
I think the last roadblock before being able to unify all drivers
into a single xcomp layer.
4 år sedan
Virgil Dupras
1094ec9c57
Make DO..LOOP stable
DO and LOOP now only compile words from stable ABI, which make them
suitable for xcomp. This will greatly simplify driver writing and
allow us to mostly avoid the low/high divide in drivers.
LEAVE is still xcomp-incompatible though.
This make us very very tight for "<0x100" limit for literal words.
Hopefully, we won't need more stuff in that area of the binary...
4 år sedan
Virgil Dupras
b760c2d353
SCPY: don't copy the NULL
This makes [entry] much simpler. Also, remove unused LITS word.
4 år sedan
Virgil Dupras
231d727598
Move a few words from core to xcomp core
4 år sedan
Virgil Dupras
da371451cc
Replace INITIAL_SP with PS_ADDR conf
Now I struggle to remember why I ever did things they way I did.
There must have been a reason...
4 år sedan
Virgil Dupras
a476773813
Add words BIT@ and BIT!
4 år sedan
Virgil Dupras
4ce0727c72
ti84: kbd driver wip
4 år sedan
Virgil Dupras
afc2327770
Split icore in 2 parts
The goal is to insert device drivers in between.
4 år sedan
Virgil Dupras
baf725aa38
Move a bunch of words from core to inner core
That makes it easier to write drivers that can be xcompiled.
4 år sedan
Virgil Dupras
24e588019b
Add words RSHIFT and LSHIFT
4 år sedan
Virgil Dupras
eaeb138a0c
Add words C@- C!- and MOVE-
4 år sedan
Virgil Dupras
58ece9f9a1
editor: implement I command
Also, made LIST properly handle full 64-chars lines not ending with
a null or CR. Previously, such a line would be accompanied by its
following line, duplicating that line's output.
4 år sedan
Virgil Dupras
f54b1dc504
Add 2>R and 2R>
This allows us to make DO..LOOP more compact.
4 år sedan
Virgil Dupras
60b4bbf28a
Fix DUMP's broken "round up to next 8" logic
This was caused by the removal of signed-ness a long while ago.
4 år sedan
Virgil Dupras
fa79e3d8a6
Make (print) stop on CR
Lines edited with the Block editor end with 0xd and (print) spits
spurious CR when printing those lines.
Also, properly initialize ACC in BROWSE.
4 år sedan
Virgil Dupras
c681cb639d
Add words >< and =><=
4 år sedan
Virgil Dupras
c494917452
blk: Add LOAD+ and LOADR+
And use them in all places they make sense.
4 år sedan
Virgil Dupras
24e9fa0c30
Add word NL
4 år sedan
Virgil Dupras
a3c3a2f44a
Remove unused DELW
4 år sedan
Virgil Dupras
f023f9bcb4
Pack core words blks a bit tighter
With all this recent movements, we had a bit of a fragmentation
issue.
4 år sedan
Virgil Dupras
3d908cef3a
Move all parsing words to Inner core
This allows us to get rid of the (parse*) indirection.
4 år sedan
Virgil Dupras
8009270e79
Optimize parsing words
4 år sedan
Virgil Dupras
931c812394
Remove cmp
Not worth the complexity and space.
4 år sedan
Virgil Dupras
0b3a328e65
Add a layer of indirection for KEY
4 år sedan
Virgil Dupras
446a58006d
Remove one of the 2 indirection layers for EMIT
2 was overkill
4 år sedan