psxmode: kernel TTY (printf)

This commit is contained in:
Robert Neumann 2016-09-29 19:02:57 +02:00
parent e511265cc9
commit a6eb615431
2 changed files with 7 additions and 3 deletions

View File

@ -16,6 +16,7 @@
#include "PrecompiledHeader.h"
#include "IopCommon.h"
#include "ps2/pgif.h" // for PSX kernel TTY in iopMemWrite32
uptr *psxMemWLUT = NULL;
const uptr *psxMemRLUT = NULL;
@ -488,4 +489,7 @@ void __fastcall iopMemWrite32(u32 mem, u32 value)
}
}
}
if (mem == 0x000085CC)
kernelTTYFileDescrWrite(mem, value);
}

View File

@ -1015,7 +1015,7 @@ u8 psExp2R8(u32 mem)
return 0xFF;
}
int flgint = 0;
//int flgint = 0;
char strb[200] = {0};
void kernelTTYFileDescrWrite(u32 mem, u32 data)
@ -1041,12 +1041,12 @@ void kernelTTYFileDescrWrite(u32 mem, u32 data)
strcat(strb, stra);
if ((stra[strlen(stra) - 1] == 0xA) || (stra[strlen(stra) - 1] == 0xD) || (stra[strlen(stra) - 2] == 0xA) || (stra[strlen(stra) - 2] == 0xD)) {
Console.WriteLn(">%s<", strb);
if (strcmp(strb, "VSync") == 0)
/* if (strcmp(strb, "VSync") == 0)
flgint ^= 1;
if (strncmp(strb, "Execute", 5) == 0) {
Console.WriteLn(" ###EXecute was just printed####");
doAnyIopLs = 1;
}
}*/
strb[0] = 0;
}
}