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

Function generateNLFilenameForAddress

src/drivers/win/debuggersp.cpp:657–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657char* generateNLFilenameForAddress(uint16 address)
658{
659 if (address < 0x8000)
660 {
661 // The NL file for the RAM addresses has the name nesrom.nes.ram.nl
662 strcpy(NLfilename, mass_replace(LoadedRomFName, "|", ".").c_str());
663 strcat(NLfilename, ".ram.nl");
664 } else
665 {
666 int bank = getBank(address);
667 #ifdef DW3_NL_0F_1F_HACK
668 if(bank == 0x0F)
669 bank = 0x1F;
670 #endif
671 sprintf(NLfilename, "%s.%X.nl", mass_replace(LoadedRomFName, "|", ".").c_str(), bank);
672 }
673 return NLfilename;
674}
675static int getBankIndexForAddress(uint16 address)
676{
677 int bank = -1;

Callers 3

loadNameFilesFunction · 0.70
SymbolicNamingCallBFunction · 0.70
setAddrMethod · 0.50

Calls 2

mass_replaceFunction · 0.85
getBankFunction · 0.85

Tested by

no test coverage detected