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

Function Sync

src/boards/bandai.cpp:250–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250static void Sync(void) {
251 if (is153) {
252 int base = (reg[0] & 1) << 4;
253 setchr8(0);
254 setprg16(0x8000, (reg[8] & 0x0F) | base);
255 setprg16(0xC000, 0x0F | base);
256 } else {
257 int i;
258 for (i = 0; i < 8; i++) setchr1(i << 10, reg[i]);
259 setprg16(0x8000, reg[8]);
260 setprg16(0xC000, ~0);
261 }
262 SyncMirror();
263}
264
265static DECLFW(BandaiWrite) {
266 A &= 0x0F;

Callers 4

DECLFWFunction · 0.70
BandaiPowerFunction · 0.70
StateRestoreFunction · 0.70
M153PowerFunction · 0.70

Calls 4

setchr8Function · 0.85
setprg16Function · 0.85
setchr1Function · 0.85
SyncMirrorFunction · 0.70

Tested by

no test coverage detected