| 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 |
| r13460 | r13461 | |
|---|---|---|
| 1558 | 1558 | /* is this a SMD file? */ |
| 1559 | 1559 | if (genesis_is_SMD(&rawROM[0x2200], (unsigned)length)) |
| 1560 | 1560 | { |
| 1561 | printf("SMD!\n"); | |
| 1561 | // printf("SMD!\n"); | |
| 1562 | 1562 | tmpROMnew = ROM; |
| 1563 | 1563 | tmpROM = ROM + 0x2000 + 512; |
| 1564 | 1564 | |
| r13460 | r13461 | |
| 1590 | 1590 | else if ((rawROM[0x2080] == 'E') && (rawROM[0x2081] == 'A') && |
| 1591 | 1591 | (rawROM[0x2082] == 'M' || rawROM[0x2082] == 'G')) |
| 1592 | 1592 | { |
| 1593 | printf("MD!\n"); | |
| 1593 | // printf("MD!\n"); | |
| 1594 | 1594 | tmpROMnew = global_alloc_array(unsigned char, length); |
| 1595 | 1595 | secondhalf = &tmpROMnew[length >> 1]; |
| 1596 | 1596 |
| r13460 | r13461 | |
|---|---|---|
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | 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 | |
| 214 | 221 | |
| 215 | 222 | tag = (struct dskdsk_tag *) floppy_create_tag(floppy, sizeof(struct dskdsk_tag)); |
| 216 | 223 | if (!tag) |
| Previous | 15994 Revisions | Next |