This commit is contained in:
2026-09-11 19:32:18 -04:00
parent 3187a3bd0b
commit 46406a2e87
2 changed files with 22 additions and 6 deletions
+6 -3
View File
@@ -1,5 +1,5 @@
.data
argc: .space 8
argc: .space 8
.section .text
.globl _start
@@ -10,13 +10,16 @@ _start:
la gp, __global_pointer$
.option pop
call save_sp
call fetch_argc
li t0, 48
add a0, a0, t0
sd a0, argc, t0
# li a0, 1
# call fetch_argv
li a0, 1
la a1, argc
li a2, 1