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

Function Sync

src/boards/69.cpp:41–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39};
40
41static void Sync(void) {
42 uint8 i;
43 if ((preg[3] & 0xC0) == 0xC0)
44 setprg8r(0x10, 0x6000, preg[3] & 0x3F);
45 else
46 setprg8(0x6000, preg[3] & 0x3F);
47 setprg8(0x8000, preg[0]);
48 setprg8(0xA000, preg[1]);
49 setprg8(0xC000, preg[2]);
50 setprg8(0xE000, ~0);
51 for (i = 0; i < 8; i++)
52 setchr1(i << 10, creg[i]);
53 switch (mirr & 3) {
54 case 0: setmirror(MI_V); break;
55 case 1: setmirror(MI_H); break;
56 case 2: setmirror(MI_0); break;
57 case 3: setmirror(MI_1); break;
58 }
59}
60
61static DECLFW(M69WRAMWrite) {
62 if ((preg[3] & 0xC0) == 0xC0)

Callers 3

DECLFWFunction · 0.70
M69PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 4

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

Tested by

no test coverage detected