Skip to content

Commit

Permalink
Fix fdc.c
Browse files Browse the repository at this point in the history
always remember, odd address returns buserror (oxff), otherwise returns
0.
  • Loading branch information
negativeExponent committed Aug 15, 2024
1 parent 8ed8eae commit 58cba3c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions x68k/fdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,11 +550,12 @@ uint8_t FASTCALL FDC_Read(uint32_t adr)

case 5:
/* Drive Select Register */
ret = 0;
if ((fdc.ctrl & 1) && (FDD_IsReady(0)))
return 0x80;
ret |= 0x80;
if ((fdc.ctrl & 2) && (FDD_IsReady(1)))
return 0x80;
return 0;
ret |= 0x80;
return ret;
}

return 0xff;
Expand Down

0 comments on commit 58cba3c

Please sign in to comment.