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

Function Sync

src/boards/mihunche.cpp:31–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29};
30
31static void Sync(void) {
32 setprg32(0x8000, 0);
33 if(CHRsize[0] == 8192) {
34 setchr4(0x0000, latche & 1);
35 setchr4(0x1000, latche & 1);
36 } else {
37 setchr8(latche & 1); // actually, my bad, overdumped roms, the real CHR size if 8K
38 }
39 setmirror(MI_0 + (latche & 1));
40}
41
42static DECLFW(UNLCC21Write1) {
43 latche = A;

Callers 3

DECLFWFunction · 0.70
UNLCC21PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 4

setprg32Function · 0.85
setchr4Function · 0.85
setchr8Function · 0.85
setmirrorFunction · 0.85

Tested by

no test coverage detected