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

Function Sync

src/boards/62.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30};
31
32static void Sync(void) {
33 setchr8(((mode & 0x1F) << 2) | (bank & 0x03));
34 if (mode & 0x20) {
35 setprg16(0x8000, (mode & 0x40) | ((mode >> 8) & 0x3F));
36 setprg16(0xc000, (mode & 0x40) | ((mode >> 8) & 0x3F));
37 } else
38 setprg32(0x8000, ((mode & 0x40) | ((mode >> 8) & 0x3F)) >> 1);
39 setmirror(((mode >> 7) & 1) ^ 1);
40}
41
42static DECLFW(M62Write) {
43 mode = A & 0x3FFF;

Callers 4

DECLFWFunction · 0.70
M62PowerFunction · 0.70
M62ResetFunction · 0.70
StateRestoreFunction · 0.70

Calls 4

setchr8Function · 0.85
setprg16Function · 0.85
setprg32Function · 0.85
setmirrorFunction · 0.85

Tested by

no test coverage detected