mirror of
https://github.com/86Box/86Box.git
synced 2025-01-23 01:31:51 -05:00
And a fix for writes as well.
This commit is contained in:
parent
6a881b8d6c
commit
5bc8b4bb07
1 changed files with 8 additions and 3 deletions
|
@ -1498,10 +1498,15 @@ uint8_t
|
|||
d86f_get_data(int drive, int base)
|
||||
{
|
||||
d86f_t *dev = d86f[drive];
|
||||
int data;
|
||||
int data, byte_count;
|
||||
|
||||
if (dev->data_find.bytes_obtained < (d86f_get_data_len(drive) + base)) {
|
||||
data = fdc_getdata(d86f_fdc, dev->data_find.bytes_obtained == (d86f_get_data_len(drive) + base - 1));
|
||||
if (fdd_get_turbo(drive) && (dev->version == 0x0063))
|
||||
byte_count = dev->turbo_pos;
|
||||
else
|
||||
byte_count = dev->data_find.bytes_obtained;
|
||||
|
||||
if (byte_count < (d86f_get_data_len(drive) + base)) {
|
||||
data = fdc_getdata(d86f_fdc, byte_count == (d86f_get_data_len(drive) + base - 1));
|
||||
if ((data & DMA_OVER) || (data == -1)) {
|
||||
dev->dma_over++;
|
||||
if (data == -1)
|
||||
|
|
Loading…
Reference in a new issue