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

Function Sync

src/boards/hp898f.cpp:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29};
30
31static void Sync(void) {
32 uint8 chr = (regs[0] >> 4) & 7;
33 uint8 prg = (regs[1] >> 3) & 7;
34 uint8 dec = (regs[1] >> 4) & 4;
35 setchr8(chr & (~(((regs[0] & 1) << 2) | (regs[0] & 2))));
36 setprg16(0x8000,prg & (~dec));
37 setprg16(0xC000,prg | dec);
38 setmirror(regs[1] >> 7);
39}
40
41static DECLFW(HP898FWrite) {
42 if((A & 0x6000) == 0x6000) {

Callers 4

DECLFWFunction · 0.70
HP898FPowerFunction · 0.70
HP898FResetFunction · 0.70
StateRestoreFunction · 0.70

Calls 3

setchr8Function · 0.85
setprg16Function · 0.85
setmirrorFunction · 0.85

Tested by

no test coverage detected