asm output, random fixes

This commit is contained in:
2025-04-07 19:42:40 -04:00
parent f57af3b2b5
commit cb9a366f43
18 changed files with 266 additions and 117 deletions
+13
View File
@@ -0,0 +1,13 @@
fn start() {
let x = asm(out = t0) {
li t0, 40
};
exit(x);
}
fn exit(status: 64) {
asm (a0 = status) {
li a7, 93
ecall
};
}