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

Function Sync

src/boards/252.cpp:41–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39};
40
41static void Sync(void) {
42 uint8 i;
43 setprg8r(0x10, 0x6000, 0);
44 setprg8(0x8000, preg[0]);
45 setprg8(0xa000, preg[1]);
46 setprg8(0xc000, ~1);
47 setprg8(0xe000, ~0);
48 for (i = 0; i < 8; i++)
49 if ((creg[i] == 6) || (creg[i] == 7))
50 setchr1r(0x10, i << 10, creg[i] & 1);
51 else
52 setchr1(i << 10, creg[i]);
53}
54
55static DECLFW(M252Write) {
56 if ((A >= 0xB000) && (A <= 0xEFFF)) {

Callers 3

DECLFWFunction · 0.70
M252PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 4

setprg8rFunction · 0.85
setprg8Function · 0.85
setchr1rFunction · 0.85
setchr1Function · 0.85

Tested by

no test coverage detected