src/mess/machine/nes_mmc.c
| r1559 | r1560 | |
| 2 | 2 | TODO: |
| 3 | 3 | . 5 has some issues, RAM banking needs hardware flags to determine size |
| 4 | 4 | . 13 needs banked VRAM. -see Videomation |
| 5 | . 45 mapper is not fully working |
| 5 | 6 | . 51 only half of the games work |
| 6 | 7 | . 64 has some IRQ problems - see Skull & Crossbones |
| 7 | 8 | . 67 display issues, but vrom fixed |
| r1559 | r1560 | |
| 3061 | 3062 | mapper51_set_banks(); |
| 3062 | 3063 | } |
| 3063 | 3064 | |
| 3065 | static WRITE8_HANDLER( mapper57_w ) |
| 3066 | { |
| 3067 | LOG_MMC(("mapper57_w, offset: %04x, data: %02x\n", offset, data)); |
| 3068 | |
| 3069 | if ( offset & 0x0800 ) { |
| 3070 | MMC1_bank2 = data; |
| 3071 | } else { |
| 3072 | MMC1_bank1 = data; |
| 3073 | } |
| 3074 | |
| 3075 | if ( MMC1_bank2 & 0x80 ) { |
| 3076 | prg32( 2 | ( MMC1_bank2 >> 6 ) ); |
| 3077 | } else { |
| 3078 | prg16_89ab( ( MMC1_bank2 >> 5 ) & 0x03 ); |
| 3079 | prg16_cdef( ( MMC1_bank2 >> 5 ) & 0x03 ); |
| 3080 | } |
| 3081 | |
| 3082 | ppu2c0x_set_mirroring( 0, ( MMC1_bank2 & 0x08 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3083 | |
| 3084 | chr8( ( MMC1_bank1 & 0x03 ) | ( MMC1_bank2 & 0x07 ) | ( ( MMC1_bank2 & 0x10 ) >> 1 ) ); |
| 3085 | } |
| 3086 | |
| 3064 | 3087 | static WRITE8_HANDLER( mapper64_m_w ) |
| 3065 | 3088 | { |
| 3066 | 3089 | logerror("mapper64_m_w, offset: %04x, data: %02x\n", offset, data); |
| r1559 | r1560 | |
| 4601 | 4624 | MMC1_bank3 = 0x00; |
| 4602 | 4625 | mapper51_set_banks(); |
| 4603 | 4626 | break; |
| 4627 | case 57: |
| 4628 | MMC1_bank1 = 0x00; |
| 4629 | MMC1_bank2 = 0x00; |
| 4630 | prg16_89ab( 0 ); |
| 4631 | prg16_cdef( 0 ); |
| 4632 | chr8(0); |
| 4633 | break; |
| 4604 | 4634 | case 70: |
| 4605 | 4635 | // case 86: |
| 4606 | 4636 | prg16_89ab (nes.prg_chunks-2); |
| r1559 | r1560 | |
| 4746 | 4776 | { 47, "2-in-1 MMC3", NULL, NULL, mapper47_m_w, mapper4_w, NULL, NULL, mapper4_irq }, |
| 4747 | 4777 | { 49, "4-in-1 MMC3", NULL, NULL, mapper49_m_w, mapper4_w, NULL, NULL, mapper4_irq }, |
| 4748 | 4778 | { 51, "11-in-1", NULL, NULL, mapper51_m_w, mapper51_w, NULL, NULL, NULL }, |
| 4779 | { 57, "6-in-1", NULL, NULL, NULL, mapper57_w, NULL, NULL, NULL }, |
| 4749 | 4780 | { 64, "Tengen", NULL, NULL, mapper64_m_w, mapper64_w, NULL, NULL, mapper4_irq }, |
| 4750 | 4781 | { 65, "Irem H3001", NULL, NULL, NULL, mapper65_w, NULL, NULL, irem_irq }, |
| 4751 | 4782 | { 66, "74161/32 Jaleco", NULL, NULL, NULL, mapper66_w, NULL, NULL, NULL }, |