Skip to content
  • This project
    • Loading...
  • Sign in

Barry / rf-depot

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • rf-depot
  • sw
  • n64os20l
  • apps
  • oscorefunc
  • end_program.s
  • root's avatar
    initial commit · bc83a1ad
    bc83a1ad
    root committed 2020-05-02 05:58:04 +0000
end_program.s 311 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#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)