From af55f61abfac5e03dd1c8a060953ee63ca2b9a87 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Tue, 28 Jul 2015 14:18:35 +0200 Subject: [PATCH] floppy: Fix amiga crc (fixes adf) (nw) --- src/lib/formats/flopimg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/formats/flopimg.c b/src/lib/formats/flopimg.c index e2ee5122b2c..20ff211e147 100644 --- a/src/lib/formats/flopimg.c +++ b/src/lib/formats/flopimg.c @@ -1274,7 +1274,7 @@ void floppy_image_format_t::fixup_crc_amiga(std::vector &buffer, const g if(bit_r(buffer, crc->start + i)) res = res ^ (0x8000 >> ((i >> 1) & 15)); mfm_w(buffer, 16, 0, 1000, crc->write); - mfm_w(buffer, 16, res, 1000, crc->write+16); + mfm_w(buffer, 16, res, 1000, crc->write+32); } void floppy_image_format_t::fixup_crc_cbm(std::vector &buffer, const gen_crc_info *crc)