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

Function Sync

src/boards/vrc6.cpp:61–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59};
60
61static void Sync(void) {
62 uint8 i;
63 if (is26)
64 setprg8r(0x10, 0x6000, 0);
65 setprg16(0x8000, prg[0]);
66 setprg8(0xc000, prg[1]);
67 setprg8(0xe000, ~0);
68 for (i = 0; i < 8; i++)
69 setchr1(i << 10, chr[i]);
70 switch (mirr & 3) {
71 case 0: setmirror(MI_V); break;
72 case 1: setmirror(MI_H); break;
73 case 2: setmirror(MI_0); break;
74 case 3: setmirror(MI_1); break;
75 }
76}
77
78static DECLFW(VRC6SW) {
79 A &= 0xF003;

Callers 3

DECLFWFunction · 0.70
VRC6PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 5

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

Tested by

no test coverage detected