blob: 4a787d1ff2940106f2bc5e2bb6fd36f62992d7ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- src/sdl/debugger.cpp.orig 2007-10-04 01:11:33.000000000 +0200
+++ src/sdl/debugger.cpp 2007-10-04 01:12:22.000000000 +0200
@@ -950,9 +950,9 @@
{
u32 address = 0;
if(mem >= (u32*)&workRAM[0] && mem <= (u32*)&workRAM[0x3ffff])
- address = 0x2000000 + ((u32)mem - (u32)&workRAM[0]);
+ address = 0x2000000 + (u32)((u8 *)mem - &workRAM[0]);
else
- address = 0x3000000 + ((u32)mem - (u32)&internalRAM[0]);
+ address = 0x3000000 + (u32)((u8 *)mem - &internalRAM[0]);
if(size == 2)
printf("Breakpoint (on write) address %08x old:%08x new:%08x\n",
|