src/mess/machine/nes.c
| r6028 | r6029 | |
| 598 | 598 | logerror("**\n"); |
| 599 | 599 | logerror("Mapper: %d\n", nes.mapper); |
| 600 | 600 | logerror("PRG chunks: %02x, size: %06x\n", nes.prg_chunks, 0x4000 * nes.prg_chunks); |
| 601 | | printf("Mapper: %d\n", nes.mapper); |
| 602 | | printf("PRG chunks: %02x, size: %06x\n", nes.prg_chunks, 0x4000 * nes.prg_chunks); |
| 601 | // printf("Mapper: %d\n", nes.mapper); |
| 602 | // printf("PRG chunks: %02x, size: %06x\n", nes.prg_chunks, 0x4000 * nes.prg_chunks); |
| 603 | 603 | |
| 604 | 604 | /* Read in any chr chunks */ |
| 605 | 605 | if (nes.chr_chunks > 0) |
| r6028 | r6029 | |
| 629 | 629 | |
| 630 | 630 | logerror("CHR chunks: %02x, size: %06x\n", nes.chr_chunks, 0x4000 * nes.chr_chunks); |
| 631 | 631 | logerror("**\n"); |
| 632 | | printf("CHR chunks: %02x, size: %06x\n", nes.chr_chunks, 0x4000 * nes.chr_chunks); |
| 633 | | printf("**\n"); |
| 632 | // printf("CHR chunks: %02x, size: %06x\n", nes.chr_chunks, 0x4000 * nes.chr_chunks); |
| 633 | // printf("**\n"); |
| 634 | 634 | |
| 635 | 635 | /* Attempt to load a battery file for this ROM. If successful, we */ |
| 636 | 636 | /* must wait until later to move it to the system memory. */ |
| r6028 | r6029 | |
| 689 | 689 | /* What kind of chunk do we have here? */ |
| 690 | 690 | if ((magic2[0] == 'M') && (magic2[1] == 'A') && (magic2[2] == 'P') && (magic2[3] == 'R')) |
| 691 | 691 | { |
| 692 | | // int i; |
| 693 | 692 | logerror("[MAPR] chunk found: "); |
| 694 | 693 | image_fread(image, &buffer, 4); |
| 695 | 694 | chunk_length = buffer[0] | (buffer[1] << 8) | (buffer[2] << 16) | (buffer[3] << 24); |
| r6028 | r6029 | |
| 700 | 699 | read_length += (chunk_length + 8); |
| 701 | 700 | |
| 702 | 701 | unif_board = nes_unif_lookup(unif_mapr); |
| 703 | | |
| 704 | | // for(i = 0; i < chunk_length; i++) |
| 705 | | // logerror("%c", unif_mapr[i]); |
| 706 | | // logerror("\n"); |
| 707 | 702 | logerror("%s\n", unif_mapr); |
| 708 | 703 | |
| 709 | 704 | if (unif_board == NULL) |
| r6028 | r6029 | |
| 718 | 713 | nes.chr_chunks = unif_board->chrrom; |
| 719 | 714 | nes.battery = unif_board->wram; // we should implement WRAM banks... |
| 720 | 715 | nes.hard_mirroring = unif_board->nt; |
| 721 | | // nes.four_screen_vram = ; |
| 716 | // nes.four_screen_vram = ; |
| 722 | 717 | |
| 723 | 718 | /* Free the regions that were allocated by the ROM loader */ |
| 724 | 719 | memory_region_free(image->machine, "maincpu"); |
src/mess/machine/nes_mmc.c
| r6028 | r6029 | |
| 25 | 25 | * 000 F1 Race requires more precise PPU timing. It currently has plenty of 1-line glitches. |
| 26 | 26 | * 001 AD&D Hillsfar and Bill & Ted are broken. We need to ignore the case of writes happening on 2 |
| 27 | 27 | consecutive CPU cycles because these games use dirty tricks to reset counters (see note in mapper1_w) |
| 28 | * 001 Yoshi flashes in-game. Zombie Hunter regressed. Rocket Ranger and Back to the Future have heavily corrupted graphics |
| 28 | 29 | * 001, 155 We don't handle (yet) WRAM enable/disable bit |
| 29 | 30 | * 002, 003, 094, 097, 152 Bus conflict? |
| 31 | * 004 Mendel Palace has never worked properly |
| 30 | 32 | * 005 has issues (see e.g. Just Breed or Metal Slader Glory), RAM banking needs hardware flags to determine size |
| 33 | * 007 Marble Madness has small graphics corruptions |
| 31 | 34 | * 014 in-game graphics is glitched |
| 32 | 35 | * 015 Shanghai Tycoon has corrupted graphics |
| 36 | * 025 TMNT & TMNT2 Jpn do not work |
| 33 | 37 | * 033 has still some graphics problem (e.g. missing text in Akira) |
| 34 | 38 | * 034 Impossible Mission II does not show graphics |
| 35 | 39 | * 038 seems to miss inputs. separate reads? |
| r6028 | r6029 | |
| 39 | 43 | * 064 has many IRQ problems (due to the way we implement CPU based IRQ) - see Skull & Crossbones. |
| 40 | 44 | Klax has problems as well (even if it uses scanline based IRQ, according to Disch's docs). |
| 41 | 45 | * 067 some 1-line glitches that cannot be solved without a better implementation for cycle-based IRQs |
| 46 | * 071 Micro Machines has various small graphics problems. Fire Hawk is flashing all the times. |
| 42 | 47 | * 072, 086, 092 lack samples support (maybe others as well) |
| 43 | 48 | * 073 16 bit IRQ mode is not implemented |
| 44 | 49 | * 077 Requires 4-screen mirroring. Currently, it is very glitchy |
| 45 | 50 | * 083 has serious glitches |
| 51 | * 088 Quinty has never worked properly |
| 46 | 52 | * 096 is preliminary (no correct chr switch in connection to PPU) |
| 47 | 53 | * 104 Not all the games work |
| 48 | 54 | * 107 Are the scrolling glitches (check status bar) correct? NEStopia behaves similarly |
| r6028 | r6029 | |
| 80 | 86 | * 032 - Major League needs hardwired mirroring (missing windows and glitched field in top view, otherwise) |
| 81 | 87 | * 034 - Impossible Mission II is not like BxROM games (it writes to 0x7ffd-0x7fff, instead of 0x8000). It is still |
| 82 | 88 | unplayable though (see above) |
| 83 | | * 071 - Fire Hawk is different from other Camerica games (no hardwired mirroring) |
| 89 | * 071 - Fire Hawk is different from other Camerica games (no hardwired mirroring). Without crc_hack no helicopter graphics |
| 84 | 90 | * 078 - Cosmo Carrier needs a different mirroring than Holy Diver |
| 85 | 91 | * 113 - HES 6-in-1 requires mirroring (check Bookyman playfield), while other games break with this (check AV Soccer) |
| 86 | 92 | * 153 - Famicom Jump II uses a different board (or the same in a very different way) |
| r6028 | r6029 | |
| 11382 | 11388 | case 155: |
| 11383 | 11389 | mmc_cmd1 = 0; |
| 11384 | 11390 | mmc_count = 0; |
| 11385 | | MMC1_regs[0] = 0;//0x0f; |
| 11391 | MMC1_regs[0] = 0x0f; |
| 11386 | 11392 | MMC1_regs[1] = MMC1_regs[2] = MMC1_regs[3] = 0; |
| 11387 | 11393 | set_nt_mirroring(PPU_MIRROR_HORZ); |
| 11388 | 11394 | MMC1_set_chr(space->machine); |