Virgil Dupras
dfe19e20e4
Includes work fine when assembling from the shell
5 years ago
Virgil Dupras
7ae29015de
tools/emul: add hex representation to debug output
My mind isn't so good at decimal -> hex translations. It helps to have
this...
5 years ago
Virgil Dupras
082fa3431d
We can now assemble source files from within the shell!
5 years ago
Virgil Dupras
839ba91312
mmap: make zasm-friendly
5 years ago
Virgil Dupras
78345b336e
Update bootstrap bin
5 years ago
Virgil Dupras
465da6a79d
zasm: add .out directive
5 years ago
Virgil Dupras
40b3d5e11e
tools/emul/shell: copy user.h in its cfsin
This way, we can compile apps from within the shell that run on the
shell.
5 years ago
Virgil Dupras
bed7032ee5
pgm: have its own file handle
5 years ago
Virgil Dupras
a48a91c8da
pgm: properly pass shell args in HL
5 years ago
Virgil Dupras
ecbb77072e
tools/emul/shell: allow the growing of fsdev
5 years ago
Virgil Dupras
f511289a3a
tools/emul: make shell's cfsin always have all apps compiled in it
5 years ago
Virgil Dupras
04bf2117b2
tools/emul: re-organize .h files
What used to be `tools/emul/user.h` was in fact specific to zasm, so I
moved it there.
To avoid name confusion, I renamed what used to be kernel.h and user.h
to kernel-bin.h and user-bin.h.
5 years ago
Virgil Dupras
9a72f10221
zasm: includes CFS is now built on-the-fly by zasm.sh
This makes for a much more usable zasm linux binary that doesn't have to
be rebuilt every time apps or kernel change.
5 years ago
Virgil Dupras
02954af570
Simplyfy the creation of includes.cfs
The next step is to generate them on-the-fly.
5 years ago
Virgil Dupras
a4e45d1a75
zasm: make fsdev buffer larger
Now that we don't sed out the comments any more, we busted the buffer.
5 years ago
Virgil Dupras
58bdc6b27f
cfspack: apply fnmatch only to files
5 years ago
Virgil Dupras
8e2a89cea5
cfspack: add the ability to spit a single file
5 years ago
Virgil Dupras
c317fbdcf9
cfspack: add pattern argument
5 years ago
Virgil Dupras
22e990ed89
Parametrize zasm linux bin's include CFS file
... instead of embedding it in the binary itself. Additionally, add a
"zasm.sh" wrapper to faciliate zasm calls on a linux machine.
5 years ago
Virgil Dupras
37a167562c
Update bootstrap bin
5 years ago
Virgil Dupras
21c677a950
Make parseArgs not expect a leading space
5 years ago
Virgil Dupras
f8bd8eeaaf
Make userspace parse args the same way the shell does
5 years ago
Virgil Dupras
57356e47b4
recipes/rc2014/sdcard: add instructions to write to SD card
5 years ago
Virgil Dupras
26e71ee580
Update shell/blkdev docs
5 years ago
Virgil Dupras
95f1a8ddaf
blkdev: make load command stop and the end of the stream
This allows us to reliably and easily load a file until the end of it.
5 years ago
Virgil Dupras
73c3fc7947
shell/stdio: decouple from blkdev (again)
Move load/save to blkdev_cmds and add a new "poke" builtin shell cmd
that is the mirror of "peek" and strictly uses stdio (no blkdev
involved).
This allows us to slim the minimal OS size but, more importantly, change
the behavior of "load" so that we don't expect GetC to block until Z is
set. This way, using "load X" with X being larger than the blkdev size
won't block forever.
This also brings our RC2014 minimal kernel below the 1K mark again.
5 years ago
Virgil Dupras
88bf98321e
fs: adjust to DE->IX change in recipe/emul glue code
5 years ago
Virgil Dupras
5e5c7e6592
sdc: add sdcPutC
Wriiiiiite!
5 years ago
Virgil Dupras
3bc7cec03a
sdc: allow the read of 0xff
That took an embarrasingly large amount of time to debug for something,
in the end, so obvious...
5 years ago
Virgil Dupras
2e8af376e3
pgm: new kernel module
The pgm module implements a shell hook so that when an unknown command
is typed, we look into the mounted filesystem and look for a file with
the same name as the command. If we find one, we load it in memory and
run it.
5 years ago
Virgil Dupras
7c191fd978
fs: standardize file handle routine argument to IX
Using HL/DE was awkward and error-prone.
5 years ago
Virgil Dupras
83771b538f
fs: check for file size bounds in GetC
5 years ago
Virgil Dupras
a641a94853
sdc: make sector swapping more robust
It would previously only work when GetC-ing our way into a new sector.
Seeking into one would not work. Now it's much more robust and this
paves the way for write support.
5 years ago
Virgil Dupras
cdc865f8c6
tools/emul/shell: add debug output
5 years ago
Virgil Dupras
83e375936c
shell: make seek cmd init DE to 0
So that blkdev not supporting 32-bit aren't messed up.
5 years ago
Virgil Dupras
6403ab1acf
zasm: add support for SRL r
5 years ago
Virgil Dupras
328f44814e
Make blockdev pointers 32 bits
This allows us to break through the 64K limit for includes CFS in zasm,
a limit we were dangerously close to breaking. In fact, this commit
makes us go over that limit. Right in time!
5 years ago
Virgil Dupras
6b1679c811
recipes/rc2014/sdcard: mount filesystem!
5 years ago
Virgil Dupras
312e95479e
sdc: fix bug preventing us from reading beyond first sector
5 years ago
Virgil Dupras
8cfe834edb
recipes/rc2014/sdcard: use "sdci" and blockdev rather than user prog
5 years ago
Virgil Dupras
2c80924df9
zasm: indicate include lineno in errors
5 years ago
Virgil Dupras
8def8e7c38
zasm: add lineno to error reports
For now, top-level only
5 years ago
Virgil Dupras
e414e600ea
zasm: add ERR_DUPSYM and ERR_OOM error conditions
5 years ago
Virgil Dupras
b298e607bd
zasm: implement error conditions for #inc
5 years ago
Virgil Dupras
31f7c7771d
zasm: implement error conditions in .org and .fill
5 years ago
Virgil Dupras
371076190f
zasm: implement error conditions in .equ
5 years ago
Virgil Dupras
436ff51c39
zasm: implement error conditions in .dw
5 years ago
Virgil Dupras
f5d4321ece
zasm: implement error conditions in .db
5 years ago
Virgil Dupras
d76dd54f4b
zasm: add ERR_OVFL
5 years ago
Virgil Dupras
f9118ef88e
xasm: expand ERR_BAD_ARG condition
5 years ago