# puts PC in ($t9)
# use it to load a shellforge shellcode
#
# you still cannot use static variables
#
# we use the stack (at -31416 to avoid overwriting the shellcode)
#
# Discard the two nops at the end ;)
#
# Julien TINNES <julien at cr0.org>
#

	
	.text
	.align	2
	.globl	main
	.ent	main
	.type		 main,@function
main:


	li	$9,-17
.set noreorder
next:
	bltzal  $8, next
.set reorder
	slti    $8, $0, 0x8282
	nor     $9, $9, $0
	addu	$25, $9, $31
	sw	$25, -31416($sp)
	addi	$25, $sp, -31416

# ($t9) points here, shellcode begins now
	nop
	nop
	.end	main

