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

Function Sync

src/boards/80.cpp:58–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56};
57
58static void Sync(void) {
59 setprg8(0x8000, preg[0]);
60 setprg8(0xA000, preg[1]);
61 setprg8(0xC000, preg[2]);
62 setprg8(0xE000, ~0);
63 setchr2(0x0000, (creg[0] >> 1) & 0x3F);
64 setchr2(0x0800, (creg[1] >> 1) & 0x3F);
65 setchr1(0x1000, creg[2]);
66 setchr1(0x1400, creg[3]);
67 setchr1(0x1800, creg[4]);
68 setchr1(0x1C00, creg[5]);
69 if (isExMirr) {
70 setmirror(MI_0 + mcache[lastppu]);
71 } else
72 setmirror(mirr);
73}
74
75static DECLFW(M80RamWrite) {
76 if(wram_enable == 0xA3)

Callers 5

DECLFWFunction · 0.70
M80PowerFunction · 0.70
M207PowerFunction · 0.70
M95PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 4

setprg8Function · 0.85
setchr2Function · 0.85
setchr1Function · 0.85
setmirrorFunction · 0.85

Tested by

no test coverage detected