slap some comments on the memory scanning thing that i committed yesterday

This commit is contained in:
goyuken 2013-12-20 16:41:21 +00:00
parent 1f4ff7b1ce
commit f5c69f279c
2 changed files with 16 additions and 0 deletions
BizHawk.Client.EmuHawk/tools/Genesis
BizHawk.Emulation.Cores/Consoles/Sega/gpgx

View File

@ -10,6 +10,7 @@ using BizHawk.Emulation.Cores.Consoles.Sega.gpgx;
namespace BizHawk.Client.EmuHawk.tools.Genesis
{
// see GenDbgHlp.cs for a general overview of this
public partial class GenDbgWind : Form
{
GenDbgHlp dbg;

View File

@ -7,6 +7,21 @@ using System.IO;
namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
{
/*
* how to use:
* 1) set modulename to the name of the dll file.
* 2) set symbolname to the name of a file that you produced by executing the following command:
* pdb_print_gvars.py [module pdb file] 0x00000000 > [output file]
* 3) set start to an address (relative to the beginning of the dll) to start scanning
* 4) set length to the byte length of the scan area
* 5) instantiate a GenDbWind, and use it to control the scanner while you manipulate the dll into various configurations.
*
* ideas for modification:
* 1) unhardcode config parameters and allow modifying them through the interface
* 2) read section sizes and positions from the dll itself instead of the start\length params
* 3) support an ignore list of symbols
*/
public class GenDbgHlp : IDisposable
{
private static class Win32