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

Function Sync

src/boards/32.cpp:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34};
35
36static void Sync(void) {
37 uint16 swap = ((mirr & 2) << 13);
38 setmirror((mirr & 1) ^ 1);
39 setprg8r(0x10, 0x6000, 0);
40 setprg8(0x8000 ^ swap, preg[0]);
41 setprg8(0xA000, preg[1]);
42 setprg8(0xC000 ^ swap, ~1);
43 setprg8(0xE000, ~0);
44 uint8 i;
45 for (i = 0; i < 8; i++)
46 setchr1(i << 10, creg[i]);
47}
48
49static DECLFW(M32Write0) {
50 preg[0] = V;

Callers 3

DECLFWFunction · 0.70
M32PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 4

setmirrorFunction · 0.85
setprg8rFunction · 0.85
setprg8Function · 0.85
setchr1Function · 0.85

Tested by

no test coverage detected