reducing forced customization of register names to a #define flag, see bug #687
This commit is contained in:
parent
7412d1e1cf
commit
7d323c450a
|
@ -31,7 +31,7 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
int GetNesFileAddress(int A);
|
int GetNesFileAddress(int A);
|
||||||
int RegNameCount;
|
int RegNameCount = 0;
|
||||||
|
|
||||||
inline int RomPageIndexForAddress(int addr) { return (addr-0x8000)>>(debuggerPageSize); }
|
inline int RomPageIndexForAddress(int addr) { return (addr-0x8000)>>(debuggerPageSize); }
|
||||||
|
|
||||||
|
@ -65,6 +65,9 @@ char delimiterChar[2] = "#";
|
||||||
extern BOOL CALLBACK nameBookmarkCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
extern BOOL CALLBACK nameBookmarkCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
extern char bookmarkDescription[];
|
extern char bookmarkDescription[];
|
||||||
|
|
||||||
|
// nonzero to use these predefined register names
|
||||||
|
#define PREDEFINED_REGISTER_NAMES 0
|
||||||
|
|
||||||
MemoryMappedRegister RegNames[] = {
|
MemoryMappedRegister RegNames[] = {
|
||||||
{"$2000", "PPU_CTRL_REG1"},
|
{"$2000", "PPU_CTRL_REG1"},
|
||||||
{"$2001", "PPU_CTRL_REG2"},
|
{"$2001", "PPU_CTRL_REG2"},
|
||||||
|
@ -649,7 +652,9 @@ void setNamesPointerForAddress(uint16 address, Name* newNode)
|
||||||
void loadNameFiles()
|
void loadNameFiles()
|
||||||
{
|
{
|
||||||
int cb;
|
int cb;
|
||||||
|
#if PREDEFINED_REGISTER_NAMES
|
||||||
RegNameCount = sizeof(RegNames)/sizeof(MemoryMappedRegister);
|
RegNameCount = sizeof(RegNames)/sizeof(MemoryMappedRegister);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!ramBankNamesLoaded)
|
if (!ramBankNamesLoaded)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue