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

Function Sync

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

Source from the content-addressed store, hash-verified

34};
35
36static void Sync(void) {
37 setchr1(0x0000, reg[0] & 0xfe);
38 setchr1(0x0400, reg[1] | 1);
39 setchr1(0x0800, reg[2] & 0xfe);
40 setchr1(0x0c00, reg[3] | 1);
41 setchr1(0x1000, reg[4]);
42 setchr1(0x1400, reg[5]);
43 setchr1(0x1800, reg[6]);
44 setchr1(0x1c00, reg[7]);
45 setprg8r(0x10, 0x6000, 0);
46 setprg8(0x8000, (reg[0x8] & 0xf) | 0x10);
47 setprg8(0xA000, (reg[0x9] & 0x1f));
48 setprg8(0xC000, (reg[0xa] & 0x1f));
49 setprg8(0xE000, (reg[0xb] & 0xf) | 0x10);
50 setmirror((reg[0xc] & 1) ^ 1);
51}
52
53static DECLFW(M106Write) {
54 A &= 0xF;

Callers 3

DECLFWFunction · 0.70
M106PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 4

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

Tested by

no test coverage detected