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

Function Sync

src/boards/82.cpp:37–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35};
36
37static void Sync(void) {
38 uint32 swap = ((ctrl & 2) << 11);
39 setchr2(0x0000 ^ swap, regs[0] >> 1);
40 setchr2(0x0800 ^ swap, regs[1] >> 1);
41 setchr1(0x1000 ^ swap, regs[2]);
42 setchr1(0x1400 ^ swap, regs[3]);
43 setchr1(0x1800 ^ swap, regs[4]);
44 setchr1(0x1c00 ^ swap, regs[5]);
45 setprg8r(0x10, 0x6000, 0);
46 setprg8(0x8000, regs[6]);
47 setprg8(0xA000, regs[7]);
48 setprg8(0xC000, regs[8]);
49 setprg8(0xE000, ~0);
50 setmirror(ctrl & 1);
51}
52
53static DECLFW(M82Write) {
54 if (A <= 0x7ef5)

Callers 3

DECLFWFunction · 0.70
M82PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 5

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

Tested by

no test coverage detected