summaryrefslogtreecommitdiff
path: root/other/shellkit/mips_irix/exit.s
diff options
context:
space:
mode:
Diffstat (limited to 'other/shellkit/mips_irix/exit.s')
-rw-r--r--other/shellkit/mips_irix/exit.s29
1 files changed, 29 insertions, 0 deletions
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 @@
1/* MIPS/IRIX PIC exit code
2 *
3 * -sc.
4 */
5
6#include <sgidefs.h>
7#include <sys/regdef.h>
8#include <sys/asm.h>
9#include <sys.s>
10#include <sys/syscall.h>
11
12 .section .text
13
14 .globl cbegin
15 .globl cend
16
17cbegin:
18 .set noreorder
19 .set nomacro
20
21 /* _exit (0) */
22 slti a0, zero, -1
23 li v0, SYS_exit /* 0x03e9 */
24 syscall
25 li t8, 0x7350
26
27 .end cbegin
28cend:
29