mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-23 10:19:10 +00:00
6ebfae8ef1
Added interface.cpp (plugin/pcsx2 interface) and savestate.cpp to SPU2ghz, to help clean up SPU2.cpp. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@463 96395faa-99c1-11dd-bbfe-3dabce05a288
31 lines
525 B
C
31 lines
525 B
C
#include <tamtypes.h>
|
|
void eestart() __attribute__ ((noreturn));
|
|
void iopstart() __attribute__ ((noreturn));
|
|
|
|
__asm__ (
|
|
".org 0\n"
|
|
".set noat\n"
|
|
|
|
".global _start\n"
|
|
"_start:\n"
|
|
"mfc0 $at, $15\n"
|
|
"sltiu $at, 0x59\n"
|
|
"bne $at, $0, __iopstart\n"
|
|
"j eestart\n"
|
|
"nop\n"
|
|
"__iopstart:\n"
|
|
"j iopstart\n"
|
|
"nop\n");
|
|
|
|
|
|
/*
|
|
void _start() __attribute__ ((noreturn));
|
|
void _start() {
|
|
register unsigned long PRid;
|
|
|
|
__asm__ ("mfc0 %0, $15" : "=r"(PRid) : );
|
|
if (PRid >= 0x59) eestart();
|
|
else iopstart();
|
|
}*/
|
|
|