From c9cbeced5b3f2bdd7407e29c0811e65954132540 Mon Sep 17 00:00:00 2001 From: Root THC Date: Tue, 24 Feb 2026 12:42:47 +0000 Subject: initial --- other/shellkit/mips_irix/exit.s | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 other/shellkit/mips_irix/exit.s (limited to 'other/shellkit/mips_irix/exit.s') diff --git a/other/shellkit/mips_irix/exit.s b/other/shellkit/mips_irix/exit.s new file mode 100644 index 0000000..aef7d01 --- /dev/null +++ b/other/shellkit/mips_irix/exit.s @@ -0,0 +1,29 @@ +/* MIPS/IRIX PIC exit code + * + * -sc. + */ + +#include +#include +#include +#include +#include + + .section .text + + .globl cbegin + .globl cend + +cbegin: + .set noreorder + .set nomacro + + /* _exit (0) */ + slti a0, zero, -1 + li v0, SYS_exit /* 0x03e9 */ + syscall + li t8, 0x7350 + + .end cbegin +cend: + -- cgit v1.3