mirror of https://github.com/PCSX2/pcsx2.git
72 lines
1.2 KiB
ArmAsm
72 lines
1.2 KiB
ArmAsm
|
/*
|
||
|
_____ ___ ____
|
||
|
____| | ____| PSX2 OpenSource Project
|
||
|
| ___| |____ (C)2001, Gustavo Scotti (gustavo@scotti.com)
|
||
|
------------------------------------------------------------------------
|
||
|
iop_sysmem.s Memory Function import list.
|
||
|
taken from .irx files with symbol table.
|
||
|
*/
|
||
|
|
||
|
.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
|
||
|
|
||
|
|