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

Function Sync

src/boards/18.cpp:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38};
39
40static void Sync(void) {
41 int i;
42 for (i = 0; i < 8; i++) setchr1(i << 10, creg[i]);
43 setprg8r(0x10, 0x6000, 0);
44 setprg8(0x8000, preg[0]);
45 setprg8(0xA000, preg[1]);
46 setprg8(0xC000, preg[2]);
47 setprg8(0xE000, ~0);
48 if (mirr & 2)
49 setmirror(MI_0);
50 else
51 setmirror(mirr & 1);
52}
53
54static DECLFW(M18WriteIRQ) {
55 switch (A & 0xF003) {

Callers 3

DECLFWFunction · 0.70
M18PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 4

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

Tested by

no test coverage detected