mirror of
https://github.com/holub/mame
synced 2025-05-18 11:39:29 +03:00
minor debugging. no whatsnew.
This commit is contained in:
parent
a4a7c23c33
commit
57b5ee3b28
@ -211,6 +211,13 @@ FLOPPY_CONSTRUCT( dsk_dsk_construct )
|
|||||||
}
|
}
|
||||||
|
|
||||||
floppy_image_read(floppy, header, 0, 0x100);
|
floppy_image_read(floppy, header, 0, 0x100);
|
||||||
|
#ifdef SPOT_DUPLICATES
|
||||||
|
// this allow to spot .dsk files with same data and different headers, making easier to debug softlists.
|
||||||
|
UINT32 temp_size = floppy_image_size(floppy);
|
||||||
|
UINT8 tmp_copy[temp_size - 0x100];
|
||||||
|
floppy_image_read(floppy,tmp_copy,0x100,temp_size - 0x100);
|
||||||
|
printf("CRC16: %d\n", ccitt_crc16(0xffff, tmp_copy, temp_size - 0x100));
|
||||||
|
#endif
|
||||||
|
|
||||||
tag = (struct dskdsk_tag *) floppy_create_tag(floppy, sizeof(struct dskdsk_tag));
|
tag = (struct dskdsk_tag *) floppy_create_tag(floppy, sizeof(struct dskdsk_tag));
|
||||||
if (!tag)
|
if (!tag)
|
||||||
|
@ -1558,6 +1558,7 @@ static int megadrive_load_nonlist(device_image_interface &image)
|
|||||||
/* is this a SMD file? */
|
/* is this a SMD file? */
|
||||||
if (genesis_is_SMD(&rawROM[0x2200], (unsigned)length))
|
if (genesis_is_SMD(&rawROM[0x2200], (unsigned)length))
|
||||||
{
|
{
|
||||||
|
// printf("SMD!\n");
|
||||||
tmpROMnew = ROM;
|
tmpROMnew = ROM;
|
||||||
tmpROM = ROM + 0x2000 + 512;
|
tmpROM = ROM + 0x2000 + 512;
|
||||||
|
|
||||||
@ -1589,6 +1590,7 @@ static int megadrive_load_nonlist(device_image_interface &image)
|
|||||||
else if ((rawROM[0x2080] == 'E') && (rawROM[0x2081] == 'A') &&
|
else if ((rawROM[0x2080] == 'E') && (rawROM[0x2081] == 'A') &&
|
||||||
(rawROM[0x2082] == 'M' || rawROM[0x2082] == 'G'))
|
(rawROM[0x2082] == 'M' || rawROM[0x2082] == 'G'))
|
||||||
{
|
{
|
||||||
|
// printf("MD!\n");
|
||||||
tmpROMnew = global_alloc_array(unsigned char, length);
|
tmpROMnew = global_alloc_array(unsigned char, length);
|
||||||
secondhalf = &tmpROMnew[length >> 1];
|
secondhalf = &tmpROMnew[length >> 1];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user