src/mess/machine/nes_pcb.c
| r8283 | r8284 | |
| 578 | 578 | { "BMC-70IN1", UNSUPPORTED_BOARD }, // mapper 236? |
| 579 | 579 | { "BMC-70IN1B", UNSUPPORTED_BOARD }, // mapper 236? |
| 580 | 580 | { "BMC-SUPERHIK-KOF", UNSUPPORTED_BOARD },// mapper 251 |
| 581 | { "BMC-POWERJOY", UNSUPPORTED_BOARD },// mapper 126 |
| 581 | 582 | // are there dumps of games with these boards? |
| 582 | 583 | { "WAIXING-I", UNSUPPORTED_BOARD }, // [supported by NEStopia - we need more info] |
| 583 | 584 | { "WAIXING-J", UNSUPPORTED_BOARD }, // [supported by NEStopia - we need more info] |
| r8283 | r8284 | |
| 1603 | 1604 | LOG_MMC(("MMC5 mid RAM bank select: %02x\n", data & 0x07)); |
| 1604 | 1605 | // FIXME: a few Koei games have both WRAM & BWRAM but here we don't support this (yet) |
| 1605 | 1606 | if (state->battery) |
| 1606 | | state->prg_bank[4] = state->battery_bank5_start + (data & 0x07); |
| 1607 | wram_bank(space->machine, data, NES_BATTERY); |
| 1607 | 1608 | else |
| 1608 | | state->prg_bank[4] = state->prgram_bank5_start + (data & 0x07); |
| 1609 | | memory_set_bank(space->machine, "bank5", state->prg_bank[4]); |
| 1610 | | //wram_bank(space->machine, data & 0x07, NES_WRAM); |
| 1609 | wram_bank(space->machine, data, NES_WRAM); |
| 1611 | 1610 | break; |
| 1612 | 1611 | |
| 1613 | 1612 | case 0x1014: /* $5114 */ |
src/mess/machine/nes.c
| r8283 | r8284 | |
| 578 | 578 | } |
| 579 | 579 | |
| 580 | 580 | state->hard_mirroring = local_options & 0x01; |
| 581 | // printf("%d\n", state->hard_mirroring); |
| 581 | 582 | state->battery = local_options & 0x02; |
| 582 | 583 | state->trainer = local_options & 0x04; |
| 583 | 584 | state->four_screen_vram = local_options & 0x08; |
| r8283 | r8284 | |
| 1050 | 1051 | state->ce_mask = 0; |
| 1051 | 1052 | state->ce_state = 0; |
| 1052 | 1053 | |
| 1054 | /* Check for mirroring */ |
| 1055 | // FIXME: this is hacky. it would be better to include these in some feature attribute |
| 1056 | if (image_get_software_region(image, "mirror") != NULL) |
| 1057 | { |
| 1058 | int value = image_get_software_region_length(image, "mirror"); |
| 1059 | if (value == 2) |
| 1060 | state->hard_mirroring = 0; |
| 1061 | if (value == 4) |
| 1062 | state->hard_mirroring = 1; |
| 1063 | } |
| 1053 | 1064 | /* Check for pins */ |
| 1054 | 1065 | // FIXME: this is hacky. it would be better to include these in some feature attribute |
| 1055 | 1066 | if (image_get_software_region(image, "pin26") != NULL) |
src/mess/machine/nes_unif.c
| r8283 | r8284 | |
| 46 | 46 | enum |
| 47 | 47 | { |
| 48 | 48 | NT_X = 0, |
| 49 | | NT_HORZ, // not hardwired, horizontal at start |
| 50 | | NT_VERT, // not hardwired, vertical at start |
| 49 | NT_HORZ, |
| 50 | NT_VERT, |
| 51 | 51 | NT_Y, |
| 52 | 52 | NT_1SCREEN, |
| 53 | 53 | NT_4SCR_2K, |
| r8283 | r8284 | |
| 167 | 167 | break; |
| 168 | 168 | case STD_UXROM: // mapper 2 |
| 169 | 169 | case STD_UN1ROM: // mapper 94 |
| 170 | | prg32(machine, 0); |
| 170 | prg16_89ab(machine, 0); |
| 171 | prg16_cdef(machine, state->prg_chunks - 1); |
| 171 | 172 | break; |
| 172 | 173 | case UXROM_CC: // mapper 180 |
| 173 | 174 | prg32(machine, 0); |
| r8283 | r8284 | |
| 1265 | 1266 | state->battery = unif_board->nvwram; // we should implement battery banks based on the size of this... |
| 1266 | 1267 | state->battery_size = NES_BATTERY_SIZE; // FIXME: we should allow for smaller battery! |
| 1267 | 1268 | state->prg_ram = unif_board->wram; // we should implement WRAM banks based on the size of this... |
| 1268 | | // state->hard_mirroring = unif_board->nt; |
| 1269 | 1269 | state->four_screen_vram = (unif_board->nt == NT_4SCR_2K || unif_board->nt == NT_4SCR_4K) ? 1 : 0; |
| 1270 | 1270 | |
| 1271 | if (unif_board->nt == NT_VERT) |
| 1272 | state->hard_mirroring = 1; |
| 1273 | else if (unif_board->nt == NT_HORZ) |
| 1274 | state->hard_mirroring = 0; |
| 1275 | |
| 1271 | 1276 | if (unif_board->chrram <= CHRRAM_8) |
| 1272 | 1277 | state->vram_chunks = 1; |
| 1273 | 1278 | else if (unif_board->chrram == CHRRAM_16) |