/[pcsx2_0.9.7]/trunk/fps2bios/kernel/eeload/eedebug.c
ViewVC logotype

Contents of /trunk/fps2bios/kernel/eeload/eedebug.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (show annotations) (download)
Mon Sep 6 11:40:06 2010 UTC (9 years, 5 months ago) by william
File MIME type: text/plain
File size: 475 byte(s)
exported r3113 from ./upstream/trunk
1
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