aboutsummaryrefslogtreecommitdiff
path: root/NDS.cpp
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-02-03 16:57:31 +0100
committerStapleButter <thetotalworm@gmail.com>2017-02-03 16:57:31 +0100
commitf4335b92927ec3ba0eb3675eb1c4a5c80bb0a05d (patch)
treec38d271abf37386fcf872f11c81b9d254e247804 /NDS.cpp
parent7e9972e0378ca7a5499d16511f3a3b169d6a62e1 (diff)
better save support. not hardcoded filename, support for non-tiny EEPROM and Flash, attempt at autodetecting the right memory type.
Diffstat (limited to 'NDS.cpp')
-rw-r--r--NDS.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/NDS.cpp b/NDS.cpp
index 413409a..cd6fd8c 100644
--- a/NDS.cpp
+++ b/NDS.cpp
@@ -411,7 +411,6 @@ void ReleaseKey(u32 key)
void TouchScreen(u16 x, u16 y)
{
SPI_TSC::SetTouchCoords(x, y);
- printf("touching %d,%d\n", x, y);
}
void ReleaseScreen()
@@ -703,8 +702,8 @@ void StartSqrt()
void debug(u32 param)
{
- printf("ARM9 PC=%08X %08X\n", ARM9->R[15], ARM9->R_IRQ[1]);
- printf("ARM7 PC=%08X %08X\n", ARM7->R[15], ARM7->R_IRQ[1]);
+ 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]);
}
@@ -807,7 +806,7 @@ u16 ARM9Read16(u32 addr)
return 0xFFFF;
}
- printf("unknown arm9 read16 %08X\n", addr);
+ printf("unknown arm9 read16 %08X %08X %08X %08X\n", addr, ARM9->R[15], ARM9->R[1], ARM9->R[2]);
return 0;
}