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

Function Sync

src/boards/112.cpp:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37};
38
39static void Sync(void) {
40 setmirror(mirror ^ 1);
41 setprg8(0x8000, reg[0]);
42 setprg8(0xA000, reg[1]);
43 setchr2(0x0000, (reg[2] >> 1));
44 setchr2(0x0800, (reg[3] >> 1));
45 setchr1(0x1000, ((bank & 0x10) << 4) | reg[4]);
46 setchr1(0x1400, ((bank & 0x20) << 3) | reg[5]);
47 setchr1(0x1800, ((bank & 0x40) << 2) | reg[6]);
48 setchr1(0x1C00, ((bank & 0x80) << 1) | reg[7]);
49}
50
51static DECLFW(M112Write) {
52 switch (A) {

Callers 2

DECLFWFunction · 0.70
StateRestoreFunction · 0.70

Calls 4

setmirrorFunction · 0.85
setprg8Function · 0.85
setchr2Function · 0.85
setchr1Function · 0.85

Tested by

no test coverage detected