Previous 15994 Revisions Next

r11192 Saturday 16th April, 2011 at 09:11:56 UTC by Fabio Priuli
d88_dsk.c: added a few lines of debug code (disabled by default). no whatsnew.
[src/mess/formats]d88_dsk.c

src/mess/formats/d88_dsk.c
r11191r11192
3030#include "emu.h"
3131#include "imagedev/flopimg.h"
3232#include "imagedev/flopdrv.h"
33#include "imageutl.h"
3334
3435#define D88_HEADER_LEN 0x2b0
3536
r11191r11192
276277
277278   floppy_image_read(floppy,header,0,D88_HEADER_LEN);
278279
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   
279290   if(prot)
280291      *prot = header[0x1a];
281292   if(type)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team