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

Function Sync

src/boards/103.cpp:35–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33};
34
35static void Sync(void) {
36 setchr8(0);
37 setprg8(0x8000, 0xc);
38 setprg8(0xe000, 0xf);
39 if (reg2 & 0x10) {
40 setprg8(0x6000, reg0);
41 setprg8(0xa000, 0xd);
42 setprg8(0xc000, 0xe);
43 } else {
44 setprg8r(0x10, 0x6000, 0);
45 setprg4(0xa000, (0xd << 1));
46 setprg2(0xb000, (0xd << 2) + 2);
47 setprg2r(0x10, 0xb800, 4);
48 setprg2r(0x10, 0xc000, 5);
49 setprg2r(0x10, 0xc800, 6);
50 setprg2r(0x10, 0xd000, 7);
51 setprg2(0xd800, (0xe << 2) + 3);
52 }
53 setmirror(reg1 ^ 1);
54}
55
56static DECLFW(M103RamWrite0) {
57 WRAM[A & 0x1FFF] = V;

Callers 3

DECLFWFunction · 0.70
M103PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 7

setchr8Function · 0.85
setprg8Function · 0.85
setprg8rFunction · 0.85
setprg4Function · 0.85
setprg2Function · 0.85
setprg2rFunction · 0.85
setmirrorFunction · 0.85

Tested by

no test coverage detected