src/mess/machine/nes.c
| r8225 | r8226 | |
| 43 | 43 | state->vrom = memory_region(machine, "gfx1"); |
| 44 | 44 | state->vram = memory_region(machine, "gfx2"); |
| 45 | 45 | state->ciram = memory_region(machine, "gfx3"); |
| 46 | | state->wram = memory_region(machine, "user1"); |
| 46 | // FIXME: this should only be allocated if there is actual wram in the cart! |
| 47 | if (state->wram == NULL) |
| 48 | { |
| 49 | state->wram_size = 0x10000; |
| 50 | state->wram = auto_alloc_array(machine, UINT8, state->wram_size); |
| 51 | } |
| 47 | 52 | |
| 48 | 53 | /* Brutal hack put in as a consequence of the new memory system; we really need to fix the NES code */ |
| 49 | 54 | memory_install_readwrite_bank(space, 0x0000, 0x07ff, 0, 0x1800, "bank10"); |
| r8225 | r8226 | |
| 53 | 58 | |
| 54 | 59 | memory_set_bankptr(machine, "bank10", state->rom); |
| 55 | 60 | |
| 56 | | state->battery_ram = state->wram; |
| 57 | | |
| 58 | 61 | /* Set up the memory handlers for the mapper */ |
| 59 | 62 | switch (state->mapper) |
| 60 | 63 | { |
| r8225 | r8226 | |
| 101 | 104 | state->prg_bank[i] = i; |
| 102 | 105 | } |
| 103 | 106 | |
| 104 | | memory_configure_bank(machine, "bank5", 0, 1, memory_region(machine, "maincpu") + 0x6000, 0x2000); |
| 105 | | memory_configure_bank(machine, "bank5", 1, prg_banks, memory_region(machine, "maincpu") + 0x10000, 0x2000); |
| 106 | | memory_set_bank(machine, "bank5", 0); |
| 107 | | state->prg_bank[4] = 0; |
| 107 | state->prgram_bank_start = prg_banks; |
| 108 | /* bank 5 configuration is more delicate, since it can have PRG RAM, PRG ROM or SRAM mapped to it */ |
| 109 | /* we first map PRG ROM banks, then the battery bank (if a battery is present), and finally PRG RAM (state->wram) */ |
| 110 | memory_configure_bank(machine, "bank5", 0, prg_banks, memory_region(machine, "maincpu") + 0x10000, 0x2000); |
| 111 | /* add battery ram, but only if there's no trainer since they share overlapping memory. */ |
| 112 | if (state->battery && !state->trainer) |
| 113 | { |
| 114 | memory_configure_bank(machine, "bank5", prg_banks, 1, state->battery_ram, state->battery_size); |
| 115 | state->prgram_bank_start += 1; |
| 116 | } |
| 117 | /* add prg ram. */ |
| 118 | if (state->prg_ram) |
| 119 | memory_configure_bank(machine, "bank5", state->prgram_bank_start, 8, state->wram, 0x2000); |
| 108 | 120 | |
| 121 | /* if we have any additional PRG RAM, point bank5 to its first bank */ |
| 122 | if (state->battery || state->prg_ram) |
| 123 | state->prg_bank[4] = prg_banks; |
| 124 | |
| 125 | memory_set_bank(machine, "bank5", state->prg_bank[4]); |
| 126 | |
| 109 | 127 | memory_install_write8_handler(space, 0x6000, 0x7fff, 0, 0, nes_mid_mapper_w); |
| 110 | 128 | // memory_install_read8_handler(space, 0x6000, 0x7fff, 0, 0, nes_mid_mapper_r); |
| 111 | 129 | memory_install_write8_handler(space, 0x8000, 0xffff, 0, 0, nes_mapper_w); |
| r8225 | r8226 | |
| 164 | 182 | ppu_latch = NULL; |
| 165 | 183 | } |
| 166 | 184 | } |
| 167 | | |
| 168 | | /* Load a battery file, but only if there's no trainer since they share */ |
| 169 | | /* overlapping memory. */ |
| 170 | | if (state->trainer) |
| 171 | | return; |
| 172 | | |
| 173 | | /* We need this because battery ram is loaded before the */ |
| 174 | | /* memory subsystem is set up. When this routine is called */ |
| 175 | | /* everything is ready, so we can just copy over the data */ |
| 176 | | /* we loaded before. */ |
| 177 | | memcpy(state->battery_ram, state->battery_data, state->battery_size); |
| 178 | 185 | } |
| 179 | 186 | |
| 180 | 187 | // to be probably removed (it does nothing since a long time) |
| r8225 | r8226 | |
| 270 | 277 | state_save_register_global(machine, state->fds_last_side); |
| 271 | 278 | state_save_register_global(machine, state->fds_count); |
| 272 | 279 | |
| 280 | state_save_register_global_pointer(machine, state->wram, state->wram_size); |
| 281 | if (state->battery) |
| 282 | state_save_register_global_pointer(machine, state->battery_ram, state->battery_size); |
| 283 | |
| 273 | 284 | state_save_register_postload(machine, nes_banks_restore, NULL); |
| 274 | 285 | } |
| 275 | 286 | |
| r8225 | r8226 | |
| 532 | 543 | state->format = 1; // we use this to select between mapper_reset / unif_reset |
| 533 | 544 | state->ines20 = 0; |
| 534 | 545 | state->battery_size = NES_BATTERY_SIZE; // with iNES we can only support 8K WRAM battery (iNES 2.0 might fix this) |
| 546 | state->prg_ram = 1; // always map state->wram in bank5 (eventually, this should be enabled only for some mappers) |
| 535 | 547 | |
| 536 | 548 | // check if the image is recognized by nes.hsi |
| 537 | 549 | mapinfo = image_extrainfo(image); |
| r8225 | r8226 | |
| 636 | 648 | state->rom = memory_region(image->machine, "maincpu"); |
| 637 | 649 | state->vrom = memory_region(image->machine, "gfx1"); |
| 638 | 650 | state->vram = memory_region(image->machine, "gfx2"); |
| 639 | | state->wram = memory_region(image->machine, "user1"); |
| 640 | | |
| 651 | // FIXME: this should only be allocated if there is actual wram in the cart (i.e. if state->prg_ram = 1)! |
| 652 | // or if there is a trainer, I think |
| 653 | state->wram_size = 0x10000; |
| 654 | state->wram = auto_alloc_array(image->machine, UINT8, state->wram_size); |
| 655 | |
| 641 | 656 | /* Position past the header */ |
| 642 | 657 | image_fseek(image, 16, SEEK_SET); |
| 643 | 658 | |
| r8225 | r8226 | |
| 758 | 773 | |
| 759 | 774 | state->mapper = 0; // this allows us to set up memory handlers without duplicating code (for the moment) |
| 760 | 775 | state->board = unif_board->board; |
| 761 | | state->battery = unif_board->wram; // we should implement WRAM banks... |
| 776 | state->battery = unif_board->nvwram; // we should implement WRAM banks based on the size of this... |
| 762 | 777 | state->battery_size = NES_BATTERY_SIZE; // FIXME: we should allow for smaller battery! |
| 778 | state->prg_ram = unif_board->wram; // we should implement WRAM banks based on the size of this... |
| 763 | 779 | // state->hard_mirroring = unif_board->nt; |
| 764 | 780 | // state->four_screen_vram = ; |
| 765 | 781 | |
| r8225 | r8226 | |
| 776 | 792 | state->rom = memory_region(image->machine, "maincpu"); |
| 777 | 793 | state->vrom = memory_region(image->machine, "gfx1"); |
| 778 | 794 | state->vram = memory_region(image->machine, "gfx2"); |
| 779 | | state->wram = memory_region(image->machine, "user1"); |
| 795 | // FIXME: this should only be allocated if there is actual wram in the cart (i.e. if state->prg_ram = 1)! |
| 796 | state->wram_size = 0x10000; |
| 797 | state->wram = auto_alloc_array(image->machine, UINT8, state->wram_size); |
| 780 | 798 | |
| 781 | 799 | /* the exact number of chunks will be determined while reading the file */ |
| 782 | 800 | state->prg_chunks = 0; |
| r8225 | r8226 | |
| 1013 | 1031 | state->rom = memory_region(image->machine, "maincpu"); |
| 1014 | 1032 | state->vrom = memory_region(image->machine, "gfx1"); |
| 1015 | 1033 | state->vram = memory_region(image->machine, "gfx2"); |
| 1016 | | state->wram = memory_region(image->machine, "user1"); |
| 1017 | 1034 | |
| 1018 | 1035 | memcpy(state->rom + 0x10000, image_get_software_region(image, "prg"), prg_size); |
| 1019 | 1036 | |
| r8225 | r8226 | |
| 1023 | 1040 | state->prg_chunks = prg_size / 0x4000; |
| 1024 | 1041 | state->chr_chunks = chr_size / 0x2000; |
| 1025 | 1042 | |
| 1026 | | state->format = 2; // temporarily treat this as a unif file |
| 1043 | state->format = 2; // temporarily treat this as a unif file |
| 1044 | state->mapper = 0; // this allows us to set up memory handlers without duplicating code (for the moment) |
| 1027 | 1045 | state->board = image_get_feature(image); |
| 1028 | | state->mapper = 0; // this allows us to set up memory handlers without duplicating code (for the moment) |
| 1029 | 1046 | |
| 1030 | 1047 | state->battery = (image_get_software_region(image, "bwram") != NULL) ? 1 : 0; |
| 1031 | 1048 | state->battery_size = image_get_software_region_length(image, "bwram"); |
| 1032 | 1049 | |
| 1050 | state->prg_ram = (image_get_software_region(image, "wram") != NULL) ? 1 : 0; |
| 1051 | state->wram_size = image_get_software_region_length(image, "wram"); |
| 1052 | if (state->prg_ram) |
| 1053 | state->wram = auto_alloc_array(image->machine, UINT8, state->wram_size); |
| 1054 | |
| 1033 | 1055 | // FIXME: we need to handle the remaining variables. on the short term, we might |
| 1034 | 1056 | // create a table for the various mappers (based on the 'feature' value in xml), |
| 1035 | 1057 | // but on the long term we need to rework the whole emulation to first use the |
| r8225 | r8226 | |
| 1045 | 1067 | /* Attempt to load a battery file for this ROM. If successful, we */ |
| 1046 | 1068 | /* must wait until later to move it to the system memory. */ |
| 1047 | 1069 | if (state->battery) |
| 1048 | | image_battery_load(image, state->battery_data, state->battery_size, 0x00); |
| 1049 | | |
| 1070 | { |
| 1071 | state->battery_ram = auto_alloc_array(image->machine, UINT8, state->battery_size); |
| 1072 | image_battery_load(image, state->battery_ram, state->battery_size, 0x00); |
| 1073 | } |
| 1074 | |
| 1050 | 1075 | return INIT_PASS; |
| 1051 | 1076 | } |
| 1052 | 1077 | |
| r8225 | r8226 | |
| 1096 | 1121 | /* clear some of the cart variables we don't use */ |
| 1097 | 1122 | state->trainer = 0; |
| 1098 | 1123 | state->battery = 0; |
| 1124 | state->prg_ram = 0; |
| 1099 | 1125 | state->prg_chunks = state->chr_chunks = 0; |
| 1100 | 1126 | |
| 1101 | 1127 | /* initialize the system as if using a mapper 20 cart */ |
src/mess/machine/nes_mmc.c
| r8225 | r8226 | |
| 281 | 281 | if (state->mmc_write_mid) |
| 282 | 282 | (*state->mmc_write_mid)(space, offset, data); |
| 283 | 283 | else if (state->mid_ram_enable) |
| 284 | | state->battery_ram[offset] = data; |
| 284 | { |
| 285 | if (state->battery && !state->trainer) |
| 286 | state->battery_ram[offset] = data; |
| 287 | else |
| 288 | state->wram[state->prg_bank[4] * 0x2000 + offset] = data; |
| 289 | } |
| 285 | 290 | else |
| 286 | 291 | logerror("Unimplemented MID mapper write, offset: %04x, data: %02x\n", offset + 0x6000, data); |
| 287 | 292 | } |
| 288 | 293 | |
| 294 | // currently, this is not used (but it might become handy for some pirate mapper) |
| 289 | 295 | READ8_HANDLER( nes_mid_mapper_r ) |
| 290 | 296 | { |
| 291 | 297 | nes_state *state = (nes_state *)space->machine->driver_data; |
| 292 | 298 | |
| 293 | 299 | if ((state->mid_ram_enable) || (state->mapper == 5)) |
| 294 | | return state->battery_ram[offset]; |
| 300 | { |
| 301 | if (state->battery && !state->trainer) |
| 302 | return state->battery_ram[offset]; |
| 303 | else |
| 304 | return state->wram[state->prg_bank[4] * 0x2000 + offset]; |
| 305 | } |
| 295 | 306 | else |
| 296 | 307 | logerror("Unimplemented LOW mapper read, offset: %04x\n", offset + 0x6000); |
| 297 | 308 | |
| r8225 | r8226 | |
| 452 | 463 | |
| 453 | 464 | /* assumes that bank references an 8k chunk */ |
| 454 | 465 | bank &= ((state->prg_chunks << 1) - 1); |
| 455 | | state->prg_bank[4] = bank + 1; // we have an additional 0x2000 bank at start (pointing to 0x6000), followed by usual banks |
| 466 | state->prg_bank[4] = bank; |
| 456 | 467 | memory_set_bank(machine, "bank5", state->prg_bank[4]); |
| 457 | 468 | } |
| 458 | 469 | |
| r8225 | r8226 | |
| 938 | 949 | break; |
| 939 | 950 | case 43: |
| 940 | 951 | prg32(machine, 0); |
| 941 | | memset(state->wram, 0x2000, 0xff); |
| 952 | if (state->battery) |
| 953 | memset(state->battery_ram, 0x2000, 0xff); |
| 954 | else if (state->prg_ram) |
| 955 | memset(state->wram, 0x2000, 0xff); |
| 942 | 956 | break; |
| 943 | 957 | case 44: |
| 944 | 958 | case 47: |
| r8225 | r8226 | |
| 967 | 981 | state->mmc_chr_mask = 0x7f; |
| 968 | 982 | mapper4_set_prg(machine, state->mmc_prg_base, state->mmc_prg_mask); |
| 969 | 983 | mapper4_set_chr(machine, state->mmc_chr_source, state->mmc_chr_base, state->mmc_chr_mask); |
| 970 | | memory_set_bankptr(machine, "bank5", state->wram); |
| 984 | // memory_set_bankptr(machine, "bank5", state->wram); |
| 971 | 985 | break; |
| 972 | 986 | case 46: |
| 973 | 987 | prg32(machine, 0); |
| r8225 | r8226 | |
| 1005 | 1019 | state->mmc_chr_mask = 0xff; |
| 1006 | 1020 | mapper4_set_prg(machine, state->mmc_prg_base, state->mmc_prg_mask); |
| 1007 | 1021 | mapper4_set_chr(machine, state->mmc_chr_source, state->mmc_chr_base, state->mmc_chr_mask); |
| 1008 | | memory_set_bankptr(machine, "bank5", state->wram); |
| 1022 | // memory_set_bankptr(machine, "bank5", state->wram); |
| 1009 | 1023 | break; |
| 1010 | 1024 | case 57: |
| 1011 | 1025 | state->mmc_cmd1 = 0x00; |
| r8225 | r8226 | |
| 1544 | 1558 | fatalerror("Unimplemented Mapper %d", mmc_num); |
| 1545 | 1559 | // logerror("Mapper %d is not yet supported, defaulting to no mapper.\n", mmc_num); // this one would be a better output |
| 1546 | 1560 | |
| 1547 | | |
| 1548 | 1561 | ppu2c0x_set_scanline_callback(state->ppu, mapper ? mapper->mmc_scanline : NULL); |
| 1549 | 1562 | ppu2c0x_set_hblank_callback(state->ppu, mapper ? mapper->mmc_hblank : NULL); |
| 1550 | 1563 | |
| 1551 | 1564 | state->mmc5_vram_control = 0; |
| 1552 | 1565 | |
| 1553 | | /* Point the WRAM/battery area to the first RAM bank */ |
| 1554 | | if (mmc_num != 20) |
| 1555 | | memory_set_bankptr(machine, "bank5", &state->wram[0x0000]); |
| 1556 | | |
| 1557 | 1566 | /* Here, we init a few helpers: 4 prg banks and 16 chr banks - some mappers use them */ |
| 1558 | 1567 | for (i = 0; i < 4; i++) |
| 1559 | 1568 | state->mmc_prg_bank[i] = 0; |
| r8225 | r8226 | |
| 2285 | 2294 | ppu2c0x_set_scanline_callback(state->ppu, unif_board ? unif_board->mmc_scanline : NULL); |
| 2286 | 2295 | ppu2c0x_set_hblank_callback(state->ppu, unif_board ? unif_board->mmc_hblank : NULL); |
| 2287 | 2296 | |
| 2288 | | |
| 2289 | | /* Point the WRAM/battery area to the first RAM bank */ |
| 2290 | | memory_set_bankptr(machine, "bank5", &state->wram[0x0000]); |
| 2291 | | |
| 2292 | 2297 | err = unif_initialize(machine, unif_board->board_idx); |
| 2293 | 2298 | |
| 2294 | 2299 | return err; |
src/mess/drivers/nes.c
| r8225 | r8226 | |
| 295 | 295 | MACHINE_DRIVER_END |
| 296 | 296 | |
| 297 | 297 | |
| 298 | /* rom regions are just place-holders: they get removed and re-allocated when a cart is loaded */ |
| 298 | 299 | ROM_START( nes ) |
| 299 | | ROM_REGION( 0x10000, "maincpu", 0 ) /* Main RAM + program banks */ |
| 300 | | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 301 | | ROM_REGION( 0x2000, "gfx1", 0 ) /* VROM */ |
| 302 | | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 303 | | ROM_REGION( 0x4000, "gfx2", 0 ) /* VRAM */ |
| 304 | | ROM_FILL( 0x0000, 0x4000, 0x00 ) |
| 305 | | ROM_REGION( 0x800, "gfx3", 0 ) /* CI RAM */ |
| 306 | | ROM_FILL( 0x0000, 0x800, 0x00 ) |
| 307 | | ROM_REGION( 0x10000, "user1", 0 ) /* WRAM */ |
| 308 | | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 300 | ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 ) /* Main RAM + program banks */ |
| 301 | ROM_REGION( 0x2000, "gfx1", ROMREGION_ERASE00 ) /* VROM */ |
| 302 | ROM_REGION( 0x4000, "gfx2", ROMREGION_ERASE00 ) /* VRAM */ |
| 303 | ROM_REGION( 0x800, "gfx3", ROMREGION_ERASE00 ) /* CI RAM */ |
| 309 | 304 | ROM_END |
| 310 | 305 | |
| 311 | 306 | ROM_START( nespal ) |
| 312 | | ROM_REGION( 0x10000, "maincpu", 0 ) /* Main RAM + program banks */ |
| 313 | | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 314 | | ROM_REGION( 0x2000, "gfx1", 0 ) /* VROM */ |
| 315 | | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 316 | | ROM_REGION( 0x4000, "gfx2", 0 ) /* VRAM */ |
| 317 | | ROM_FILL( 0x0000, 0x4000, 0x00 ) |
| 318 | | ROM_REGION( 0x800, "gfx3", 0 ) /* CI RAM */ |
| 319 | | ROM_FILL( 0x0000, 0x800, 0x00 ) |
| 320 | | ROM_REGION( 0x10000, "user1", 0 ) /* WRAM */ |
| 321 | | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 307 | ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 ) /* Main RAM + program banks */ |
| 308 | ROM_REGION( 0x2000, "gfx1", ROMREGION_ERASE00 ) /* VROM */ |
| 309 | ROM_REGION( 0x4000, "gfx2", ROMREGION_ERASE00 ) /* VRAM */ |
| 310 | ROM_REGION( 0x800, "gfx3", ROMREGION_ERASE00 ) /* CI RAM */ |
| 322 | 311 | ROM_END |
| 323 | 312 | |
| 324 | 313 | ROM_START( famicom ) |
| 325 | 314 | ROM_REGION( 0x10000, "maincpu", 0 ) /* Main RAM + program banks */ |
| 326 | 315 | ROM_LOAD_OPTIONAL( "disksys.rom", 0xe000, 0x2000, CRC(5e607dcf) SHA1(57fe1bdee955bb48d357e463ccbf129496930b62) ) |
| 327 | 316 | |
| 328 | | ROM_REGION( 0x2000, "gfx1", 0 ) /* VROM */ |
| 329 | | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 330 | | ROM_REGION( 0x4000, "gfx2", 0 ) /* VRAM */ |
| 331 | | ROM_FILL( 0x0000, 0x4000, 0x00 ) |
| 332 | | ROM_REGION( 0x800, "gfx3", 0 ) /* CI RAM */ |
| 333 | | ROM_FILL( 0x0000, 0x800, 0x00 ) |
| 334 | | ROM_REGION( 0x10000, "user1", 0 ) /* WRAM */ |
| 335 | | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 317 | ROM_REGION( 0x2000, "gfx1", ROMREGION_ERASE00 ) /* VROM */ |
| 318 | ROM_REGION( 0x4000, "gfx2", ROMREGION_ERASE00 ) /* VRAM */ |
| 319 | ROM_REGION( 0x800, "gfx3", ROMREGION_ERASE00 ) /* CI RAM */ |
| 336 | 320 | ROM_END |
| 337 | 321 | |
| 338 | 322 | ROM_START( famitwin ) |
| 339 | 323 | ROM_REGION( 0x10000, "maincpu", 0 ) /* Main RAM + program banks */ |
| 340 | 324 | ROM_LOAD_OPTIONAL( "disksyst.rom", 0xe000, 0x2000, CRC(4df24a6c) SHA1(e4e41472c454f928e53eb10e0509bf7d1146ecc1) ) |
| 341 | 325 | |
| 342 | | ROM_REGION( 0x2000, "gfx1", 0 ) /* VROM */ |
| 343 | | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 344 | | ROM_REGION( 0x4000, "gfx2", 0 ) /* VRAM */ |
| 345 | | ROM_FILL( 0x0000, 0x4000, 0x00 ) |
| 346 | | ROM_REGION( 0x800, "gfx3", 0 ) /* CI RAM */ |
| 347 | | ROM_FILL( 0x0000, 0x800, 0x00 ) |
| 348 | | ROM_REGION( 0x10000, "user1", 0 ) /* WRAM */ |
| 349 | | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 326 | ROM_REGION( 0x2000, "gfx1", ROMREGION_ERASE00 ) /* VROM */ |
| 327 | ROM_REGION( 0x4000, "gfx2", ROMREGION_ERASE00 ) /* VRAM */ |
| 328 | ROM_REGION( 0x800, "gfx3", ROMREGION_ERASE00 ) /* CI RAM */ |
| 350 | 329 | ROM_END |
| 351 | 330 | |
| 352 | 331 | ROM_START( m82 ) |
| r8225 | r8226 | |
| 354 | 333 | /* Banks to be mapped at 0xe000? More investigations needed... */ |
| 355 | 334 | ROM_LOAD( "m82_v1_0.bin", 0x10000, 0x4000, CRC(7d56840a) SHA1(cbd2d14fa073273ba58367758f40d67fd8a9106d) ) |
| 356 | 335 | |
| 357 | | ROM_REGION( 0x2000, "gfx1", 0 ) /* VROM */ |
| 358 | | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 359 | | ROM_REGION( 0x4000, "gfx2", 0 ) /* VRAM */ |
| 360 | | ROM_FILL( 0x0000, 0x4000, 0x00 ) |
| 361 | | ROM_REGION( 0x800, "gfx3", 0 ) /* CI RAM */ |
| 362 | | ROM_FILL( 0x0000, 0x800, 0x00 ) |
| 363 | | ROM_REGION( 0x10000, "user1", 0 ) /* WRAM */ |
| 364 | | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 336 | ROM_REGION( 0x2000, "gfx1", ROMREGION_ERASE00 ) /* VROM */ |
| 337 | ROM_REGION( 0x4000, "gfx2", ROMREGION_ERASE00 ) /* VRAM */ |
| 338 | ROM_REGION( 0x800, "gfx3", ROMREGION_ERASE00 ) /* CI RAM */ |
| 365 | 339 | ROM_END |
| 366 | 340 | |
| 367 | 341 | // see http://www.disgruntleddesigner.com/chrisc/drpcjr/index.html |
| r8225 | r8226 | |
| 374 | 348 | // Not sure if we should support this: hacked version 1.5a by Chris Covell with bugfixes and GameGenie support |
| 375 | 349 | // ROM_LOAD("drpcjr_v1_5_gg.bin", 0x10000, 0x8000, CRC(98f2033b) SHA1(93c114da787a19279d1a46667c2f69b49e25d4f1) ) |
| 376 | 350 | |
| 377 | | ROM_REGION( 0x2000, "gfx1", 0 ) /* VROM */ |
| 378 | | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 379 | | ROM_REGION( 0x4000, "gfx2", 0 ) /* VRAM */ |
| 380 | | ROM_FILL( 0x0000, 0x4000, 0x00 ) |
| 381 | | ROM_REGION( 0x800, "gfx3", 0 ) /* CI RAM */ |
| 382 | | ROM_FILL( 0x0000, 0x800, 0x00 ) |
| 383 | | ROM_REGION( 0x10000, "user1", 0 ) /* WRAM */ |
| 384 | | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 351 | ROM_REGION( 0x2000, "gfx1", ROMREGION_ERASE00 ) /* VROM */ |
| 352 | ROM_REGION( 0x4000, "gfx2", ROMREGION_ERASE00 ) /* VRAM */ |
| 353 | ROM_REGION( 0x800, "gfx3", ROMREGION_ERASE00 ) /* CI RAM */ |
| 385 | 354 | ROM_END |
| 386 | 355 | |
| 387 | 356 | ROM_START( dendy ) |
| 388 | | ROM_REGION( 0x10000, "maincpu", 0 ) /* Main RAM + program banks */ |
| 389 | | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 390 | | ROM_REGION( 0x2000, "gfx1", 0 ) /* VROM */ |
| 391 | | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 392 | | ROM_REGION( 0x4000, "gfx2", 0 ) /* VRAM */ |
| 393 | | ROM_FILL( 0x0000, 0x4000, 0x00 ) |
| 394 | | ROM_REGION( 0x800, "gfx3", 0 ) /* CI RAM */ |
| 395 | | ROM_FILL( 0x0000, 0x800, 0x00 ) |
| 396 | | ROM_REGION( 0x10000, "user1", 0 ) /* WRAM */ |
| 397 | | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 357 | ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 ) /* Main RAM + program banks */ |
| 358 | ROM_REGION( 0x2000, "gfx1", ROMREGION_ERASE00 ) /* VROM */ |
| 359 | ROM_REGION( 0x4000, "gfx2", ROMREGION_ERASE00 ) /* VRAM */ |
| 360 | ROM_REGION( 0x800, "gfx3", ROMREGION_ERASE00 ) /* CI RAM */ |
| 398 | 361 | ROM_END |
| 399 | 362 | |
| 400 | 363 | /*************************************************************************** |