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

Function Sync

src/boards/n625092.cpp:36–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34};
35
36static void Sync(void) {
37 setmirror((cmd & 1) ^ 1);
38 setchr8(0);
39 if (cmd & 2) {
40 if (cmd & 0x100) {
41 setprg16(0x8000, ((cmd & 0xfc) >> 2) | bank);
42 setprg16(0xC000, ((cmd & 0xfc) >> 2) | 7);
43 } else {
44 setprg16(0x8000, ((cmd & 0xfc) >> 2) | (bank & 6));
45 setprg16(0xC000, ((cmd & 0xfc) >> 2) | ((bank & 6) | 1));
46 }
47 } else {
48 setprg16(0x8000, ((cmd & 0xfc) >> 2) | bank);
49 setprg16(0xC000, ((cmd & 0xfc) >> 2) | bank);
50 }
51}
52
53static uint16 ass = 0;
54

Callers 3

DECLFWFunction · 0.70
UNLN625092PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 3

setmirrorFunction · 0.85
setchr8Function · 0.85
setprg16Function · 0.85

Tested by

no test coverage detected