argc_exit.P1pp (309B)
1 # tests/p1/argc_exit.P1 — return argc as the process exit status. 2 # 3 # The backend-owned `:_start` stub calls `p1_main` with `a0` = argc, 4 # `a1` = argv. Since `a0` is also the one-word return register, a bare 5 # `%ret` returns argc unchanged, and the stub hands that to sys_exit. 6 7 :p1_main 8 %ret 9 10 :ELF_end