Toby Jaffey
9596838a4b
Recursive maze demo, causes big stack usage
2025-12-09 23:29:16 +00:00
Toby Jaffey
76fba39a21
Rework syscall ABI.
...
Syscalls now accept two parameters, allowing for things like "int count = read(buf, len)"
Rather than providing safe signatures for syscalls, the user is now given helper functions to safely parse incoming values, c-strings and slices.
2025-12-09 21:51:35 +00:00
Toby Jaffey
37a178aad7
Remove refs to old CSRs
2025-12-09 01:23:46 +00:00
Toby Jaffey
3cdc9ae0ca
Default behaviour is to run to end of main
2025-12-09 01:19:09 +00:00
Toby Jaffey
d56f34dc4e
Use cursors
2025-12-09 00:56:07 +00:00
Toby Jaffey
04e7aaef88
Exit on keypress
2025-12-09 00:54:22 +00:00
Toby Jaffey
b6f271ca5a
Add newlines
2025-12-09 00:31:41 +00:00
Toby Jaffey
c37286cf01
Add "self", example of building uvm32 to run inside uvm32
...
mandelbrot app is embedded in host-mini, which is then compiled to a .bin
2025-12-08 23:54:14 +00:00
Toby Jaffey
7e7cabeb24
Prettier, better terminal handling, more variation
2025-12-08 21:41:51 +00:00
Toby Jaffey
ebb6518ec3
Lissajous, showing floating point arithmetic
2025-12-08 21:20:57 +00:00
Toby Jaffey
6735b159ac
Make syscall names closer to libc
2025-12-08 16:28:00 +00:00
Toby Jaffey
61fe0e8647
Rename ioreq to syscall
2025-12-08 12:26:47 +00:00
Toby Jaffey
274f347d90
Break console io example out into own app
2025-12-08 10:35:42 +00:00
Toby Jaffey
40e8795f3f
Explain the hack better
2025-12-08 10:30:33 +00:00
Toby Jaffey
5b2c82b85e
Fix for case sensitivity
2025-12-08 10:23:30 +00:00
Toby Jaffey
a88f3a1690
Workaround for Rust having different system for templating constants to GNU as.
...
Having a separate file is ugly, but it allows for a single source of truth for constants
Works for C, asm, zig and rust.
https://stackoverflow.com/questions/79840723/shared-assembly-between-rust-and-c-using-preprocessor
2025-12-08 10:13:53 +00:00
Toby Jaffey
2ccd3ac7f4
Trying to find some way to share constants
2025-12-08 09:55:47 +00:00
Toby Jaffey
7bf906f369
Rename .s to .S so preprocessor runs ( https://stackoverflow.com/questions/33358825/gnu-assembler-preprocessor-define )
2025-12-08 02:45:38 +00:00
Toby Jaffey
751f068486
Rework host/target interface to use ecall and proper syscalls instead of CSRs
2025-12-08 02:44:38 +00:00
Toby Jaffey
c0711213ae
Add console tetris demo
2025-12-07 21:02:22 +00:00
Toby Jaffey
d8a2faf732
Minimal assembly example
2025-12-07 10:45:11 +00:00
Toby Jaffey
30cf60561f
Fibonacci sample
2025-12-07 01:00:52 +00:00
Toby Jaffey
3e4c87fa1d
Rename emulator to host, for clarity
2025-12-06 22:37:10 +00:00
Toby Jaffey
c9d30b6d28
uvm32 initial version
2025-12-06 16:44:23 +00:00