From d8c9b7ab761cd459ffb5af7229243a97709a20d0 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 5 Oct 2016 15:06:26 +0200 Subject: [PATCH] Fixed 86F read state detection, should make 86F as well as any floppy image formats proxied to the 86F handler read again. --- src/disc_86f.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/disc_86f.c b/src/disc_86f.c index ee7fa4e3c..49c0a492f 100644 --- a/src/disc_86f.c +++ b/src/disc_86f.c @@ -1622,8 +1622,8 @@ int d86f_find_state_nf(int drive) { int temp; temp = (d86f[drive].state == STATE_READ_FIND_SECTOR); + temp = temp || (d86f[drive].state == STATE_COMPARE_FIND_SECTOR); temp = temp || d86f_find_state_nf_ignore_id(drive); - temp = (d86f[drive].state == STATE_COMPARE_FIND_SECTOR); temp = temp || (d86f[drive].state == STATE_WRITE_FIND_SECTOR); temp = temp || (d86f[drive].state == STATE_READ_FIND_ADDRESS); return temp; @@ -1681,6 +1681,7 @@ int d86f_read_state(int drive) temp = d86f_read_state_data(drive); temp = temp || d86f_read_state_crc(drive); temp = temp || d86f_read_state_gap3(drive); + temp = temp || (d86f[drive].state == STATE_COMPARE_SECTOR); return temp; } @@ -2271,7 +2272,7 @@ void d86f_poll_find_nf(int drive, int side) } break; case BYTE_ID_CRC: - pclog("Last sector: %08X\n", d86f[drive].last_sector.dword); + // pclog("Last sector: %08X\n", d86f[drive].last_sector.dword); d86f[drive].id_pos = d86f_get_pos(drive); d86f[drive].track_crc.bytes[d86f[drive].id_pos ^ 1] = d86f[drive].track_data_byte; break;