Previous 15994 Revisions Next

r8403 Tuesday 6th July, 2010 at 09:00:53 UTC by Miodrag Milanović
Connected a5200 softlist (not all things working fine)
[src/mess/drivers]atari.c
[src/mess/machine]ataricrt.c

src/mess/machine/ataricrt.c
r8402r8403
272272{
273273   UINT8 *mem = memory_region(image.device().machine, "maincpu");
274274   int size;
275
276   /* load an optional (dual) cartidge */
277   size = image.fread(&mem[0x4000], 0x8000);
275   if (image.software_entry() == NULL)
276   {
277      /* load an optional (dual) cartidge */
278      size = image.fread(&mem[0x4000], 0x8000);
279   } else {
280      size = image.get_software_region_length("rom");
281      memcpy(mem + 0x4000, image.get_software_region("rom"), size);
282   }
278283   if (size<0x8000) memmove(mem+0x4000+0x8000-size, mem+0x4000, size);
279284   // mirroring of smaller cartridges
280285   if (size <= 0x1000) memcpy(mem+0xa000, mem+0xb000, 0x1000);
r8402r8403
291296      }
292297   }
293298   logerror("%s loaded cartridge '%s' size %dK\n",
294      image.device().machine->gamedrv->name, image.filename() , size/1024);
299      image.device().machine->gamedrv->name, image.filename() , size/1024);   
295300   return IMAGE_INIT_PASS;
296301}
297302
src/mess/drivers/atari.c
r8402r8403
12461246   MDRV_CARTSLOT_NOT_MANDATORY
12471247   MDRV_CARTSLOT_LOAD(a5200_cart)
12481248   MDRV_CARTSLOT_UNLOAD(a5200_cart)
1249   MDRV_CARTSLOT_INTERFACE("a5200_cart")
12491250
1251   /* Software lists */
1252   MDRV_SOFTWARE_LIST_ADD("a5200")
1253   
12501254   /* internal ram */
12511255   MDRV_RAM_MODIFY("messram")
12521256   MDRV_RAM_DEFAULT_SIZE("16K")

Previous 15994 Revisions Next


© 1998-2018 The MESS Team