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

Function Sync

src/boards/67.cpp:40–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38};
39
40static void Sync(void) {
41 setmirror(mirr);
42 setprg16(0x8000, preg);
43 setprg16(0xC000, ~0);
44 setchr2(0x0000, creg[0]);
45 setchr2(0x0800, creg[1]);
46 setchr2(0x1000, creg[2]);
47 setchr2(0x1800, creg[3]);
48 switch (mirr) {
49 case 0: setmirror(MI_V); break;
50 case 1: setmirror(MI_H); break;
51 case 2: setmirror(MI_0); break;
52 case 3: setmirror(MI_1); break;
53 }
54}
55
56static DECLFW(M67Write) {
57 switch (A & 0xF800) {

Callers 3

DECLFWFunction · 0.70
M67PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 3

setmirrorFunction · 0.85
setprg16Function · 0.85
setchr2Function · 0.85

Tested by

no test coverage detected