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

Function Sync

src/boards/232.cpp:31–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29};
30
31static void Sync(void) {
32// uint32 bbank = (bank & 0x18) >> 1;
33 uint32 bbank = ((bank & 0x10) >> 2) | (bank & 8); // some dumps have bbanks swapped, if swap commands,
34 // then all roms can be played, but with some swapped
35 // games in menu. if not, some dumps are unplayable
36 // make hard dump for both cart types to check
37 setprg16(0x8000, bbank | (preg & 3));
38 setprg16(0xC000, bbank | 3);
39 setchr8(0);
40}
41
42static DECLFW(M232WriteBank) {
43 bank = V;

Callers 3

DECLFWFunction · 0.70
M232PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 2

setprg16Function · 0.85
setchr8Function · 0.85

Tested by

no test coverage detected