/*
# _____     ___ ____     ___ ____
#  ____|   |    ____|   |        | |____|
# |     ___|   |____ ___|    ____| |    \    PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.
#
# $Id: loadcore.s 577 2004-09-14 14:41:46Z pixel $
# Core IOP Functions.
*/

	.text
	.set	noreorder



/* ############################### LOADCORE STUB ###### */
/* # Added by Oobles, 5th March 2002                  # */

	.local	loadcore_stub
loadcore_stub:
	.word	0x41e00000
	.word	0
	.word	0x00000101
	.ascii	"loadcore"
	.align	2

	.globl	GetLibraryEntryTable		# 0x03
GetLibraryEntryTable:
	j	$31
	li	$0, 3

	.globl	FlushIcache			# 0x05
FlushIcache:
	j	$31
	li	$0, 4

	.globl	FlushDcache			# 0x05
FlushDcache:
	j	$31
	li	$0, 5

	.global RegisterLibraryEntries		# 0x06
RegisterLibraryEntries:
	j	$31
	li	$0, 6

	.global ReleaseLibraryEntries
ReleaseLibraryEntries:
	j	$31
	li	$0, 7

	.global QueryLibraryEntryTable
QueryLibraryEntryTable:
	j	$31
	li	$0, 11

	.globl	QueryBootMode			# 0x0c
QueryBootMode:
	j	$31
	li	$0, 0x0c

	.word	0
	.word	0



