MCPcopy Create free account
hub / github.com/TASEmulators/fceux / GetNesFileAddress

Function GetNesFileAddress

src/debug.cpp:302–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302int GetNesFileAddress(int A){
303 int result;
304 if((A < 0x6000) || (A > 0xFFFF))return -1;
305 result = &Page[A>>11][A]-PRGptr[0];
306 if((result > (int)(PRGsize[0])) || (result < 0))return -1;
307 else return result+NES_HEADER_SIZE; //16 bytes for the header remember
308}
309
310int GetRomAddress(int A){
311 int i;

Callers 15

getBankFunction · 0.85
breakpointFunction · 0.85
MemViewCallBFunction · 0.85
DisassembleFunction · 0.85
AssemblerCallBFunction · 0.85
PatcherCallBFunction · 0.85
DebuggerCallBFunction · 0.85
contextMenuEventMethod · 0.85
asmViewCtxMenuAddBPMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected