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

Function M68NTfix

src/boards/68.cpp:41–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39};
40
41static void M68NTfix(void) {
42 if ((!UNIFchrrama) && (mirr & 0x10)) {
43 PPUNTARAM = 0;
44 switch (mirr & 3) {
45 case 0:
46 vnapage[0] = vnapage[2] = CHRptr[0] + (((nt1 | 128) & CHRmask1[0]) << 10);
47 vnapage[1] = vnapage[3] = CHRptr[0] + (((nt2 | 128) & CHRmask1[0]) << 10);
48 break;
49 case 1:
50 vnapage[0] = vnapage[1] = CHRptr[0] + (((nt1 | 128) & CHRmask1[0]) << 10);
51 vnapage[2] = vnapage[3] = CHRptr[0] + (((nt2 | 128) & CHRmask1[0]) << 10);
52 break;
53 case 2:
54 vnapage[0] = vnapage[1] = vnapage[2] = vnapage[3] = CHRptr[0] + (((nt1 | 128) & CHRmask1[0]) << 10);
55 break;
56 case 3:
57 vnapage[0] = vnapage[1] = vnapage[2] = vnapage[3] = CHRptr[0] + (((nt2 | 128) & CHRmask1[0]) << 10);
58 break;
59 }
60 } else
61 switch (mirr & 3) {
62 case 0: setmirror(MI_V); break;
63 case 1: setmirror(MI_H); break;
64 case 2: setmirror(MI_0); break;
65 case 3: setmirror(MI_1); break;
66 }
67}
68
69static void Sync(void) {
70 setchr2(0x0000, chr_reg[0]);

Callers 3

DECLFWFunction · 0.85
M68PowerFunction · 0.85
StateRestoreFunction · 0.85

Calls 1

setmirrorFunction · 0.85

Tested by

no test coverage detected