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

Function Sync

src/boards/tengen.cpp:64–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static void Sync(void) {
65 if (cmd & 0x20) {
66 setchr1(0x0000, regs[0]);
67 setchr1(0x0400, regs[8]);
68 setchr1(0x0800, regs[1]);
69 setchr1(0x0C00, regs[9]);
70 } else {
71 setchr2(0x0000, regs[0] >> 1);
72 setchr2(0x0800, regs[1] >> 1);
73 }
74 setchr1(0x1000, regs[2]);
75 setchr1(0x1400, regs[3]);
76 setchr1(0x1800, regs[4]);
77 setchr1(0x1C00, regs[5]);
78 setprg8(0x8000, regs[6]);
79 setprg8(0xA000, regs[7]);
80 setprg8(0xC000, regs[10]);
81 setprg8(0xE000, ~0);
82 setmirror(mirr);
83}
84
85static DECLFW(M64Write) {
86 switch (A & 0xF001) {

Callers 3

DECLFWFunction · 0.70
M64PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 4

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

Tested by

no test coverage detected