Previous 15994 Revisions Next

r13461 Sunday 4th December, 2011 at 11:18:03 UTC by Fabio Priuli
minor debugging. no whatsnew.
[src/lib/formats]dsk_dsk.c
[src/mame/machine]md_cart.c

src/mame/machine/md_cart.c
r13460r13461
15581558   /* is this a SMD file? */
15591559   if (genesis_is_SMD(&rawROM[0x2200], (unsigned)length))
15601560   {
1561      printf("SMD!\n");
1561//      printf("SMD!\n");
15621562      tmpROMnew = ROM;
15631563      tmpROM = ROM + 0x2000 + 512;
15641564
r13460r13461
15901590   else if ((rawROM[0x2080] == 'E') && (rawROM[0x2081] == 'A') &&
15911591          (rawROM[0x2082] == 'M' || rawROM[0x2082] == 'G'))
15921592   {
1593      printf("MD!\n");
1593//      printf("MD!\n");
15941594      tmpROMnew = global_alloc_array(unsigned char, length);
15951595      secondhalf = &tmpROMnew[length >> 1];
15961596
src/lib/formats/dsk_dsk.c
r13460r13461
211211   }
212212
213213   floppy_image_read(floppy, header, 0, 0x100);
214#ifdef SPOT_DUPLICATES
215   // this allow to spot .dsk files with same data and different headers, making easier to debug softlists.
216   UINT32 temp_size = floppy_image_size(floppy);
217   UINT8 tmp_copy[temp_size - 0x100];
218   floppy_image_read(floppy,tmp_copy,0x100,temp_size - 0x100);
219   printf("CRC16: %d\n", ccitt_crc16(0xffff, tmp_copy, temp_size - 0x100));
220#endif
214221
215222   tag = (struct dskdsk_tag *) floppy_create_tag(floppy, sizeof(struct dskdsk_tag));
216223   if (!tag)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team