remove some debug crap
This commit is contained in:
parent
af62c99124
commit
1dbe69c6be
|
@ -570,8 +570,6 @@ void ARMv5::Execute()
|
|||
// actually execute
|
||||
u32 icode = (CurInstr >> 6) & 0x3FF;
|
||||
ARMInterpreter::THUMBInstrTable[icode](this);
|
||||
|
||||
if (R[15]==0x0219A6B0) printf("CAM THREAD MSG: %02X %08X -> %08X\n", R[1], R[0], 0x0219A6B6+R[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
13
src/NDS.cpp
13
src/NDS.cpp
|
@ -1811,15 +1811,6 @@ void StartSqrt()
|
|||
|
||||
void debug(u32 param)
|
||||
{
|
||||
if (param==1312)
|
||||
{
|
||||
u32 timer = 0x10000 - (Timers[3].Counter >> 16);
|
||||
timer *= 16;
|
||||
timer += (0x10000 - (Timers[2].Counter >> 16));
|
||||
printf("TIMER=%d (%04X/%04X)\n", timer, (Timers[2].Counter >> 16), (Timers[3].Counter >> 16));
|
||||
return;
|
||||
}
|
||||
|
||||
printf("ARM9 PC=%08X LR=%08X %08X\n", ARM9->R[15], ARM9->R[14], ARM9->R_IRQ[1]);
|
||||
printf("ARM7 PC=%08X LR=%08X %08X\n", ARM7->R[15], ARM7->R[14], ARM7->R_IRQ[1]);
|
||||
|
||||
|
@ -1845,14 +1836,14 @@ void debug(u32 param)
|
|||
fclose(shit);*/
|
||||
|
||||
FILE*
|
||||
shit = fopen("debug/cam9.bin", "wb");
|
||||
shit = fopen("debug/power9.bin", "wb");
|
||||
for (u32 i = 0x02000000; i < 0x04000000; i+=4)
|
||||
{
|
||||
u32 val = DSi::ARM9Read32(i);
|
||||
fwrite(&val, 4, 1, shit);
|
||||
}
|
||||
fclose(shit);
|
||||
shit = fopen("debug/cam7.bin", "wb");
|
||||
shit = fopen("debug/power7.bin", "wb");
|
||||
for (u32 i = 0x02000000; i < 0x04000000; i+=4)
|
||||
{
|
||||
u32 val = DSi::ARM7Read32(i);
|
||||
|
|
|
@ -1324,6 +1324,7 @@ void MainWindow::keyPressEvent(QKeyEvent* event)
|
|||
{
|
||||
if (event->isAutoRepeat()) return;
|
||||
|
||||
// TODO!! REMOVE ME IN RELEASE BUILDS!!
|
||||
if (event->key() == Qt::Key_F11) NDS::debug(0);
|
||||
|
||||
Input::KeyPress(event);
|
||||
|
|
Loading…
Reference in New Issue