void debuggerBreakOnWrite(u32 *mem, u32 oldvalue, u32 value, int size)
void debuggerBreakOnWrite(u32 address, u32 oldvalue, u32 value, int size, int t)
void debuggerBreakOnWrite(u32 *mem, u32 oldvalue, u32 value, int size){  u32 address = 0;  if(mem >= (u32*)&workRAM[0] && mem <= (u32*)&workRAM[0x3ffff])    address = 0x2000000 + ((u32)mem - (u32)&workRAM[0]);  else    address = 0x3000000 + ((u32)mem - (u32)&internalRAM[0]);  if(size == 2)    printf("Breakpoint (on write) address %08x old:%08x new:%08x\n",            address, oldvalue, value);  else if(size == 1)    printf("Breakpoint (on write) address %08x old:%04x new:%04x\n",            address, (u16)oldvalue,(u16)value);  else    printf("Breakpoint (on write) address %08x old:%02x new:%02x\n",            address, (u8)oldvalue, (u8)value);  debugger = true;}