Skip to content

Commit

Permalink
Fixed mapper 561 (#375).
Browse files Browse the repository at this point in the history
  • Loading branch information
punesemu committed Mar 3, 2024
1 parent 794c350 commit 71a91a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/mappers/mapper_561.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ INLINE static void prg_fix_561(void) {
memmap_auto_wp_32k(0, MMCPU(0x8000), 0x03, TRUE, wr);
return;
case 6:
memmap_auto_wp_8k(0, MMCPU(0x8000), m561.prg[0], TRUE, wr);
memmap_auto_wp_8k(0, MMCPU(0xA000), m561.prg[1], TRUE, wr);
memmap_auto_wp_8k(0, MMCPU(0x8000), (m561.reg & 0x0F), TRUE, wr);
memmap_auto_wp_8k(0, MMCPU(0xA000), (m561.reg >> 4), TRUE, wr);
memmap_auto_wp_16k(0, MMCPU(0xC000), 0x07, TRUE, wr);
return;
case 7:
memmap_auto_wp_8k(0, MMCPU(0x8000), (m561.prg[0] & 0x0E), TRUE, wr);
memmap_auto_wp_8k(0, MMCPU(0x8000), (m561.reg & 0x0E), TRUE, wr);
memmap_auto_wp_8k(0, MMCPU(0xA000), ((m561.reg >> 4) | 0x01), TRUE, wr);
memmap_auto_wp_16k(0, MMCPU(0xC000), 0x07, TRUE, wr);
return;
Expand Down

0 comments on commit 71a91a9

Please sign in to comment.