end_program.s
311 Bytes
#include "regdef.h"
#include "asm.h"
#include "R4300.h"
#include "corefunc.h"
.text
.set noat
.set noreorder
LEAF(end_program)
bne a0, zero, Fail
nop
Pass:
Halt(PASS)
nop
nop
Fail:
lui t0, 0xdead
la t1, log
sw t0, 0(t1)
Halt(FAIL)
nop
nop
END (end_program)