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

Function iNES_ExecPower

src/ines.cpp:75–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static void iNES_ExecPower() {
76 if (CHRRAMSize != -1)
77 FCEU_MemoryRand(VROM, CHRRAMSize);
78
79 if (iNESCart.Power)
80 iNESCart.Power();
81
82 if (trainerpoo) {
83 int x;
84 for (x = 0; x < 512; x++) {
85 X6502_DMW(0x7000 + x, trainerpoo[x]);
86 if (X6502_DMR(0x7000 + x) != trainerpoo[x]) {
87 SetReadHandler(0x7000, 0x71FF, TrainerRead);
88 break;
89 }
90 }
91 }
92}
93
94void iNESGI(GI h) { //bbit edited: removed static keyword
95 switch (h) {

Callers 1

iNESGIFunction · 0.85

Calls 5

FCEU_MemoryRandFunction · 0.85
X6502_DMWFunction · 0.85
X6502_DMRFunction · 0.85
SetReadHandlerFunction · 0.85
PowerMethod · 0.45

Tested by

no test coverage detected