| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
We allocate space for a local variable, read() a character from stdin to
it, and write() it out to stdout.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Reorganize layers to introduce the translation workflow right at the start.
We also avoid duplicating parsing code. Programs are always parsed into
the `program` data structure.
|
|
|
|
| |
Fix CI.
|
|
|
|
|
|
| |
Minimize memory footprint while running subx ELF binaries. We don't use
memory before address 0x08048000, so we don't need to allocate space for
it.
|
|
|
|
|
|
|
|
| |
ex4 now writes to the (global) data segment, rather than trying to write
to the code segment.
We still need to specify the other segments in the generated ELF,
though.
|
|
|
|
| |
Encapsulate RAM management.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Learning to use the data segment.
Currently, subx can only run the teensy files generated from flat
assembler:
test4
test5
test7
This is not a priority to fix. These files are just useful references to
have around.
|
|
|
|
| |
Temporarily do all prints in hex.
|
|
|
|
| |
Fix CI. Looks like 'std::' sometimes doesn't work.
|
|
|
|
| |
Make prints uniform.
|
| |
|
|
|
|
| |
Hopefully I won't need much more than exit, read and write.
|
| |
|
|
|
|
|
| |
We're now parsing the ELF spec more closely and better handling multiple
program header table entries.
|
| |
|
|
|
|
| |
Turns out it was an open question I never got around to answering.
|
| |
|
|
|
|
| |
Fix CI.
|
|
Temporary hack to debug Kragen Sitaker's VM.
|