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

Function Sync

src/boards/bs-5.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32};
33
34static void Sync(void) {
35 setprg8(0x8000, reg_prg[0]);
36 setprg8(0xa000, reg_prg[1]);
37 setprg8(0xc000, reg_prg[2]);
38 setprg8(0xe000, reg_prg[3]);
39 setchr2(0x0000, reg_chr[0]);
40 setchr2(0x0800, reg_chr[1]);
41 setchr2(0x1000, reg_chr[2]);
42 setchr2(0x1800, reg_chr[3]);
43 setmirror(MI_V);
44}
45
46static DECLFW(MBS5Write) {
47 int bank_sel = (A & 0xC00) >> 10;

Callers 4

DECLFWFunction · 0.70
MBS5ResetFunction · 0.70
MBS5PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 3

setprg8Function · 0.85
setchr2Function · 0.85
setmirrorFunction · 0.85

Tested by

no test coverage detected