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

Function Sync

src/boards/supervision.cpp:31–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29};
30
31static void Sync(void) {
32 setchr8(0);
33 if (PRGptr[1])
34 setprg8r((cmd0 & 0xC) >> 2, 0x6000, ((cmd0 & 0x3) << 4) | 0xF);
35 else
36 setprg8(0x6000, (((cmd0 & 0xF) << 4) | 0xF) + 4);
37 if (cmd0 & 0x10) {
38 if (PRGptr[1]) {
39 setprg16r((cmd0 & 0xC) >> 2, 0x8000, ((cmd0 & 0x3) << 3) | (cmd1 & 7));
40 setprg16r((cmd0 & 0xC) >> 2, 0xc000, ((cmd0 & 0x3) << 3) | 7);
41 } else {
42 setprg16(0x8000, (((cmd0 & 0xF) << 3) | (cmd1 & 7)) + 2);
43 setprg16(0xc000, (((cmd0 & 0xF) << 3) | 7) + 2);
44 }
45 } else
46 if (PRGptr[4])
47 setprg32r(4, 0x8000, 0);
48 else
49 setprg32(0x8000, 0);
50 setmirror(((cmd0 & 0x20) >> 5) ^ 1);
51}
52
53static DECLFW(SuperWriteLo) {
54 if (!(cmd0 & 0x10)) {

Callers 4

DECLFWFunction · 0.70
SuperPowerFunction · 0.70
SuperResetFunction · 0.70
SuperRestoreFunction · 0.70

Calls 8

setchr8Function · 0.85
setprg8rFunction · 0.85
setprg8Function · 0.85
setprg16rFunction · 0.85
setprg16Function · 0.85
setprg32rFunction · 0.85
setprg32Function · 0.85
setmirrorFunction · 0.85

Tested by

no test coverage detected