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

Function Sync

src/boards/karaoke.cpp:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24static uint8 latche;
25
26static void Sync(void) {
27 if (latche) {
28 if (latche & 0x10)
29 setprg16(0x8000, (latche & 7));
30 else
31 setprg16(0x8000, (latche & 7) | 8);
32 } else
33 setprg16(0x8000, 7 + (ROM_size >> 4));
34}
35
36static DECLFW(M188Write) {
37 latche = V;

Callers 3

DECLFWFunction · 0.70
PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 1

setprg16Function · 0.85

Tested by

no test coverage detected