Previous 15994 Revisions Next

r8042 Saturday 15th May, 2010 at 03:26:22 UTC by Robbbert
[JAGUAR] Removed support for Brutal SPorts Football 0FDCEB66 dodgy version. Use BCB1A4BF instead.
[src/mess/drivers]jaguar.c

src/mess/drivers/jaguar.c
r8041r8042
778778
779779static DEVICE_IMAGE_LOAD( jaguar )
780780{
781   UINT32 size, load_offset = 0, load_skip = 0;
781   UINT32 size, load_offset = 0;
782782
783783   if (image_software_entry(image) == NULL)
784784   {
r8041r8042
790790         load_offset = 0x2000;      // fix load address
791791         cart_base[0x101]=0x802000;   // fix exec address
792792      }
793      else
794793
795      /* see if we are loading Brutal Sports Football with CRC 0FDCEB66 */
796      if ((size & 0x200) == 0x200)
797         load_skip = 0x200;
798
799      /* Skip any header */
800      if (load_skip)
801         image_fseek(image, load_skip, SEEK_SET);
802
803794      /* Load cart into memory */
804      image_fread(image, &memory_region(image->machine, "maincpu")[0x800000+load_offset], size - load_skip);
795      image_fread(image, &memory_region(image->machine, "maincpu")[0x800000+load_offset], size);
805796   }
806797   else
807798   {
808799      size = image_get_software_region_length(image, "rom");
809800
810      /* skip header, if any */
811//      if ((size & 0x200) == 0x200)
812//      {
813//         load_skip = 0x200;
814//         memcpy(header, image_get_software_region(image, "rom") , load_skip);
815//      }
816
817      memcpy(cart_base, image_get_software_region(image, "rom") + load_skip, size - load_skip);
801      memcpy(cart_base, image_get_software_region(image, "rom"), size);
818802   }
819803
820804   memset(jaguar_shared_ram, 0, 0x200000);
821805   memcpy(jaguar_shared_ram, rom_base, 0x10);
822806
823   jaguar_fix_endian(image->machine, 0x800000+load_offset, size-load_skip);
807   jaguar_fix_endian(image->machine, 0x800000+load_offset, size);
824808
825809   /* Skip the logo */
826810   cart_base[0x102] = 1;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team