diff --git a/iop/kernel/Makefile b/iop/kernel/Makefile index 593a93d6d064..b838226bff21 100644 --- a/iop/kernel/Makefile +++ b/iop/kernel/Makefile @@ -6,9 +6,6 @@ # Licenced under Academic Free License version 2.0 # Review ps2sdk README & LICENSE files for further details. -# TODO: remove the library because it's deprecated. -# IOP_OBJS = cdvdman.o heaplib.o intrman.o ioman.o libsd.o loadcore.o modload.o secrman.o sifcmd.o sifman.o sio2man.o stdio.o sysclib.o sysmem.o thbase.o thevent.o thsemap.o timrman.o usbd.o vblank.o - include $(PS2SDKSRC)/Defs.make include $(PS2SDKSRC)/iop/Rules.lib.make include $(PS2SDKSRC)/iop/Rules.make diff --git a/iop/kernel/src/cdvdman.s b/iop/kernel/src/cdvdman.s deleted file mode 100644 index e2370a34f1a2..000000000000 --- a/iop/kernel/src/cdvdman.s +++ /dev/null @@ -1,154 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# CDVD Manager Functions. -*/ - - .text - .set noreorder - - -/* ############################### CDVDMAN STUB ####### */ -/* # Added by Sjeep, 24th June 2002 # */ - -.local cdvdman_stub -cdvdman_stub: - .word 0x41e00000 - .word 0 - .word 0x00000101 - .ascii "cdvdman\0" - .align 2 - - .globl CdInit # 004 -CdInit: - j $31 - li $0, 4 - - .globl CdStandby # 005 -CdStandby: - j $31 - li $0, 5 - - .globl CdRead # 006 -CdRead: - j $31 - li $0, 6 - - .globl CdSeek # 007 -CdSeek: - j $31 - li $0, 7 - - .globl CdGetError # 008 -CdGetError: - j $31 - li $0, 8 - - .globl CdGetToc # 009 -CdGetToc: - j $31 - li $0, 9 - - .globl CdSearchFile # 010 -CdSearchFile: - j $31 - li $0, 10 - - .globl CdSync # 011 -CdSync: - j $31 - li $0, 11 - - .globl CdGetDiskType # 012 -CdGetDiskType: - j $31 - li $0, 12 - - .globl CdDiskReady # 013 -CdDiskReady: - j $31 - li $0, 13 - - .globl CdTrayReq # 014 -CdTrayReq: - j $31 - li $0, 14 - - .globl CdStop # 015 -CdStop: - j $31 - li $0, 15 - - .globl CdPosToInt # 016 -CdPosToInt: - j $31 - li $0, 16 - - .globl CdIntToPos # 017 -CdIntToPos: - j $31 - li $0, 17 - - .globl CdCheckCmd # 021 -CdCheckCmd: - j $31 - li $0, 21 - - .globl CdReadILinkID # 022 -CdReadILinkID: - j $31 - li $0, 22 - - .globl CdReadClock # 024 -CdReadClock: - j $31 - li $0, 24 - - .globl CdStatus # 028 -CdStatus: - j $31 - li $0, 28 - - .globl CdCallback # 037 -CdCallback: - j $31 - li $0, 37 - - .globl CdPause # 038 -CdPause: - j #31 - li $0, 38 - - .globl CdBreak # 039 -CdBreak: - j $31 - li $0, 39 - - .globl CdGetReadPos # 044 -CdGetReadPos: - j $31 - li $0, 44 - - .globl CdRC # 051 -CdRC: - j $31 - li $0, 51 - - .globl CdReadChain # 066 -CdReadChain: - j $31 - li $0, 66 - - .globl CdMmode -CdMmode: - j $31 - li $0, 75 - - .word 0 - .word 0 diff --git a/iop/kernel/src/heaplib.s b/iop/kernel/src/heaplib.s deleted file mode 100644 index 42e2f5186006..000000000000 --- a/iop/kernel/src/heaplib.s +++ /dev/null @@ -1,54 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# Heap library function imports. -*/ - - .text - .set noreorder - - -/* ############################### SYSMEM STUB ######## */ - .local sysmem_stub -sysmem_stub: - .word 0x41e00000 - .word 0 - .word 0x00000101 - .ascii "heaplib\0" - .align 2 - - .globl CreateHeap # 004 -CreateHeap: - j $31 - li $0, 4 - - .globl DestroyHeap # 005 -DestroyHeap: - j $31 - li $0, 5 - - .globl HeapMalloc # 006 -HeapMalloc: - j $31 - li $0, 6 - - .globl HeapFree # 007 -HeapFree: - j $31 - li $0, 7 - - .globl HeapSize # 008 -HeapSize: - j $31 - li $0, 8 - - .word 0 - .word 0 - - diff --git a/iop/kernel/src/intrman.s b/iop/kernel/src/intrman.s deleted file mode 100644 index 8f2001e73a2c..000000000000 --- a/iop/kernel/src/intrman.s +++ /dev/null @@ -1,76 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# Interrupt Manager Functions. -*/ - - .text - .set noreorder - - -/* ############################### INTRMAN STUB ####### */ -/* # Added by Oobles, 5th March 2002 # */ - - .local intrman_stub -intrman_stub: - .word 0x41e00000 - .word 0 - .word 0x00000102 - .ascii "intrman\0" - .align 2 - - .globl RegisterIntrHandler # 004 -RegisterIntrHandler: - j $31 - li $0, 4 - - .globl ReleaseIntrHandler # 005 -ReleaseIntrHandler: - j $31 - li $0, 5 - - .globl EnableIntr # 006 -EnableIntr: - j $31 - li $0, 6 - - .globl DisableIntr # 007 -DisableIntr: - j $31 - li $0, 7 - - .globl CpuDisableIntr # 008 -CpuDisableIntr: - j $31 - li $0, 8 - - .globl CpuEnableIntr # 009 -CpuEnableIntr: - j $31 - li $0, 9 - - .globl CpuSuspendIntr # 0x11 -CpuSuspendIntr: - j $31 - li $0, 0x11 - - .globl CpuResumeIntr # 0x12 -CpuResumeIntr: - j $31 - li $0, 0x12 - - .globl QueryIntrContext # 0x17 -QueryIntrContext: - j $31 - li $0, 0x17 - - .word 0 - .word 0 - - diff --git a/iop/kernel/src/ioman.s b/iop/kernel/src/ioman.s deleted file mode 100644 index 31dd9ccabd69..000000000000 --- a/iop/kernel/src/ioman.s +++ /dev/null @@ -1,118 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# IOP Basic libraries. -*/ - - .text - .set noreorder - - -/* ############################### IOMAN STUB ######## */ - .local ioman_stub -ioman_stub: - .word 0x41e00000 - .word 0 - .word 0x00000102 - .ascii "ioman\0\0\0" - .align 2 - - .globl open # 004 -open: - j $31 - li $0, 4 - - .globl close # 005 -close: - j $31 - li $0, 5 - - .globl read # 006 -read: - j $31 - li $0, 6 - - .globl write # 007 -write: - j $31 - li $0, 7 - - .globl lseek # 008 -lseek: - j $31 - li $0, 8 - - .globl ioctl -ioctl: - j $31 - li $0, 9 - - .globl remove -remove: - j $31 - li $0, 10 - - .globl mkdir -mkdir: - j $31 - li $0, 11 - - .globl rmdir -rmdir: - j $31 - li $0, 12 - - .globl dopen -dopen: - j $31 - li $0, 13 - - .globl dclose -dclose: - j $31 - li $0, 14 - - .globl dread -dread: - j $31 - li $0, 15 - - .globl getstat -getstat: - j $31 - li $0, 16 - - .globl chstat -chstat: - j $31 - li $0, 17 - - .globl format -format: - j $31 - li $0, 18 - - .globl FILEIO_add # 020 - .globl AddDrv -FILEIO_add: -AddDrv: - j $31 - li $0, 20 - - .globl FILEIO_del # 021 - .globl DelDrv -FILEIO_del: -DelDrv: - j $31 - li $0, 21 - - .word 0 - .word 0 - - diff --git a/iop/kernel/src/libsd.s b/iop/kernel/src/libsd.s deleted file mode 100644 index 92c6960b1ea7..000000000000 --- a/iop/kernel/src/libsd.s +++ /dev/null @@ -1,162 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# Sound Library -*/ - - .text - .set noreorder - - -/* ############################### LIBSD STUB ######### */ -/* # Added by Oobles, 7th March 2002 # */ - - .local libsd_stub -libsd_stub: - .word 0x41e00000 - .word 0 - .word 0x00000104 - .ascii "libsd\0\0" - .align 2 - -/* Added by Julian Tyler (lovely) */ - .globl SdQuit # 0x02 -SdQuit: - j $31 - li $0, 0x02 - - .globl SdInit # 0x04 -SdInit: - j $31 - li $0, 0x04 - - .globl SdSetParam # 0x05 -SdSetParam: - j $31 - li $0, 0x05 - - .globl SdGetParam # 0x06 -SdGetParam: - j $31 - li $0, 0x06 - - .globl SdSetSwitch # 0x07 -SdSetSwitch: - j $31 - li $0, 0x07 - -/* Added by Julian Tyler (lovely) */ - .globl SdGetSwitch # 0x08 -SdGetSwitch: - j $31 - li $0, 0x08 - - .globl SdSetAddr # 0x09 -SdSetAddr: - j $31 - li $0, 0x09 - - .globl SdGetAddr # 0x0a -SdGetAddr: - j $31 - li $0, 0x0a - - .globl SdSetCoreAttr # 0x0b -SdSetCoreAttr: - j $31 - li $0, 0x0b - -/* Added by Julian Tyler (lovely) 013-016 */ - .globl SdGetCoreAttr # 012 -SdGetCoreAttr: - j $31 - li $0, 0x0c - - .globl SdNote2Pitch # 013 -SdNote2Pitch: - j $31 - li $0, 0x0d - - .globl SdPitch2Note # 014 -SdPitch2Note: - j $31 - li $0, 0x0e - - .globl SdProcBatch # 015 -SdProcBatch: - j $31 - li $0, 0x0f - - .globl SdProcBatchEx # 016 -SdProcBatchEx: - j $31 - li $0, 0x10 - - .globl SdVoiceTrans # 0x11 -SdVoiceTrans: - j $31 - li $0, 0x11 - -/* Added by Julian Tyler (lovely) 018-022 */ - - .globl SdBlockTrans # 018 -SdBlockTrans: - j $31 - li $0, 0x12 - - .globl SdVoiceTransStatus # 019 -SdVoiceTransStatus: - j $31 - li $0, 0x13 - - .globl SdBlockTransStatus # 020 -SdBlockTransStatus: - j $31 - li $0, 0x14 - - .globl SdSetTransCallback # 021 -SdSetTransCallback: - j $31 - li $0, 0x15 - - .globl SdSetIRQCallback # 022 -SdSetIRQCallback: - j $31 - li $0, 0x16 - - .globl SdSetEffectAttr # 0x17 -SdSetEffectAttr: - j $31 - li $0, 0x17 - -/* Added by Julian Tyler (lovely) 024-025 */ - - .globl SdGetEffectAttr # 024 -SdGetEffectAttr: - j $31 - li $0, 0x18 - - .globl SdClearEffectWorkArea # 025 -SdClearEffectWorkArea: - j $31 - li $0, 0x19 - - .globl SdSetTransIntrHandler # 0x1a -SdSetTransIntrHandler: - j $31 - li $0, 0x1a - - .globl SdSetSpu2IntrHandler # 0x1b -SdSetSpu2IntrHandler: - j $31 - li $0, 0x1b - - .word 0 - .word 0 - diff --git a/iop/kernel/src/loadcore.s b/iop/kernel/src/loadcore.s deleted file mode 100644 index 02f3bc770128..000000000000 --- a/iop/kernel/src/loadcore.s +++ /dev/null @@ -1,68 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# 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 - - - diff --git a/iop/kernel/src/modload.s b/iop/kernel/src/modload.s deleted file mode 100644 index 4cfa37a27129..000000000000 --- a/iop/kernel/src/modload.s +++ /dev/null @@ -1,74 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# Module Manager Functions. -*/ - - .text - .set noreorder - - -/* ############################### MODLOAD STUB ####### */ -/* # Added by Sjeep, 28th March 2002 # */ - - .local modload_stub -modload_stub: - .word 0x41e00000 - .word 0 - .word 0x00000101 - .ascii "modload\0" - .align 2 - - .globl ReBootStart # 004 -ReBootStart: - jr $31 - li $0, 0x04 - - .globl LoadModuleAddress # 005 -LoadModuleAddress: - jr $31 - li $0, 0x05 - - .globl LoadModule # 006 -LoadModule: - jr $31 - li $0, 0x06 - - .globl LoadStartModule # 007 -LoadStartModule: - jr $31 - li $0, 0x07 - - .globl StartModule # 008 -StartModule: - jr $31 - li $0, 0x08 - - .globl LoadModuleBufferAddress # 009 -LoadModuleBufferAddress: - jr $31 - li $0, 0x09 - - .globl LoadModuleBuffer # 010 -LoadModuleBuffer: - jr $31 - li $0, 0x0A - - .globl SetSecrmanCallbacks # 012 -SetSecrmanCallbacks: - jr $31 - li $0, 0x0C - - .globl SetCheckKelfPathCallback # 013 -SetCheckKelfPathCallback: - jr $31 - li $0, 0x0D - - .word 0 - .word 0 diff --git a/iop/kernel/src/secrman.s b/iop/kernel/src/secrman.s deleted file mode 100644 index f69c6a07258e..000000000000 --- a/iop/kernel/src/secrman.s +++ /dev/null @@ -1,112 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# secrman Module Functions. -*/ - - .text - .set noreorder - - -/* ############################### SECRMAN STUB ###### */ -/* # Added by jimmikaelkael, 16th january 2009 # */ - - .local secrman_stub -secrman_stub: - .word 0x41e00000 - .word 0x00000000 - .word 0x00000103 - .ascii "secrman\0" - .align 2 - - .globl SetMcCommandCallback # 004 -SetMcCommandCallback: - jr $31 - li $0, 0x04 - - .globl SetMcDevIDCallback # 005 -SetMcDevIDCallback: - jr $31 - li $0, 0x05 - - .globl SecrAuthCard # 006 -SecrAuthCard: - jr $31 - li $0, 0x06 - - .globl SecrResetAuthCard # 007 -SecrResetAuthCard: - jr $31 - li $0, 0x07 - - .globl SecrCardBootHeader # 008 -SecrCardBootHeader: - jr $31 - li $0, 0x08 - - .globl SecrCardBootBlock # 009 -SecrCardBootBlock: - jr $31 - li $0, 0x09 - - .globl SecrCardBootFile # 010 -SecrCardBootFile: - jr $31 - li $0, 0x0a - - .globl SecrDiskBootHeader # 011 -SecrDiskBootHeader: - jr $31 - li $0, 0x0b - - .globl SecrDiskBootBlock # 012 -SecrDiskBootBlock: - jr $31 - li $0, 0x0c - - .globl SecrDiskBootFile # 013 -SecrDiskBootFile: - jr $31 - li $0, 0x0d - - .globl SecrDownloadHeader # 014 -SecrDownloadHeader: - jr $31 - li $0, 0x0e - - .globl SecrDownloadBlock # 015 -SecrDownloadBlock: - jr $31 - li $0, 0x0f - - .globl SecrDownloadFile # 016 -SecrDownloadFile: - jr $31 - li $0, 0x10 - - .globl SecrDownloadGetKbit # 017 -SecrDownloadGetKbit: - jr $31 - li $0, 0x11 - - .globl SecrDownloadGetKc # 018 -SecrDownloadGetKc: - jr $31 - li $0, 0x12 - - .globl SecrDownloadGetICVPS2 # 019 -SecrDownloadGetICVPS2: - jr $31 - li $0, 0x13 - - .word 0 - .word 0 - - - diff --git a/iop/kernel/src/sifcmd.s b/iop/kernel/src/sifcmd.s deleted file mode 100644 index 5c33c6be7b4d..000000000000 --- a/iop/kernel/src/sifcmd.s +++ /dev/null @@ -1,161 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# Serial Interface Command Functions. -*/ - - .text - .set noreorder - - -/* ############################### SIFCMD STUB ######## */ -/* # Added by Oobles, 5th March 2002 # */ - - .local sifcmd_stub -sifcmd_stub: - .word 0x41e00000 - .word 0 - .word 0x00000101 - .ascii "sifcmd\0\0" - .align 2 - - .globl sceSifInitCmd # 0x04 -sceSifInitCmd: - j $31 - li $0, 0x04 - - .globl sceSifExitCmd # 0x05 -sceSifExitCmd: - j $31 - li $0, 0x05 - - .globl sceSifGetSreg # 0x06 -sceSifGetSreg: - j $31 - li $0, 0x06 - - .globl sceSifSetSreg # 0x07 -sceSifSetSreg: - j $31 - li $0, 0x07 - - .globl sceSifSetCmdBuffer # 0x08 -sceSifSetCmdBuffer: - j $31 - li $0, 0x08 - - .globl sceSifSetSysCmdBuffer # 0x09 -sceSifSetSysCmdBuffer: - j $31 - li $0, 0x09 - - .globl sceSifAddCmdHandler # 0x0a -sceSifAddCmdHandler: - j $31 - li $0, 0x0a - - .globl sceSifRemoveCmdHandler # 0x0b -sceSifRemoveCmdHandler: - j $31 - li $0, 0x0b - - .globl sceSifSendCmd # 0x0c -sceSifSendCmd: - j $31 - li $0, 0x0c - - .globl isceSifSendCmd # 0x0d -isceSifSendCmd: - j $31 - li $0, 0x0d - - .globl sceSifInitRpc # 0x0E -sceSifInitRpc: - j $31 - li $0, 0x0E - - .globl sceSifBindRpc # 0x0F -sceSifBindRpc: - j $31 - li $0, 0x0F - - .globl sceSifCallRpc # 0x10 -sceSifCallRpc: - j $31 - li $0, 0x10 - - .globl sceSifRegisterRpc # 0x11 -sceSifRegisterRpc: - j $31 - li $0, 0x11 - - .globl sceSifCheckStatRpc # 0x12 -sceSifCheckStatRpc: - j $31 - li $0, 0x12 - - .globl sceSifSetRpcQueue # 0x13 -sceSifSetRpcQueue: - j $31 - li $0, 0x13 - - .globl sceSifGetNextRequest # 0x14 -sceSifGetNextRequest: - j $31 - li $0, 0x14 - - .globl sceSifExecRequest # 0x15 -sceSifExecRequest: - j $31 - li $0, 0x15 - - .globl sceSifRpcLoop # 0x16 -sceSifRpcLoop: - j $31 - li $0, 0x16 - - .globl sceSifGetOtherData # 0x17 -sceSifGetOtherData: - j $31 - li $0, 0x17 - - .globl sceSifRemoveRpc # 0x18 -sceSifRemoveRpc: - j $31 - li $0, 0x18 - - .globl sceSifRemoveRpcQueue # 0x19 -sceSifRemoveRpcQueue: - j $31 - li $0, 0x19 - - .globl sceSifSetSif1CB # 0x1A -sceSifSetSif1CB: - j $31 - li $0, 0x1A - - .globl sceSifClearSif1CB # 0x1B -sceSifClearSif1CB: - j $31 - li $0, 0x1B - - .globl sceSifSendCmdIntr # 0x20 -sceSifSendCmdIntr: - j $31 - li $0, 0x20 - - .globl isceSifSendCmdIntr # 0x21 -isceSifSendCmdIntr: - j $31 - li $0, 0x21 - - .word 0 - .word 0 - - diff --git a/iop/kernel/src/sifman.s b/iop/kernel/src/sifman.s deleted file mode 100644 index 580ae2b99abe..000000000000 --- a/iop/kernel/src/sifman.s +++ /dev/null @@ -1,74 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# Serial Interface Manager Functions. -*/ - - .text - .set noreorder - - -/* ############################### SIFMAN STUB ######## */ -/* # Added by Oobles, 7th March 2002 # */ - - .local sifman_stub -sifman_stub: - .word 0x41e00000 - .word 0 - .word 0x00000101 - .ascii "sifman\0\0" - .align 2 - - .globl sceSifInit # 0x05 -sceSifInit: - j $31 - li $0, 0x05 - - .globl sceSifSetDChain # 0x06 -sceSifSetDChain: - j $31 - li $0, 0x06 - - .globl sceSifSetDma # 0x07 -sceSifSetDma: - j $31 - li $0, 0x07 - - .globl sceSifDmaStat # 0x08 -sceSifDmaStat: - j $31 - li $0, 0x08 - - .globl sceSifGetSMFlag # 0x17 -sceSifGetSMFlag: - j $31 - li $0, 0x17 - - .globl sceSifSetSMFlag # 0x18 -sceSifSetSMFlag: - j $31 - li $0, 0x18 - - .globl sceSifIntrMain # 0x1c -sceSifIntrMain: - j $31 - li $0, 0x1c - - .globl sceSifCheckInit # 0x1d -sceSifCheckInit: - j $31 - li $0, 0x1d - - .globl sceSifSetDmaIntr # 0x20 -sceSifSetDmaIntr: - j $31 - li $0, 0x20 - - .word 0 - .word 0 diff --git a/iop/kernel/src/sio2man.S b/iop/kernel/src/sio2man.S deleted file mode 100644 index 2992a16ee776..000000000000 --- a/iop/kernel/src/sio2man.S +++ /dev/null @@ -1,61 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# Serial Input Output 2 Manager Functions. -*/ - -#define DECLARE_EXPORT(name, n) \ - .globl name; \ -name: \ - j $31; \ - li $0, n - - .text - .set noreorder - - -/* ############################## SIO2MAN STUB ######## */ -/* # Added by linuzappz, 6th October 2004 # */ - - .local sio2man_stub -sio2man_stub: - .word 0x41e00000 - .word 0 - .word 0x00000102 - .ascii "sio2man\0" - .align 2 - - DECLARE_EXPORT(sio2_ctrl_set, 4) - DECLARE_EXPORT(sio2_ctrl_get, 5) - DECLARE_EXPORT(sio2_stat6c_get, 6) - DECLARE_EXPORT(sio2_portN_ctrl1_set, 7) - DECLARE_EXPORT(sio2_portN_ctrl1_get, 8) - DECLARE_EXPORT(sio2_portN_ctrl2_set, 9) - DECLARE_EXPORT(sio2_portN_ctrl2_get, 10) - DECLARE_EXPORT(sio2_stat70_get, 11) - DECLARE_EXPORT(sio2_regN_set, 12) - DECLARE_EXPORT(sio2_regN_get, 13) - DECLARE_EXPORT(sio2_stat74_get, 14) - DECLARE_EXPORT(sio2_unkn78_set, 15) - DECLARE_EXPORT(sio2_unkn78_get, 16) - DECLARE_EXPORT(sio2_unkn7c_set, 17) - DECLARE_EXPORT(sio2_unkn7c_get, 18) - DECLARE_EXPORT(sio2_data_out, 19) - DECLARE_EXPORT(sio2_data_in, 20) - DECLARE_EXPORT(sio2_stat_set, 21) - DECLARE_EXPORT(sio2_stat_get, 22) - DECLARE_EXPORT(sio2_pad_transfer_init, 23) - DECLARE_EXPORT(sio2_mc_transfer_init, 24) - DECLARE_EXPORT(sio2_transfer, 25) - DECLARE_EXPORT(sio2_transfer_reset, 26) - DECLARE_EXPORT(sio2_mtap_transfer_init, 48) - - .word 0 - .word 0 - diff --git a/iop/kernel/src/stdio.s b/iop/kernel/src/stdio.s deleted file mode 100644 index 7277a34670c9..000000000000 --- a/iop/kernel/src/stdio.s +++ /dev/null @@ -1,35 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# Stdio Import Library -*/ - - .text - .set noreorder - - -/* ############################### STDIO STUB ######## */ - .local stdio_stub -stdio_stub: - .word 0x41e00000 - .word 0 - .word 0x00000102 - .ascii "stdio\0\0\0" - .align 2 - - .globl printf # 004 - -printf: - j $31 - li $0, 4 - - .word 0 - .word 0 - - diff --git a/iop/kernel/src/sysclib.s b/iop/kernel/src/sysclib.s deleted file mode 100644 index 89d4cc644168..000000000000 --- a/iop/kernel/src/sysclib.s +++ /dev/null @@ -1,221 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# C Library Functions. -*/ - - .text - .set noreorder - - -/* ############################### SYSCLIB STUB ####### */ -/* # Added by Oobles, 5th March 2002 # */ - - .local sysclib_stub -sysclib_stub: - .word 0x41e00000 - .word 0 - .word 0x00000101 - .ascii "sysclib\0" - .align 2 - - .globl setjmp # 0x04 -setjmp: - j $31 - li $0, 0x04 - - .globl longjmp # 0x05 -longjmp: - j $31 - li $0, 0x05 - - .globl toupper # 0x06 -toupper: - j $31 - li $0, 0x06 - - .globl tolower # 0x07 -tolower: - j $31 - li $0, 0x07 - - .globl look_ctype_table # 0x08 -look_ctype_table: - j $31 - li $0, 0x08 - - .globl get_ctype_table # 0x09 -get_ctype_table: - j $31 - li $0, 0x09 - - .globl memchr # 0x0A -memchr: - j $31 - li $0, 0x0A - - .globl memcmp # 0x0B -memcmp: - j $31 - li $0, 0x0B - - .globl memcpy # 0x0C -memcpy: - j $31 - li $0, 0x0C - - .globl memmove # 0x0D -memmove: - j $31 - li $0, 0x0D - - .globl memset # 0x0E -memset: - j $31 - li $0, 0x0E - - .globl bcmp # 0x0F -bcmp: - j $31 - li $0, 0x0F - - .globl bcopy # 0x10 -bcopy: - j $31 - li $0, 0x10 - - .globl bzero # 0x11 -bzero: - j $31 - li $0, 0x11 - - .globl prnt # 0x12 -prnt: - j $31 - li $0, 0x12 - - .globl sprintf # 0x013 -sprintf: - j $31 - li $0, 0x13 - - .globl strcat # 0x14 -strcat: - j $31 - li $0, 0x14 - - .globl strchr # 0x15 -strchr: - j $31 - li $0, 0x15 - - .globl strcmp # 0x16 -strcmp: - j $31 - li $0, 0x16 - - .globl strcpy # 0x17 -strcpy: - j $31 - li $0, 0x17 - - .globl strcspn # 0x18 -strcspn: - j $31 - li $0, 0x18 - - .globl index # 0x19 -index: - j $31 - li $0, 0x19 - - .globl rindex # 0x1A -rindex: - j $31 - li $0, 0x1A - - .globl strlen # 0x1b -strlen: - j $31 - li $0, 0x1b - - .globl strncat # 0x1c -strncat: - j $31 - li $0, 0x1C - - .globl strncmp # 0x1d -strncmp: - j $31 - li $0, 0x1d - - .globl strncpy # 0x1E -strncpy: - j $31 - li $0, 0x1E - - .globl strpbrk # 0x1F -strpbrk: - j $31 - li $0, 0x1F - - .globl strrchr # 0x20 -strrchr: - j $31 - li $0, 0x20 - - .globl strspn # 0x21 -strspn: - j $31 - li $0, 0x21 - - .globl strstr # 0x22 -strstr: - j $31 - li $0, 0x22 - - .globl strtok # 0x23 -strtok: - j $31 - li $0, 0x23 - - .globl strtol # 0x24 -strtol: - j $31 - li $0, 0x24 - - .globl atob # 0x25 -atob: - j $31 - li $0, 0x25 - - .globl strtoul # 0x26 -strtoul: - j $31 - li $0, 0x26 - - .globl wmemcopy # 0x28 -wmemcopy: - j $31 - li $0, 0x28 - - .globl wmemset # 0x29 -wmemset: - j $31 - li $0, 0x29 - - .globl vsprintf # 0x2A -vsprintf: - j $31 - li $0, 0x2A - - .word 0 - .word 0 - - diff --git a/iop/kernel/src/sysmem.s b/iop/kernel/src/sysmem.s deleted file mode 100644 index 739f9ae09d1b..000000000000 --- a/iop/kernel/src/sysmem.s +++ /dev/null @@ -1,74 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# Memory Function import list. -*/ - - .text - .set noreorder - - -/* ############################### SYSMEM STUB ######## */ - .local sysmem_stub -sysmem_stub: - .word 0x41e00000 - .word 0 - .word 0x00000101 - .ascii "sysmem\0\0" - .align 2 - - .globl AllocSysMemory # 004 -AllocSysMemory: - j $31 - li $0, 0x04 - - .globl FreeSysMemory # 005 -FreeSysMemory: - j $31 - li $0, 0x05 - - .globl QueryMemSize # 006 -QueryMemSize: - j $31 - li $0, 0x06 - - .globl QueryMaxFreeMemSize # 007 -QueryMaxFreeMemSize: - j $31 - li $0, 0x07 - - .globl QueryTotalFreeMemSize # 008 -QueryTotalFreeMemSize: - j $31 - li $0, 0x08 - - .globl QueryBlockTopAddress # 009 -QueryBlockTopAddress: - j $31 - li $0, 0x09 - - .globl QueryBlockSize # 00A -QueryBlockSize: - j $31 - li $0, 0x0A - - .globl Kprintf # 0x0E -Kprintf: - j $31 - li $0, 0x0E - - .globl SetKprintf # 0x0F -SetKprintf: - j $31 - li $0, 0x0F - - .word 0 - .word 0 - - diff --git a/iop/kernel/src/thbase.s b/iop/kernel/src/thbase.s deleted file mode 100644 index 02dff975eefc..000000000000 --- a/iop/kernel/src/thbase.s +++ /dev/null @@ -1,170 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# Base Kernel Functions. -*/ - - .text - .set noreorder - - -/* ############################### THBASE STUB ######## */ -/* # Added by Oobles, 5th March 2002 # */ - - .local thbase_stub -thbase_stub: - .word 0x41e00000 - .word 0 - .word 0x00000101 - .ascii "thbase\0\0" - .align 2 - - .globl CreateThread # 004 -CreateThread: - j $31 - li $0, 4 - - .globl DeleteThread # 005 -DeleteThread: - j $31 - li $0, 5 - - .globl StartThread # 006 -StartThread: - j $31 - li $0, 6 - - .globl StartThreadArgs # 007 -StartThreadArgs: - j $31 - li $0, 0x07 - - .globl ExitThread # 008 -ExitThread: - j $31 - li $0, 0x08 - - .globl ExitDeleteThread # 009 -ExitDeleteThread: - j $31 - li $0, 0x09 - - .globl TerminateThread # 010 -TerminateThread: - j $31 - li $0, 0x0A - - .globl iTerminateThread # 011 -iTerminateThread: - j $31 - li $0, 0x0B - - .globl DisableDispatchThread # 012 -DisableDispatchThread: - j $31 - li $0, 0x0C - - .globl EnableDispatchThread # 013 -EnableDispatchThread: - j $31 - li $0, 0x0D - - - .globl ChangeThreadPriority # 014 -ChangeThreadPriority: - j $31 - li $0, 0x0E - - .globl iChangeThreadPriority # 015 -iChangeThreadPriority: - j $31 - li $0, 0x0F - - - .globl ReleaseWaitThread # 018 -ReleaseWaitThread: - j $31 - li $0, 18 - - .globl iReleaseWaitThread # 019 -iReleaseWaitThread: - j $31 - li $0, 19 - - .globl GetThreadId # 0x14 -GetThreadId: - j $31 - li $0, 0x14 - - .globl SleepThread # 0x18 -SleepThread: - j $31 - li $0, 0x18 - - .globl WakeupThread # 0x19 -WakeupThread: - j $31 - li $0, 0x19 - - .globl iWakeupThread # 0x1A -iWakeupThread: - j $31 - li $0, 0x1A - - .globl DelayThread # 0x21 -DelayThread: - j $31 - li $0, 0x21 - - .globl GetSystemTime # 0x22 -GetSystemTime: - j $31 - li $0, 0x22 - - - .globl SetAlarm # 0x23 -SetAlarm: - j $31 - li $0, 0x23 - - .globl iSetAlarm # 0x24 -iSetAlarm: - j $31 - li $0, 0x24 - - .globl CancelAlarm # 0x25 -CancelAlarm: - j $31 - li $0, 0x25 - - .globl iCancelAlarm # 0x26 -iCancelAlarm: - j $31 - li $0, 0x26 - - .globl USec2SysClock # 0x27 -USec2SysClock: - j $31 - li $0, 0x27 - - .globl SysClock2USec # 0x28 -SysClock2USec: - j $31 - li $0, 0x28 - - .globl GetSystemStatusFlag # 0x29 -GetSystemStatusFlag: - j $31 - li $0, 0x29 - - - .word 0 - .word 0 - - diff --git a/iop/kernel/src/thevent.s b/iop/kernel/src/thevent.s deleted file mode 100644 index 11edb75ef2f2..000000000000 --- a/iop/kernel/src/thevent.s +++ /dev/null @@ -1,71 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# Event Function Imports. -*/ - - .text - .set noreorder - - - .local thevent_stub -thevent_stub: - .word 0x41e00000 - .word 0 - .word 0x00000101 - .ascii "thevent\0" - .align 2 - - .globl CreateEventFlag # 004 -CreateEventFlag: - j $31 - li $0, 0x04 - - .globl DeleteEventFlag -DeleteEventFlag: - j $31 - li $0, 0x05 - - .globl SetEventFlag # 006 -SetEventFlag: - j $31 - li $0, 0x06 - - .globl iSetEventFlag # 007 -iSetEventFlag: - j $31 - li $0, 0x07 - - .globl ClearEventFlag # 008 -ClearEventFlag: - j $31 - li $0, 0x08 - - .globl iClearEventFlag # 009 -iClearEventFlag: - j $31 - li $0, 0x09 - - .globl WaitEventFlag # 00A -WaitEventFlag: - j $31 - li $0, 0x0A - - .word 0 - .word 0 - - .globl ReferEventFlagStatus # 00D -ReferEventFlagStatus: - j $31 - li $0, 0x0D - - .globl iReferEventFlagStatus # 00E -iReferEventFlagStatus: - j $31 - li $0, 0x0E diff --git a/iop/kernel/src/thsemap.s b/iop/kernel/src/thsemap.s deleted file mode 100644 index 93f6ef34c2fa..000000000000 --- a/iop/kernel/src/thsemap.s +++ /dev/null @@ -1,72 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# -# Semaphore Function Imports. -*/ - - .text - .set noreorder - - -/* ############################### THSEMAP STUB ####### */ -/* # Added by Oobles, 5th March 2002 # */ - - .local thsemap_stub -thsemap_stub: - .word 0x41e00000 - .word 0 - .word 0x00000101 - .ascii "thsemap\0" - .align 2 - - .globl CreateSema # 004 -CreateSema: - j $31 - li $0, 4 - - .globl DeleteSema # 005 -DeleteSema: - j $31 - li $0, 5 - - .globl SignalSema # 006 -SignalSema: - j $31 - li $0, 6 - - .globl iSignalSema # 007 -iSignalSema: - j $31 - li $0, 7 - - .globl WaitSema # 008 -WaitSema: - j $31 - li $0, 8 - - .globl PollSema # 009 -PollSema: - j $31 - li $0, 0x09 - - .globl ReferSemaStatus # 00B -ReferSemaStatus: - j $31 - li $0, 0x0B - - .globl iReferSemaStatus # 00C -iReferSemaStatus: - j $31 - li $0, 0x0C - - .word 0 - .word 0 - - diff --git a/iop/kernel/src/timrman.S b/iop/kernel/src/timrman.S deleted file mode 100644 index 1bc0622e9ef3..000000000000 --- a/iop/kernel/src/timrman.S +++ /dev/null @@ -1,50 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# Serial Input Output 2 Manager Functions. -*/ - -#define DECLARE_EXPORT(name, n) \ - .globl name; \ -name: \ - j $31; \ - li $0, n - - .text - .set noreorder - - -/* ############################## TIMRMAN STUB ######## */ -/* # Added by linuzappz, 18th May 2005 # */ - - .local timrman_stub -timrman_stub: - .word 0x41e00000 - .word 0 - .word 0x00000102 - .ascii "timrman\0" - .align 2 - - DECLARE_EXPORT(AllocHardTimer, 4) - DECLARE_EXPORT(ReferHardTimer, 5) - DECLARE_EXPORT(FreeHardTimer, 6) - DECLARE_EXPORT(SetTimerMode, 7) - DECLARE_EXPORT(GetTimerStatus, 8) - DECLARE_EXPORT(SetTimerCounter, 9) - DECLARE_EXPORT(GetTimerCounter, 10) - DECLARE_EXPORT(SetTimerCompare, 11) - DECLARE_EXPORT(GetTimerCompare, 12) - DECLARE_EXPORT(SetHoldMode, 13) - DECLARE_EXPORT(GetHoldMode, 14) - DECLARE_EXPORT(GetHoldReg, 15) - DECLARE_EXPORT(GetHardTimerIntrCode, 16) - - .word 0 - .word 0 - diff --git a/iop/kernel/src/usbd.s b/iop/kernel/src/usbd.s deleted file mode 100644 index 995ae770cc03..000000000000 --- a/iop/kernel/src/usbd.s +++ /dev/null @@ -1,114 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# USB Driver Import functions. -*/ - - .text - .set noreorder - - .local usbd_stub -usbd_stub: # Module Import Information - .word 0x41e00000 # Import Tag - .word 0x00000000 # Minor Version? - .word 0x00000101 # Major Version? - .ascii "usbd\0\0\0\0" # Library ID - .align 2 - - /* initialize USBD.IRX - * Note: UsbInit is automatically called first whenever USBD.IRX is loaded. - * There should never be a need to reinitialize the driver. In fact, it may - * not even work. But I'm providing the function hook anyhow. - */ - .globl UsbInit -UsbInit: - j $31 - li $0, 0x00 - - /* - * These two functions are used to register and unregister device drivers for - * listening for USB bus events. The events are device probe, connect, and disconnect. - */ - - # register a USB device driver - .globl sceUsbdRegisterLdd -sceUsbdRegisterLdd: - j $31 - li $0, 0x04 - - # unregister a USB device driver - .globl sceUsbdUnregisterLdd -sceUsbdUnregisterLdd: - j $31 - li $0, 0x05 - - /* - * This function is used to get the static descriptors for the specific USB - * device. These descriptors identify the device uniquely and help determine - * what type of device we are dealing with, and what its capabilities and - * features are. - */ - .globl sceUsbdScanStaticDescriptor -sceUsbdScanStaticDescriptor: - j $31 - li $0, 0x06 - - /* - * These two functions are used to assign relevant data to a specific device. - * The type of data is entirely up to the caller. For example, a particular - * USB device driver may store configuration data for each specific device - * under its control. - */ - - # set the private data pointer for a device - .globl sceUsbdSetPrivateData -sceUsbdSetPrivateData: - j $31 - li $0, 0x07 - - # get the private data pointer for a device - .globl sceUsbdGetPrivateData -sceUsbdGetPrivateData: - j $31 - li $0, 0x08 - - /* - * This function returns an endpoint ID for the device ID and endpoint descriptor - * passed in. This endpoint ID is then used when transfering data to the device, - * and to close the endpoint. - */ - .globl sceUsbdOpenPipe -sceUsbdOpenPipe: - j $31 - li $0, 0x09 - - # close an endpoint - .globl sceUsbdClosePipe -sceUsbdClosePipe: - j $31 - li $0, 0x0A - - /* - * This function is used for all types of USB data transfers. Which type of - * transfer is determined by the parameters that are passed in. The types are: - * control, isochronous, interrupt, and bulk transfers. More details can be - * found in usbd.h. - */ - .globl sceUsbdTransferPipe -sceUsbdTransferPipe: - j $31 - li $0, 0x0B - - .globl UsbOpenBulkEndpoint -UsbOpenBulkEndpoint: - j $31 - li $0, 0x0C - - .word 0 - .word 0 diff --git a/iop/kernel/src/vblank.s b/iop/kernel/src/vblank.s deleted file mode 100644 index cb2a8b0d39c9..000000000000 --- a/iop/kernel/src/vblank.s +++ /dev/null @@ -1,56 +0,0 @@ -/* -# _____ ___ ____ ___ ____ -# ____| | ____| | | |____| -# | ___| |____ ___| ____| | \ 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. -# -# Vblank Manager Functions. -*/ - - .text - .set noreorder - - -/* ################################ VBLANK STUB ####### */ -/* # Added by Sjeep, 28th March 2002 # */ - - .local vblank_stub -vblank_stub: - .word 0x41e00000 - .word 0 - .word 0x00000101 - .ascii "vblank\0\0" - .align 2 - - .globl WaitVblankStart -WaitVblankStart: - jr $31 - li $0,4 - - .globl WaitVblankEnd -WaitVblankEnd: - jr $31 - li $0,5 - - .globl WaitVblank -WaitVblank: - jr $31 - li $0,6 - - .globl WaitNonVblank -WaitNonVblank: - jr $31 - li $0,7 - - .globl RegisterVblankHandler -RegisterVblankHandler: - jr $31 - li $0,8 - - .globl ReleaseVblankHandler -ReleaseVblankHandler: - jr $31 - li $0,9