/[pcsx2_0.9.7]/branch/debug/0.X/0.9.X/0.9.7/r3113/fps2bios/kernel/start.c
ViewVC logotype

Contents of /branch/debug/0.X/0.9.X/0.9.7/r3113/fps2bios/kernel/start.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 59 - (show annotations) (download)
Tue Sep 7 06:17:51 2010 UTC (10 years, 8 months ago) by william
File MIME type: text/plain
File size: 525 byte(s)
create working branch for pcsx2-0.9.7-r3113-debug
1 #include <tamtypes.h>
2 void eestart() __attribute__ ((noreturn));
3 void iopstart() __attribute__ ((noreturn));
4
5 __asm__ (
6 ".org 0\n"
7 ".set noat\n"
8
9 ".global _start\n"
10 "_start:\n"
11 "mfc0 $at, $15\n"
12 "sltiu $at, 0x59\n"
13 "bne $at, $0, __iopstart\n"
14 "j eestart\n"
15 "nop\n"
16 "__iopstart:\n"
17 "j iopstart\n"
18 "nop\n");
19
20
21 /*
22 void _start() __attribute__ ((noreturn));
23 void _start() {
24 register unsigned long PRid;
25
26 __asm__ ("mfc0 %0, $15" : "=r"(PRid) : );
27 if (PRid >= 0x59) eestart();
28 else iopstart();
29 }*/
30

  ViewVC Help
Powered by ViewVC 1.1.22