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

Function Sync

src/boards/eh8813a.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32};
33
34static void Sync(void) {
35 uint8 prg = (addrlatch & 7);
36 setchr8(datalatch);
37 if(addrlatch & 0x80) {
38 setprg16(0x8000,prg);
39 setprg16(0xC000,prg);
40 } else {
41 setprg32(0x8000,prg >> 1);
42 }
43 setmirror(MI_V);
44}
45
46static DECLFW(EH8813AWrite) {
47 if((addrlatch & 0x100) == 0) {

Callers 4

DECLFWFunction · 0.70
EH8813APowerFunction · 0.70
EH8813AResetFunction · 0.70
StateRestoreFunction · 0.70

Calls 4

setchr8Function · 0.85
setprg16Function · 0.85
setprg32Function · 0.85
setmirrorFunction · 0.85

Tested by

no test coverage detected