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

Function BANKSET

src/nsf.cpp:165–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163// First 32KB is reserved for sound chip emulation in the iNES mapper code.
164
165static INLINE void BANKSET(uint32 A, uint32 bank)
166{
167 bank&=NSFMaxBank;
168 if(NSFHeader.SoundChip&4)
169 memcpy(ExWRAM+(A-0x6000),NSFDATA+(bank<<12),4096);
170 else
171 setprg4(A,bank);
172}
173
174int NSFLoad(const char *name, FCEUFILE *fp)
175{

Callers 3

NSF_initFunction · 0.85
DECLFWFunction · 0.85
DECLFRFunction · 0.85

Calls 1

setprg4Function · 0.85

Tested by

no test coverage detected