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

Function SetWriteHandler

src/fceu.cpp:345–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345void SetWriteHandler(int32 start, int32 end, writefunc func) {
346 int32 x;
347
348 if (!func)
349 func = BNull;
350
351 if (RWWrap)
352 for (x = end; x >= start; x--) {
353 if (x >= 0x8000)
354 BWriteG[x - 0x8000] = func;
355 else
356 BWrite[x] = func;
357 }
358 else
359 for (x = end; x >= start; x--)
360 BWrite[x] = func;
361}
362
363uint8 *RAM;
364

Callers 15

PowerNESFunction · 0.85
FDSInitFunction · 0.85
FDS_ESIFunction · 0.85
NSF_initFunction · 0.85
InitializeInputFunction · 0.85
FCEU_VSUniPowerFunction · 0.85
SetNESSoundMapFunction · 0.85
FCEU_GeniePowerFunction · 0.85
HP898FPowerFunction · 0.85
UNLBMW8544PowerFunction · 0.85
M112PowerFunction · 0.85
M79PowerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected