Virgil Dupras
a7538473e4
zasm: add support for variable arguments
преди 5 години
Virgil Dupras
38e40bfc16
zasm: make the instruction table fixed
Looping is easier
преди 5 години
Virgil Dupras
8cd400651a
zasm: read each argument immediately insto an argspec
Previously, we would go the other way around: match all available
argspecs to raw argument strings. It's much better to go the other way
around because we can "reduce" each argument much sooner. That will be
important when we start to support constants and expressions.
преди 5 години
Virgil Dupras
1f94b6c3f7
zasm: can now match all "constant" primary opcodes
преди 5 години
Virgil Dupras
fc0cdede55
Move print(n)str from core to shell
These routines had hardcoded references to ACIA and didn't belong to the
core.
преди 5 години
Virgil Dupras
453cf3d74a
zasm: start matching args
We now properly match arg-less operations.
преди 5 години
Virgil Dupras
b3af6e0115
zasm: reuse code from core
преди 5 години
Virgil Dupras
9acca52e44
zasm: begin parsing with easy pickings
Single opcodes that yield constants. "echo ret | zasm" yields 0xc9.
преди 5 години
Virgil Dupras
88cee235b1
zasm: have a whole kernel in emulation instead of a simple wrapper
zasm is going to need to call to kernel code...
преди 5 години
Virgil Dupras
43c1005d61
zasm: implement stdin/stdout in emulator
преди 5 години
Virgil Dupras
1ae2331763
Add zasm app
For now, only a dummy app, but it's emulated properly with libz80.
Exciting times!
преди 5 години
Virgil Dupras
ff99062d5b
Move RC2014 recipe in its own folder
Also, remove `parts/platforms`. It makes no sense. Only recipes make
sense.
преди 5 години
Virgil Dupras
6597e8a75a
doc: add emulate section
преди 5 години
Virgil Dupras
056de2b19d
doc: add glue code section
преди 5 години
Virgil Dupras
7060ee4dc5
Add Status section to README
преди 5 години
Virgil Dupras
6c4489d2a3
Add blockdev doc
преди 5 години
Virgil Dupras
21eb64f751
blockdev: remove one layer of indirection
The approach used for shell extra commands also works for blockdev. Much
simpler and tighter this way.
преди 5 години
Virgil Dupras
a27da6f41a
add mmap part
This also introduces the "seek" shell command.
преди 5 години
Virgil Dupras
af13b0bd00
Code consolidation
преди 5 години
Virgil Dupras
ce49fc15d0
blockdev: reorganize routine pointers
Also, add dummy seek reoutine.
преди 5 години
Virgil Dupras
a5addc989c
shell: rename seek to mptr
going to use `seek` for block devices
преди 5 години
Virgil Dupras
c996da8ac8
shell: add error codes to cmds
преди 5 години
Virgil Dupras
12c23f52e0
Add blockdev part
Also, add the ability for parts to define extra shell commands.
преди 5 години
Virgil Dupras
4600b5299c
shell: place cmd metadata next to the routine
This will facilitate the inclusion of extra commands other parts might
want to define.
преди 5 години
Virgil Dupras
f571664853
Improve user guide
преди 5 години
Virgil Dupras
9aae4ea040
Add user guide
преди 5 години
Virgil Dupras
26b125b337
shell: add shellParseArgs
Replaces individual command parsing. Quite a big and complex chunk of
code, but makes each command much simpler.
преди 5 години
Virgil Dupras
83f63c7146
shell: add call command
преди 5 години
Virgil Dupras
e4c23b4270
shell: echo types letters right away
Easier to use this way...
преди 5 години
Virgil Dupras
942ff37bf8
shell: implement load command
преди 5 години
Virgil Dupras
461c09f1e5
Decouple shell from acia
преди 5 години
Virgil Dupras
8ccddbcb0e
Separate shell and acia input buffers
They serve a different purpose. The goal of the ACIA buffer is to ensure
that we don't miss an input. The goal of the shell buffer is to wait
until the user presses return.
The ACIA buffer has been moved to shell and replaced with a circular
buffer, a more appropriate data structure for this kind of purpose.
Also, introduce `aciaGetC`.
преди 5 години
Virgil Dupras
902c6a5dd3
shell: add count arg to peek
Also, fix seek reversed endianness.
преди 5 години
Virgil Dupras
e4e7db8e23
shell: cleanup
преди 5 години
Virgil Dupras
21168f6c4e
shell: implement seek and peek
This introduces `core.asm` which includes routines used by other parts.
преди 5 години
Virgil Dupras
9580cc3994
shell: add "seek" and "peek" dummy commands
This change introduces a command name matching algo.
преди 5 години
Virgil Dupras
6bb454232a
Extract "acia.asm" from shell
Also, come up with a way to make parts play well together memory-wise.
преди 5 години
Virgil Dupras
ac22a206ae
shell: handle inputs with interrupts
преди 5 години
Virgil Dupras
358c551bcc
shell: add input routine
преди 5 години
Virgil Dupras
89e4edfa52
Add parts/platforms
преди 5 години
Virgil Dupras
7bf3e2f71e
Let's get the ball rolling!
преди 5 години
Virgil Dupras
503089a41c
Initial commit
преди 5 години