src/mess/formats/d88_dsk.c
| r11191 | r11192 | |
| 30 | 30 | #include "emu.h" |
| 31 | 31 | #include "imagedev/flopimg.h" |
| 32 | 32 | #include "imagedev/flopdrv.h" |
| 33 | #include "imageutl.h" |
| 33 | 34 | |
| 34 | 35 | #define D88_HEADER_LEN 0x2b0 |
| 35 | 36 | |
| r11191 | r11192 | |
| 276 | 277 | |
| 277 | 278 | floppy_image_read(floppy,header,0,D88_HEADER_LEN); |
| 278 | 279 | |
| 280 | if (0) |
| 281 | { |
| 282 | // there exist many .d88 files with same data and different headers and |
| 283 | // this allows to spot duplicates, making easier to debug softlists. |
| 284 | UINT32 temp_size = floppy_image_size(floppy); |
| 285 | UINT8 tmp_copy[temp_size - D88_HEADER_LEN]; |
| 286 | floppy_image_read(floppy,tmp_copy,D88_HEADER_LEN,temp_size - D88_HEADER_LEN); |
| 287 | printf("CRC16: %d\n", ccitt_crc16(0xffff, tmp_copy, temp_size - D88_HEADER_LEN)); |
| 288 | } |
| 289 | |
| 279 | 290 | if(prot) |
| 280 | 291 | *prot = header[0x1a]; |
| 281 | 292 | if(type) |