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

Function setpageptr

src/cart.cpp:81–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79CartInfo *currCartInfo;
80
81static INLINE void setpageptr(int s, uint32 A, uint8 *p, int ram) {
82 uint32 AB = A >> 11;
83 int x;
84
85 if (p)
86 for (x = (s >> 1) - 1; x >= 0; x--) {
87 PRGIsRAM[AB + x] = ram;
88 Page[AB + x] = p - A;
89 }
90 else
91 for (x = (s >> 1) - 1; x >= 0; x--) {
92 PRGIsRAM[AB + x] = 0;
93 Page[AB + x] = 0;
94 }
95}
96
97static uint8 nothing[8192];
98void ResetCartMapping(void) {

Callers 5

setprg2rFunction · 0.85
setprg4rFunction · 0.85
setprg8rFunction · 0.85
setprg16rFunction · 0.85
setprg32rFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected