• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 561 562 563 564 565 ... 1198 Next »

[SOLVED] Recompiling Dolphin to set memory read breakpoint
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[SOLVED] Recompiling Dolphin to set memory read breakpoint
06-08-2014, 11:03 PM
#3
Dashman
Unregistered
 
(06-08-2014, 09:42 AM)RachelB Wrote: MemmapFunctions.cpp?

Oh, silly me, I tried looking for "Memory" and didn't find it. Thanks.

I've added this code at the beginning of ReadFromHardware:

// Alert when reading the S character in SRW GC:
if (em_address == 0x8081eba0 || em_address == 0x0081baa0) // Beginning of font block
CCPU::Break();
else if (em_address == 0x808b1ed4 || em_address == 0x008aedd4) // Beginning of font file
CCPU::Break();
else if (em_address == 0x808b3128 || em_address == 0x008b0028) // Beginning of character block
CCPU::Break();
else if (em_address == 0x808b312a || em_address == 0x008b002a) // Beginning of character tile
CCPU::Break();

But I don't get any breaks. I'm positive the font is being read from these addresses because corrupted data is shown on screen. What could I be doing wrong?


EDIT:
We figured it out. The breakpoints only activate if the emulator is running in interpreter mode (JIT -> Interpreter core). The previous addresses didin't trigger it for some reason though, this line did:

if (em_address == 0x80819782 || em_address == 0x00816682) // Beginning of first dialogue
CCPU::Break();

We ran the game until the part before the first dialogue was used in normal mode, turned on interpreter mode and the break was triggered when we entered the scene.

Hopefully somebody else finds this useful.
Reply
« Next Oldest | Next Newest »


Messages In This Thread
[SOLVED] Recompiling Dolphin to set memory read breakpoint - Dashman - 06-08-2014, 09:07 AM
RE: Recompiling Dolphin to set memory read breakpoint - RachelB - 06-08-2014, 09:42 AM
RE: Recompiling Dolphin to set memory read breakpoint - Dashman - 06-08-2014, 11:03 PM
RE: [SOLVED] Recompiling Dolphin to set memory read breakpoint - skid - 06-09-2014, 11:25 AM
RE: [SOLVED] Recompiling Dolphin to set memory read breakpoint - Dashman - 06-10-2014, 07:40 AM
RE: [SOLVED] Recompiling Dolphin to set memory read breakpoint - skid - 06-10-2014, 09:14 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode