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
32 lines
444 B
C
32 lines
444 B
C
|
|
#include <tamtypes.h>
|
|
#include <stdio.h>
|
|
#include <kernel.h>
|
|
|
|
|
|
void __putc(u8 c) {
|
|
while (*((u32*)0x1000f130) & 0x8000) { __asm__ ("nop\nnop\nnop\n"); }
|
|
|
|
*((u8*)0x1000f180) = c;
|
|
}
|
|
|
|
void __puts(u8 *s) {
|
|
while (*s != 0) {
|
|
__putc(*s++);
|
|
}
|
|
}
|
|
|
|
int __printf(const char *format, ...) {
|
|
char buf[4096];
|
|
va_list args;
|
|
int ret;
|
|
|
|
va_start(args, format);
|
|
ret = vsnprintf(buf, 4096, format, args);
|
|
va_end(args);
|
|
|
|
__puts(buf);
|
|
return ret;
|
|
}
|
|
|