Changeset 104189 in vbox
- Timestamp:
- Apr 5, 2024 1:25:56 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevFdc.cpp
r103883 r104189 1289 1289 int tmp; 1290 1290 fdctrl->data_len = 128 << (fdctrl->fifo[5] > 7 ? 7 : fdctrl->fifo[5]); 1291 tmp = (fdctrl->fifo[6] - ks + 1); 1292 if (fdctrl->fifo[0] & 0x80) 1293 tmp += fdctrl->fifo[6]; 1291 if (fdctrl->fifo[6] >= ks) { 1292 /* EOT is beyond the starting sector */ 1293 tmp = (fdctrl->fifo[6] - ks + 1); 1294 if (fdctrl->fifo[0] & 0x80) 1295 tmp += fdctrl->fifo[6]; 1296 } else { 1297 /* EOT is below starting sector; keep going until we run out of sectors. */ 1298 tmp = 255; 1299 } 1294 1300 fdctrl->data_len *= tmp; 1295 1301 }
Note:
See TracChangeset
for help on using the changeset viewer.