src/mess/machine/nes_mmc.c
| r1562 | r1563 | |
| 3098 | 3098 | |
| 3099 | 3099 | chr8( ( offset & 0x38 ) >> 3 ); |
| 3100 | 3100 | |
| 3101 | | ppu2c0x_set_mirroring( 0, ( ( data & 0x02 ) >> 1 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3101 | ppu2c0x_set_mirroring( 0, ( data & 0x02 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3102 | 3102 | } |
| 3103 | 3103 | } |
| 3104 | 3104 | |
| r1562 | r1563 | |
| 3117 | 3117 | prg16_cdef( ( ( offset & 0x0F ) << 1 ) | ( ( offset & 0x20 ) >> 4 ) ); |
| 3118 | 3118 | break; |
| 3119 | 3119 | } |
| 3120 | | ppu2c0x_set_mirroring( 0, ( ( offset >> 7 ) & 0x01 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3120 | ppu2c0x_set_mirroring( 0, ( offset & 0x80 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3121 | 3121 | } |
| 3122 | 3122 | |
| 3123 | static WRITE8_HANDLER( mapper62_w ) |
| 3124 | { |
| 3125 | LOG_MMC(("mapper62_w, offset :%04x, data: %02x\n", offset, data)); |
| 3126 | |
| 3127 | chr8( ( ( offset & 0x1F ) << 2 ) | ( data & 0x03 ) ); |
| 3128 | |
| 3129 | if ( offset & 0x20 ) { |
| 3130 | prg16_89ab( ( offset & 0x40 ) | ( ( offset >> 8 ) & 0x3F ) ); |
| 3131 | prg16_cdef( ( offset & 0x40 ) | ( ( offset >> 8 ) & 0x3F ) ); |
| 3132 | } else { |
| 3133 | prg32( ( ( offset & 0x40 ) | ( ( offset >> 8 ) & 0x3F ) ) >> 1 ); |
| 3134 | } |
| 3135 | |
| 3136 | ppu2c0x_set_mirroring( 0, ( offset & 0x80 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3137 | } |
| 3138 | |
| 3123 | 3139 | static WRITE8_HANDLER( mapper64_m_w ) |
| 3124 | 3140 | { |
| 3125 | 3141 | logerror("mapper64_m_w, offset: %04x, data: %02x\n", offset, data); |
| r1562 | r1563 | |
| 4672 | 4688 | chr8(0); |
| 4673 | 4689 | break; |
| 4674 | 4690 | case 61: |
| 4691 | case 62: |
| 4675 | 4692 | prg32(0); |
| 4676 | 4693 | break; |
| 4677 | 4694 | case 70: |
| r1562 | r1563 | |
| 4822 | 4839 | { 57, "6-in-1", NULL, NULL, NULL, mapper57_w, NULL, NULL, NULL }, |
| 4823 | 4840 | { 58, "X-in-1", NULL, NULL, NULL, mapper58_w, NULL, NULL, NULL }, |
| 4824 | 4841 | { 61, "20-in-1", NULL, NULL, NULL, mapper61_w, NULL, NULL, NULL }, |
| 4842 | { 62, "X-in-1", NULL, NULL, NULL, mapper62_w, NULL, NULL, NULL }, |
| 4825 | 4843 | { 64, "Tengen", NULL, NULL, mapper64_m_w, mapper64_w, NULL, NULL, mapper4_irq }, |
| 4826 | 4844 | { 65, "Irem H3001", NULL, NULL, NULL, mapper65_w, NULL, NULL, irem_irq }, |
| 4827 | 4845 | { 66, "74161/32 Jaleco", NULL, NULL, NULL, mapper66_w, NULL, NULL, NULL }, |