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

Function READPAL_MOTHEROFALL

src/ppu.cpp:386–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384uint8* MMC5BGVRAMADR(uint32 A);
385
386uint8 READPAL_MOTHEROFALL(uint32 A)
387{
388 if(!(A & 3)) {
389 if(!(A & 0xC))
390 return READPAL(0x00);
391 else
392 return READUPAL(((A & 0xC) >> 2) - 1);
393 }
394 else
395 return READPAL(A & 0x1F);
396}
397
398//this duplicates logic which is embedded in the ppu rendering code
399//which figures out where to get CHR data from depending on various hack modes

Callers 7

FCEUX_PPU_LoopFunction · 0.85
GetMemViewDataFunction · 0.85
MemViewCallBFunction · 0.85
getPPUFunction · 0.85
getPPUFunction · 0.85
getPPUFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected