travel fn path for compilation

This commit is contained in:
2024-12-07 20:03:19 -05:00
parent e63f652eb5
commit 0e0dbd647d
15 changed files with 230 additions and 259 deletions

View File

@@ -1,6 +1,11 @@
fn start() {
print("Hello World!\n", 13);
exit(39);
print("Hello World!\n", 13);
exit(0);
}
fn unused() {
print("Hello World!\n", 13);
}
fn print(msg, len) {
@@ -12,7 +17,7 @@ fn print(msg, len) {
}
}
fn exit(status) {
fn exit(status: 32) {
asm (a0 = status) {
ld a0, 0, a0
li a7, 93