notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add disk control interface v1 support
[pcsx_rearmed.git]
/
libpcsxcore
/
psxhle.c
diff --git
a/libpcsxcore/psxhle.c
b/libpcsxcore/psxhle.c
index
83362ec
..
7507192
100644
(file)
--- a/
libpcsxcore/psxhle.c
+++ b/
libpcsxcore/psxhle.c
@@
-23,6
+23,12
@@
#include "psxhle.h"
#include "psxhle.h"
+#if 0
+#define PSXHLE_LOG SysPrintf
+#else
+#define PSXHLE_LOG(...)
+#endif
+
static void hleDummy() {
psxRegs.pc = psxRegs.GPR.n.ra;
static void hleDummy() {
psxRegs.pc = psxRegs.GPR.n.ra;
@@
-54,10
+60,10
@@
static void hleC0() {
}
static void hleBootstrap() { // 0xbfc00000
}
static void hleBootstrap() { // 0xbfc00000
-
SysPrintf
("hleBootstrap\n");
+
PSXHLE_LOG
("hleBootstrap\n");
CheckCdrom();
LoadCdrom();
CheckCdrom();
LoadCdrom();
-
SysPrintf
("CdromLabel: \"%s\": PC = %8.8lx (SP = %8.8lx)\n", CdromLabel, psxRegs.pc, psxRegs.GPR.n.sp);
+
PSXHLE_LOG
("CdromLabel: \"%s\": PC = %8.8lx (SP = %8.8lx)\n", CdromLabel, psxRegs.pc, psxRegs.GPR.n.sp);
}
typedef struct {
}
typedef struct {
@@
-77,7
+83,7
@@
typedef struct {
static void hleExecRet() {
EXEC *header = (EXEC*)PSXM(psxRegs.GPR.n.s0);
static void hleExecRet() {
EXEC *header = (EXEC*)PSXM(psxRegs.GPR.n.s0);
-
SysPrintf
("ExecRet %x: %x\n", psxRegs.GPR.n.s0, header->ret);
+
PSXHLE_LOG
("ExecRet %x: %x\n", psxRegs.GPR.n.s0, header->ret);
psxRegs.GPR.n.ra = header->ret;
psxRegs.GPR.n.sp = header->_sp;
psxRegs.GPR.n.ra = header->ret;
psxRegs.GPR.n.sp = header->_sp;