Previous 15994 Revisions Next

r8226 Saturday 5th June, 2010 at 08:02:43 UTC by Fabio Priuli
[NES] re-worked WRAM implementation:
* split Battery Backed WRAM handling from Volatile WRAM handling
* allow for Battery Backed WRAM smaller than 8K
* hopefully fixed a bunch of WRAM banking quirks
[src/mess/drivers]nes.c
[src/mess/includes]nes.h
[src/mess/machine]nes.c nes_ines.c nes_mmc.c

src/mess/includes/nes.h
r8225r8226
7373   chr_bank      chr_map[8];  //quick banking structure, because some of this changes multiple times per scanline!
7474   name_table    nt_page[4];  //quick banking structure for a maximum of 4K of RAM/ROM/ExRAM
7575
76   int prgram_bank_start;
7677   int MMC5_floodtile;
7778   int MMC5_floodattr;
7879   UINT8 mmc5_vram[0x400];
r8225r8226
110111
111112   /* SRAM-related (we have two elements due to the init order, but it would be better to verify they both are still needed) */
112113   UINT8      *battery_ram;
113   UINT8      battery_data[NES_BATTERY_SIZE];
114114
115115   /***** Mapper-related variables *****/
116116
r8225r8226
141141   /***** NES-cart related *****/
142142
143143   /* load-time cart variables which remain constant */
144   UINT16 prg_chunks;   // a recently dumped multigame cart has 256 chunks of both PRG & CHR!
144   UINT16 prg_chunks;      // iNES 2.0 allows for more chunks (a recently dumped multigame cart has 256 chunks of both PRG & CHR!)
145145   UINT16 chr_chunks;
146146   UINT8 trainer;
147   UINT8 battery;
147   UINT8 battery;         // if there is PRG RAM with battery backup
148148   UINT32 battery_size;
149   UINT8 prg_ram;         // if there is PRG RAM with no backup
150   UINT32 wram_size;
149151
150152   int format;   // 1 = iNES, 2 = UNIF
151153
src/mess/machine/nes.c
r8225r8226
4343   state->vrom = memory_region(machine, "gfx1");
4444   state->vram = memory_region(machine, "gfx2");
4545   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   }
4752
4853   /* Brutal hack put in as a consequence of the new memory system; we really need to fix the NES code */
4954   memory_install_readwrite_bank(space, 0x0000, 0x07ff, 0, 0x1800, "bank10");
r8225r8226
5358
5459   memory_set_bankptr(machine, "bank10", state->rom);
5560
56   state->battery_ram = state->wram;
57
5861   /* Set up the memory handlers for the mapper */
5962   switch (state->mapper)
6063   {
r8225r8226
101104            state->prg_bank[i] = i;
102105         }
103106
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);
108120
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
109127         memory_install_write8_handler(space, 0x6000, 0x7fff, 0, 0, nes_mid_mapper_w);
110128//         memory_install_read8_handler(space, 0x6000, 0x7fff, 0, 0, nes_mid_mapper_r);
111129         memory_install_write8_handler(space, 0x8000, 0xffff, 0, 0, nes_mapper_w);
r8225r8226
164182         ppu_latch = NULL;
165183      }
166184   }
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);
178185}
179186
180187// to be probably removed (it does nothing since a long time)
r8225r8226
270277   state_save_register_global(machine, state->fds_last_side);
271278   state_save_register_global(machine, state->fds_count);
272279
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
273284   state_save_register_postload(machine, nes_banks_restore, NULL);
274285}
275286
r8225r8226
532543         state->format = 1;   // we use this to select between mapper_reset / unif_reset
533544         state->ines20 = 0;
534545         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)
535547
536548         // check if the image is recognized by nes.hsi
537549         mapinfo = image_extrainfo(image);
r8225r8226
636648         state->rom = memory_region(image->machine, "maincpu");
637649         state->vrom = memory_region(image->machine, "gfx1");
638650         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         
641656         /* Position past the header */
642657         image_fseek(image, 16, SEEK_SET);
643658
r8225r8226
758773
759774                  state->mapper = 0;   // this allows us to set up memory handlers without duplicating code (for the moment)
760775                  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...
762777                  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...
763779                  // state->hard_mirroring = unif_board->nt;
764780                  // state->four_screen_vram = ;
765781
r8225r8226
776792                  state->rom = memory_region(image->machine, "maincpu");
777793                  state->vrom = memory_region(image->machine, "gfx1");
778794                  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);
780798
781799                  /* the exact number of chunks will be determined while reading the file */
782800                  state->prg_chunks = 0;
r8225r8226
10131031      state->rom = memory_region(image->machine, "maincpu");
10141032      state->vrom = memory_region(image->machine, "gfx1");
10151033      state->vram = memory_region(image->machine, "gfx2");
1016      state->wram = memory_region(image->machine, "user1");
10171034
10181035      memcpy(state->rom + 0x10000, image_get_software_region(image, "prg"), prg_size);
10191036
r8225r8226
10231040      state->prg_chunks = prg_size / 0x4000;
10241041      state->chr_chunks = chr_size / 0x2000;
10251042
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)
10271045      state->board = image_get_feature(image);
1028      state->mapper = 0;      // this allows us to set up memory handlers without duplicating code (for the moment)
10291046
10301047      state->battery = (image_get_software_region(image, "bwram") != NULL) ? 1 : 0;
10311048      state->battery_size = image_get_software_region_length(image, "bwram");
10321049
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
10331055      // FIXME: we need to handle the remaining variables. on the short term, we might
10341056      // create a table for the various mappers (based on the 'feature' value in xml),
10351057      // but on the long term we need to rework the whole emulation to first use the
r8225r8226
10451067   /* Attempt to load a battery file for this ROM. If successful, we */
10461068   /* must wait until later to move it to the system memory. */
10471069   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
10501075   return INIT_PASS;
10511076}
10521077
r8225r8226
10961121   /* clear some of the cart variables we don't use */
10971122   state->trainer = 0;
10981123   state->battery = 0;
1124   state->prg_ram = 0;
10991125   state->prg_chunks = state->chr_chunks = 0;
11001126
11011127   /* initialize the system as if using a mapper 20 cart */
src/mess/machine/nes_mmc.c
r8225r8226
281281   if (state->mmc_write_mid)
282282      (*state->mmc_write_mid)(space, offset, data);
283283   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   }
285290   else
286291      logerror("Unimplemented MID mapper write, offset: %04x, data: %02x\n", offset + 0x6000, data);
287292}
288293
294// currently, this is not used (but it might become handy for some pirate mapper)
289295READ8_HANDLER( nes_mid_mapper_r )
290296{
291297   nes_state *state = (nes_state *)space->machine->driver_data;
292298
293299   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   }
295306   else
296307      logerror("Unimplemented LOW mapper read, offset: %04x\n", offset + 0x6000);
297308
r8225r8226
452463
453464   /* assumes that bank references an 8k chunk */
454465   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;
456467   memory_set_bank(machine, "bank5", state->prg_bank[4]);
457468}
458469
r8225r8226
938949         break;
939950      case 43:
940951         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);
942956         break;
943957      case 44:
944958      case 47:
r8225r8226
967981         state->mmc_chr_mask = 0x7f;
968982         mapper4_set_prg(machine, state->mmc_prg_base, state->mmc_prg_mask);
969983         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);
971985         break;
972986      case 46:
973987         prg32(machine, 0);
r8225r8226
10051019         state->mmc_chr_mask = 0xff;
10061020         mapper4_set_prg(machine, state->mmc_prg_base, state->mmc_prg_mask);
10071021         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);
10091023         break;
10101024      case 57:
10111025         state->mmc_cmd1 = 0x00;
r8225r8226
15441558      fatalerror("Unimplemented Mapper %d", mmc_num);
15451559//      logerror("Mapper %d is not yet supported, defaulting to no mapper.\n", mmc_num);    // this one would be a better output
15461560
1547
15481561   ppu2c0x_set_scanline_callback(state->ppu, mapper ? mapper->mmc_scanline : NULL);
15491562   ppu2c0x_set_hblank_callback(state->ppu, mapper ? mapper->mmc_hblank : NULL);
15501563
15511564   state->mmc5_vram_control = 0;
15521565
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
15571566   /* Here, we init a few helpers: 4 prg banks and 16 chr banks - some mappers use them */
15581567   for (i = 0; i < 4; i++)
15591568      state->mmc_prg_bank[i] = 0;
r8225r8226
22852294   ppu2c0x_set_scanline_callback(state->ppu, unif_board ? unif_board->mmc_scanline : NULL);
22862295   ppu2c0x_set_hblank_callback(state->ppu, unif_board ? unif_board->mmc_hblank : NULL);
22872296
2288
2289   /* Point the WRAM/battery area to the first RAM bank */
2290   memory_set_bankptr(machine, "bank5", &state->wram[0x0000]);
2291
22922297   err = unif_initialize(machine, unif_board->board_idx);
22932298
22942299   return err;
src/mess/machine/nes_ines.c
r8225r8226
435435static WRITE8_HANDLER( mapper5_l_w )
436436{
437437   nes_state *state = (nes_state *)space->machine->driver_data;
438
439438//  static int vrom_next[4];
440439   static int vrom_page_a;
441440   static int vrom_page_b;
r8225r8226
514513
515514      case 0x1013: /* $5113 */
516515         LOG_MMC(("MMC5 mid RAM bank select: %02x\n", data & 0x07));
517         memory_set_bankptr(space->machine, "bank5", &state->wram[data * 0x2000]);
518         /* The & 4 is a hack that'll tide us over for now */
519         state->battery_ram = &state->wram[(data & 4) * 0x2000];
516         state->prg_bank[4] = state->prgram_bank_start + (data & 0x07);
517         memory_set_bank(space->machine, "bank5", state->prg_bank[4]);
520518         break;
521519
522520      case 0x1014: /* $5114 */
r8225r8226
42934291            /* TODO: deal properly with bankswitching/write-protecting the mid-mapper area */
42944292            case 8:
42954293               if (!(data & 0x40))
4294               {
4295                  state->mid_ram_enable = 0;   // is PRG ROM
42964296                  prg8_67(space->machine, data & 0x3f);
4297               }
42974298               else if (data & 0x80)
4298                  memory_set_bankptr(space->machine, "bank5", &state->wram[(data & 0x3f) * 0x2000]);
4299               {
4300                  state->mid_ram_enable = 1;   // is PRG RAM
4301                  state->prg_bank[4] = state->prg_chunks + (data & 0x3f);
4302                  memory_set_bank(space->machine, "bank5", state->prg_bank[4]);
4303               }
42994304               break;
43004305
43014306            case 9:
src/mess/drivers/nes.c
r8225r8226
295295MACHINE_DRIVER_END
296296
297297
298/* rom regions are just place-holders: they get removed and re-allocated when a cart is loaded */
298299ROM_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 */
309304ROM_END
310305
311306ROM_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 */
322311ROM_END
323312
324313ROM_START( famicom )
325314   ROM_REGION( 0x10000, "maincpu", 0 )  /* Main RAM + program banks */
326315   ROM_LOAD_OPTIONAL( "disksys.rom", 0xe000, 0x2000, CRC(5e607dcf) SHA1(57fe1bdee955bb48d357e463ccbf129496930b62) )
327316
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 */
336320ROM_END
337321
338322ROM_START( famitwin )
339323   ROM_REGION( 0x10000, "maincpu", 0 )  /* Main RAM + program banks */
340324   ROM_LOAD_OPTIONAL( "disksyst.rom", 0xe000, 0x2000, CRC(4df24a6c) SHA1(e4e41472c454f928e53eb10e0509bf7d1146ecc1) )
341325
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 */
350329ROM_END
351330
352331ROM_START( m82 )
r8225r8226
354333   /* Banks to be mapped at 0xe000? More investigations needed... */
355334   ROM_LOAD( "m82_v1_0.bin", 0x10000, 0x4000, CRC(7d56840a) SHA1(cbd2d14fa073273ba58367758f40d67fd8a9106d) )
356335
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 */
365339ROM_END
366340
367341// see http://www.disgruntleddesigner.com/chrisc/drpcjr/index.html
r8225r8226
374348   // Not sure if we should support this: hacked version 1.5a by Chris Covell with bugfixes and GameGenie support
375349//  ROM_LOAD("drpcjr_v1_5_gg.bin", 0x10000, 0x8000, CRC(98f2033b) SHA1(93c114da787a19279d1a46667c2f69b49e25d4f1) )
376350
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 */
385354ROM_END
386355
387356ROM_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 */
398361ROM_END
399362
400363/***************************************************************************

Previous 15994 Revisions Next


© 1998-2018 The MESS Team