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

Function Sync

src/boards/vrc7p.cpp:42–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40};
41
42static void Sync(void) {
43 uint8 i;
44 setprg8(0x8000, prg[0]);
45 setprg8(0xa000, prg[1]);
46 setprg8(0xc000, prg[2]);
47 setprg8(0xe000, ~0);
48 for (i = 0; i < 8; i++)
49 setchr1(i << 10, chr[i]);
50 switch (mirr & 3) {
51 case 0: setmirror(MI_V); break;
52 case 1: setmirror(MI_H); break;
53 case 2: setmirror(MI_0); break;
54 case 3: setmirror(MI_1); break;
55 }
56}
57
58static DECLFW(UNLVRC7Write) {
59 switch (A & 0xF008) {

Callers 3

DECLFWFunction · 0.70
UNLVRC7PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 3

setprg8Function · 0.85
setchr1Function · 0.85
setmirrorFunction · 0.85

Tested by

no test coverage detected