| 35 | }; |
| 36 | |
| 37 | static void Sync(void) { |
| 38 | setprg8(0x8000, prgreg[0]); |
| 39 | setprg8(0xa000, prgreg[1]); |
| 40 | setprg8(0xc000, prgreg[2]); |
| 41 | setprg8(0xe000, prgreg[3]); |
| 42 | int i; |
| 43 | for (i = 0; i < 8; i++) |
| 44 | setchr1(i << 10, chrreg[i]); |
| 45 | setmirror(mirror ^ 1); |
| 46 | } |
| 47 | |
| 48 | static DECLFW(M117Write) { |
| 49 | if (A < 0x8004) { |