gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Watching memory for a specific value

#73642 - sgeos - Mon Feb 27, 2006 4:28 am

Is there any way I can set up an emulator to notify me when say 0x02003E24 becomes the value 0xCB?

EDIT: I'm willing to drop VBA into another program that watches memory if need be.

-Brendan

#73649 - poslundc - Mon Feb 27, 2006 5:41 am

Do you have access to No$GBA and its memory breakpoints?

I can't think of a straightforward way to do it using VBA.

Dan.

#73657 - sgeos - Mon Feb 27, 2006 6:08 am

poslundc wrote:
Do you have access to No$GBA and its memory breakpoints?

I doubt it. If the free download can handle the equivalent of commercial ROMs- and I'm fairly sure it can't, then I don't have access to No$GBA and its memory breakpoints.

-Brendan

#73691 - nmain - Mon Feb 27, 2006 2:27 pm

sgeos wrote:
poslundc wrote:
Do you have access to No$GBA and its memory breakpoints?

I doubt it. If the free download can handle the equivalent of commercial ROMs- and I'm fairly sure it can't, then I don't have access to No$GBA and its memory breakpoints.

-Brendan


Not sure what you mean there, no$gba is as accurate if not more accurate than vba, the problem is of course that the debugging equipped version is not free..

#73770 - sgeos - Tue Feb 28, 2006 1:51 am

nmain wrote:
no$gba is as [...] accurate [as] vba, [but] the debugging equipped version is not free..

In which case it's not appropriate for my problem.

-Brendan

#73819 - SeanMon - Tue Feb 28, 2006 6:15 am

VBA supports the gdb (Gnu DeBugger) to allow debugging of running gba games. I haven't used it in this way though.
_________________
null

#73822 - gauauu - Tue Feb 28, 2006 6:49 am

although I've never heard many success stories of using it. Maybe somebody out there is using it successfully, but as often as not, it doesn't work correctly.

#73824 - gladius - Tue Feb 28, 2006 6:53 am

You can do something like this in gdb, however the syntax is abysmal as usual. I can't remember the syntax, but the VBA homepage has instructions for hooking the SDL version of VBA up to Insight (graphical GDB). I used this setup very effectively when debugging GBA problems.

(Edit: Just wanted to note that this was a success story - I debugged the dynamic recompiler core for the SPC emulator using VBA+Insight ;).

#73951 - nmain - Wed Mar 01, 2006 3:04 am

sgeos wrote:
nmain wrote:
no$gba is as [...] accurate [as] vba, [but] the debugging equipped version is not free..

In which case it's not appropriate for my problem.

-Brendan


*shrug*

If you can't spend $15 on tools for your project, then that's no reason to slander the accuracy of an emulator, is it?

#73979 - keldon - Wed Mar 01, 2006 9:20 am

I remember using the no$gmb debugger. It was very useful; and more than worth the money.

#73988 - sgeos - Wed Mar 01, 2006 12:46 pm

nmain wrote:
If you can't spend $15 on tools for your project,
I'd love to have an opportunity to use no$gba. Maybe next time. I needed something immediately, so I managed with a brute force visual check. (VBA memory viewer on auto update).

nmain wrote:
then that's no reason to slander the accuracy of an emulator, is it?
I'm not in a position to slander emulators. Which emulator did I come across as slandering?

-Brendan