Virgil Dupras
b90efb0f7f
ti84: first glyph on screen!
...
On the emulator of course...
2020-05-08 09:07:44 -04:00
Virgil Dupras
58ec54fc97
ti84: wip
...
Gave more priority to CPU in the emulator because initialization would
otherwise be horrendously slow.
2020-05-08 07:56:34 -04:00
Virgil Dupras
114e753b64
ti84: WIP
2020-05-08 06:50:34 -04:00
Virgil Dupras
ab6a2688fe
recipes/trs80: self-hosting
2020-05-06 12:38:33 -04:00
Virgil Dupras
b89fa2981f
recipes/trs80: move RECV program to blkfs
2020-05-05 22:21:27 -04:00
Virgil Dupras
31119c2de3
xcomp: move all offset spitting to the end of the unit
...
I'd like to move this code, along with all recipe contents, to blk/.
It's easier if "emul-related" code is gathered at the same place.
2020-05-05 20:10:04 -04:00
Virgil Dupras
986a40d3e2
trs80: override NL to avoid double newlines
2020-05-04 09:21:10 -04:00
Virgil Dupras
f023f9bcb4
Pack core words blks a bit tighter
...
With all this recent movements, we had a bit of a fragmentation
issue.
2020-05-02 21:47:32 -04:00
Virgil Dupras
931c812394
Remove cmp
...
Not worth the complexity and space.
2020-05-02 19:57:56 -04:00
Virgil Dupras
07f807edee
recipes/trs80: making progress on floppy drivers
2020-04-30 16:10:35 -04:00
Virgil Dupras
65f359bda4
recipes/trs80: can write compiled version to floppy
2020-04-30 11:13:25 -04:00
Virgil Dupras
0044011f06
Move AT28 and TRS80 drivers to higher blocknos
...
I'm reserving the 100-200 range for non-bootstrapping needs.
2020-04-29 21:04:10 -04:00
Virgil Dupras
b046aba7f9
recipes/trs80: running!
...
no floppy yet.
2020-04-29 12:26:44 -04:00
Virgil Dupras
61b2e02351
xcomp: remove XOFF and use ORG and BIN( instead
2020-04-28 09:37:00 -04:00
Virgil Dupras
f97df4614e
recipes/trs80: wip
2020-04-28 07:51:41 -04:00
Virgil Dupras
ee79df225e
typo
2020-04-27 09:44:37 -04:00
Virgil Dupras
efed0e249e
recipes/rc2014/selfhost: add verification instructions
2020-04-27 09:24:40 -04:00
Virgil Dupras
6c51ea1ebb
recipes/rc2014/selfhost: complete instructions
...
I have yet to test the whole process on real hardware. Soon.
2020-04-26 20:20:36 -04:00
Virgil Dupras
f690cb2e5b
recipes/rc2014/sdcard: use driver from blkfs
...
This completes the migration of all Collapse OS code into blkfs!
2020-04-26 19:50:38 -04:00
Virgil Dupras
865f4f9256
Move AT28 driver to blkfs
...
And adjust rc2014/eeprom recipe
2020-04-26 15:18:28 -04:00
Virgil Dupras
7c692c1111
recipes/rc2014: include readln directly in stage 1
...
XPACK is more efficient than stripfc was, we can pack more stuff in 8K.
We now have enough space to fit readln.
2020-04-26 14:52:55 -04:00
Virgil Dupras
dee7eea497
Move link.fs to blkfs
2020-04-26 14:37:54 -04:00
Virgil Dupras
4d8574c1fe
recipe/rc2014: use core libs from blkfs
2020-04-26 13:57:44 -04:00
Virgil Dupras
a2f164ecc3
emul: bootstrap to stage2 from within Collapse OS!
...
Big bootstrapping change which greatly reduces the role of the modern
operating system in the bootstrapping process.
2020-04-26 10:24:09 -04:00
Virgil Dupras
6767012ebd
recipe/rc2014/selfhost: new recipe
2020-04-25 19:24:55 -04:00
Virgil Dupras
4160c8ebbf
recipes/rc2014: busting the 8K limit again!
2020-04-25 08:15:17 -04:00
Virgil Dupras
1bd191e86a
Move /emul/forth/* to /emul
...
Less noisy this way
2020-04-24 17:53:58 -04:00
Virgil Dupras
f19a5e1f71
Remove recipes/rc2014/zasm
...
That becomes irrelevant in Forth
2020-04-24 10:59:28 -04:00
Virgil Dupras
44403c3d4c
Move icore to blkfs
...
The way is clear for complete stage1 bootstrapping on the RC2014
target!
2020-04-23 15:14:14 -04:00
Virgil Dupras
8fbbf5209a
Copy sdc driver to blkfs
2020-04-23 13:55:00 -04:00
Virgil Dupras
a19376df6c
Copy ACIA driver to blkfs
...
We can get rid of acia.z80, but not of acia.fs yet, we still need it.
2020-04-23 12:42:41 -04:00
Virgil Dupras
dd6ce1b8fe
Avoid using (xentry) outside xcomp config
2020-04-23 12:09:31 -04:00
Virgil Dupras
fcd77f80ab
Use blk's boot.z80
2020-04-22 21:49:44 -04:00
Virgil Dupras
7a0e63746f
parse: don't validate 0x and 0b lengths
...
It doesn't serve much purpose and takes up many precious bytes. And,
after all, parsed didn't do it either...
2020-04-21 20:40:23 -04:00
Virgil Dupras
372524fd19
Move xcomp to blocks
2020-04-21 20:30:14 -04:00
Virgil Dupras
4967c2add2
Merge z80c.fs and boot.fs into boot.z80
2020-04-20 21:27:34 -04:00
Virgil Dupras
bf49ca2ed2
recipes/rc2014: fix Makefile
...
It didn't have z80a anymore.
2020-04-20 19:22:43 -04:00
Virgil Dupras
98191d0b0d
recipes/rc2014/sdcard: now works under Forth!
2020-04-19 16:56:37 -04:00
Virgil Dupras
dfaa1dc101
link: add "offset" argument to RLDICT
...
As long as our target was the first word of the "user" dict, using
target's prev to compute offset was fine, but when the target is not
the first word, this system breaks down.
This is the case when, instead of including source code in our boot
binary, we paste it in Collapse OS' prompt.
Also, adjust RC2014 recipe to include stage 3 assembling instructions
with the "paste into prompt" method.
2020-04-19 16:28:40 -04:00
Virgil Dupras
a2d89de557
drv/sdc: implement core words in z80
...
In addition to making the driver significantly faster, it allows us
to make SDC port configuration opaque to sdc.fs.
2020-04-18 20:33:51 -04:00
Virgil Dupras
287213fc68
recipes/rc2014/eeprom: remove old stuff
2020-04-17 21:10:20 -04:00
Virgil Dupras
733aff7b7a
rc2014: adjust bootstrapping instructions
2020-04-16 09:27:49 -04:00
Virgil Dupras
b536d3bfd6
rc2014: complete the EEPROM recipe
2020-04-13 14:41:02 -04:00
Virgil Dupras
d0545d555f
upload: use A! instead of C!
...
It makes the tool much more versatile. I'll have adev being included
in all recipes, so it can be assumed.
2020-04-13 12:00:56 -04:00
Virgil Dupras
d08a9711c5
boot: make HERE point to RAMEND instead of CURRENT
...
The former was only used in the peculiar context of "/emul". The
regular case is actually HERE pointing to RAMEND on boot.
2020-04-13 11:43:15 -04:00
Virgil Dupras
d4f65911c0
rc2014: add notes about stage3.bin
2020-04-12 14:15:06 -04:00
Virgil Dupras
9548514ff0
rc2014: dictionary relinking now works!
2020-04-12 10:24:53 -04:00
Virgil Dupras
bf447f58c5
link: handle doesWord
2020-04-11 16:38:45 -04:00
Virgil Dupras
13cf294201
rc2014/acia: adjust to latest developments
2020-04-11 15:11:36 -04:00
Virgil Dupras
c515720e23
Revert "Remove link.fs"
...
Let's revisit the relinking approach, with LITA this time.
This reverts commit 6652125d47
.
2020-04-11 13:31:17 -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
05c38424c7
recipes/rc2014: stage2 WIP
2020-04-08 09:13:46 -04:00
Virgil Dupras
79527976ab
recipes/rc2014: stage2 WIP
2020-04-07 22:36:59 -04:00
Virgil Dupras
6652125d47
Remove link.fs
...
This was a dead end.
2020-04-07 21:23:42 -04:00
Virgil Dupras
521ff84ca4
Reserve some RAM for future features
2020-04-07 17:32:04 -04:00
Virgil Dupras
7390cb18ed
rc2014: a little cleanup
2020-04-05 09:29:03 -04:00
Virgil Dupras
58e88119ec
rc2014: Forth Collapse OS, fully operational!
2020-04-05 09:09:00 -04:00
Virgil Dupras
e5f22c7d91
rc2014: update README
2020-04-04 18:10: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
d1f4dc0ca3
rc2014: aaaalmost there....
2020-04-04 14:27:23 -04:00
Virgil Dupras
5be9b9cd3e
rc2014: we're almost getting there...
2020-04-04 10:31:22 -04:00
Virgil Dupras
c56386af02
wip
2020-04-02 23:21:53 -04:00
Virgil Dupras
97dcad9b15
recipes/sms/kbd: use Collapse OS' AVR assembler
2020-02-26 23:10:43 -05:00
Virgil Dupras
64a54c72f8
Fix broken recipes
2020-02-26 21:44:37 -05:00
Virgil Dupras
92ddc7ebc1
recipes/trs80: use grid module
...
Not much of a gain in terms of usability (a bit of a loss in fact, things are
a bit slow and glitchy), but it's a necessary move if we want to use upcoming
grid-enabled userspace apps, such as a visual text editor.
2020-02-26 16:27:27 -05:00
Virgil Dupras
247b200dcc
New kernel module: grid
2020-02-24 20:36:08 -05:00
Virgil Dupras
434c8d5c0d
recipes/trs80: add ed
2020-02-23 20:52:44 -05:00
Virgil Dupras
c3213e1e8c
recipes/trs80: can now run zasm!
2020-02-23 14:51:19 -05:00
Virgil Dupras
2860a10f71
recipes/trs80: add CFS support
2020-02-22 20:06:59 -05:00
Virgil Dupras
ec6df3087d
recipes/trs80: add "recv" command
...
This allows us to write contents from RS-232 directly to floppy! it works!
2020-02-22 14:43:07 -05:00
Virgil Dupras
049f2cf222
Reverse ttysafe escaping order
...
Sending the escape after its target made things complicated for upcoming
stuff I want to add. Although it makes `recv.asm` slightly larger, it's really
worth it.
2020-02-22 14:11:43 -05:00
Virgil Dupras
69f0c6dafd
trs80/floppy: implement write
2020-02-22 12:09:43 -05:00
Virgil Dupras
438c71ad3d
trs80/floppy: new module
...
Read-only support for now, hardcoded on drive :1. But it seems to work.
Can't wait to get a CFS running on this!
2020-02-21 19:30:57 -05:00
Virgil Dupras
bd38d46892
recipes/trs80: fix double line feeds
...
Lines should be terminated only with a CR on this system, not CRLF.
2020-02-21 08:40:42 -05:00
Virgil Dupras
9515d63d47
recipes/trs80: Collapse OS runs on the TRS-80 Model 4P!
2020-02-12 11:23:49 -05:00
Virgil Dupras
bab18216aa
recipes/trs80: add instructions to save recv program to floppy
2020-02-10 11:25:05 -05:00
Virgil Dupras
a74ee81822
recipes/trs80: new recipe (WIP)
2020-01-11 23:01:28 -05:00
Virgil Dupras
fb2117dc2e
sms/vdp: use fonts from kernel/fnt
...
Instead of its own version of one. Additionally, add a 7x7 font to
the collection.
2020-01-07 22:15:35 -05:00
Virgil Dupras
c7ef8bf915
recipes: add "make emul" targets where appropriate
2020-01-02 16:59:38 -05:00
Virgil Dupras
9216057db8
emul/hw: add TI-84+ emulator
...
I implement the screen using XCB which is much more friendly
than z80e's SDL+CMake for development machines that want to install
minimal dependencies (for example, a port-less OpenBSD rig).
2020-01-01 22:48:01 -05:00
Virgil Dupras
097c677641
emul/zasm: use libcfs
...
This allows us to get rid of the zasm.sh wrapper.
2019-12-31 15:07:39 -05:00
Virgil Dupras
dcb96aefe9
lib/parse: remove parseHexPair
...
Also, make parseHexadecimal "tail" (HL). Soon, all routines in lib/parse
will do that, making the life of lib/expr easier.
2019-12-29 21:56:56 -05:00
Virgil Dupras
5b155a5c15
tools: use BASIC's new while loop
...
Also, increase STDIO_BUFSIZE to 0x40 so that those while loops work.
2019-12-12 12:04:56 -05:00
Virgil Dupras
25d25d017c
Replace old shell with BASIC shell
...
fixes #80
2019-12-11 14:05:34 -05:00
Virgil Dupras
20151a97f8
recipes/rc2014/zasm: use BASIC shell
...
Also made Makefile actually portable.
2019-12-11 13:01:51 -05:00
Virgil Dupras
880775ae69
recipes/rc2014/sdcard: use BASIC shell
2019-12-11 11:18:32 -05:00
Virgil Dupras
fb93fcd6e6
recipes/rc2014/eeprom: add usr.asm
...
A little life saver if your target shell doesn't have a proper at28w.
2019-12-09 21:03:31 -05:00
Virgil Dupras
b9292eb8d0
recipes/rc2014/ps2: Use BASIC shell
2019-12-06 20:00:29 -05:00
Virgil Dupras
08392fee60
recipes/rc2014/eeprom: use BASIC shell
2019-12-02 23:00:35 -05:00
Virgil Dupras
0fb7995166
recipes/sms/romasm: add missing sentinel in .mycmds
2019-12-02 23:00:03 -05:00
Virgil Dupras
270ad926c9
recipes/sms: use BASIC shell
2019-12-02 20:18:41 -05:00
Virgil Dupras
15e44ec524
doc: add TI83+/TI84+ doc page
2019-12-02 13:51:36 -05:00
Virgil Dupras
10864afa96
recipes/ti84: use the BASIC shell
2019-12-01 20:11:13 -05:00
Virgil Dupras
aad8efeff7
recipes/rc2014/basic: new recipe
2019-11-23 21:22:31 -05:00
Virgil Dupras
019d05f64c
Make the shell a userspace app
...
That's my mega-commit you've all been waiting for.
The code for the shell share more routines with userspace apps than with kernel
units, because, well, its behavior is that of a userspace app, not a device
driver.
This created a weird situation with libraries and jump tables. Some routine
belonging to the `kernel/` directory felt weird there.
And then comes `apps/basic`, which will likely share even more code with the
shell. I was seeing myself creating huge jump tables to reuse code from the
shell. It didn't feel right.
Moreover, we'll probably want basic-like apps to optionnally replace the shell.
So here I am with this huge change in the project structure. I didn't test all
recipes on hardware yet, I will do later. I might have broken some...
But now, the structure feels better and the line between what belongs to
`kernel` and what belongs to `apps` feels clearer.
2019-11-15 15:37:49 -05:00
Virgil Dupras
cdd0b64570
Modify userspace .org and RAMSTART expectations
...
Instead of expecting a `USER_CODE` symbol to be set, we expect `.org` to be
set in all userspace glue code. This gives us more flexibility with regards to
how we manage that.
Moreover, instead of making `USER_RAMSTART` mandatory, we make it default to
the end of the binary, which is adequate in a majority of cases.
Will be useful for my upcoming mega-commit... :)
2019-11-15 10:33:13 -05:00
Virgil Dupras
7cf3ed38da
Extract str.asm from core.asm and make core included by userspace
...
Most of register fiddling routines (which is now the only thing contained
in care.asm) are used by almost all userspace apps, often in inner loops.
That makes the penalty of using jump tables for those a bit too high.
Moreover, it burdens jump tables needlessly.
Because this unit is very small (now that string routines are out), it makes
sense to always include it in binaries.
2019-11-14 10:14:15 -05:00
Virgil Dupras
7274dccbe7
Move ASCII consts to ascii.h
...
And made them shorter in name. The new ascii.h file allow reuse in userspace
code.
2019-11-13 20:38:06 -05:00
Virgil Dupras
39f3637c60
recipes/ti84: TI-84+ base recipe is complete!
...
ref #41
2019-11-12 20:32:56 -05:00