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

Annotation of /branch/debug/0.X/0.9.X/0.9.7/r3113/fps2bios/loader/eedebug.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (hide annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (10 years, 10 months ago) by william
Original Path: trunk/fps2bios/loader/eedebug.c
File MIME type: text/plain
File size: 444 byte(s)
committing r3113 initial commit again...
1 william 31
2     #include <tamtypes.h>
3     #include <stdio.h>
4     #include <kernel.h>
5    
6    
7     void __putc(u8 c) {
8     while (*((u32*)0x1000f130) & 0x8000) { __asm__ ("nop\nnop\nnop\n"); }
9    
10     *((u8*)0x1000f180) = c;
11     }
12    
13     void __puts(u8 *s) {
14     while (*s != 0) {
15     __putc(*s++);
16     }
17     }
18    
19     int __printf(const char *format, ...) {
20     char buf[4096];
21     va_list args;
22     int ret;
23    
24     va_start(args, format);
25     ret = vsnprintf(buf, 4096, format, args);
26     va_end(args);
27    
28     __puts(buf);
29     return ret;
30     }
31    

  ViewVC Help
Powered by ViewVC 1.1.22