Revision b072a3c8 hw/fdc.c
b/hw/fdc.c | ||
---|---|---|
1622 | 1622 |
SET_CUR_DRV(fdctrl, fdctrl->fifo[1] & FD_DOR_SELMASK); |
1623 | 1623 |
cur_drv = get_cur_drv(fdctrl); |
1624 | 1624 |
fdctrl_reset_fifo(fdctrl); |
1625 |
/* The seek command just sends step pulses to the drive and doesn't care if |
|
1626 |
* there is a medium inserted of if it's banging the head against the drive. |
|
1627 |
*/ |
|
1625 | 1628 |
if (fdctrl->fifo[2] > cur_drv->max_track) { |
1626 |
fdctrl_raise_irq(fdctrl, FD_SR0_ABNTERM | FD_SR0_SEEK);
|
|
1629 |
cur_drv->track = cur_drv->max_track;
|
|
1627 | 1630 |
} else { |
1628 | 1631 |
cur_drv->track = fdctrl->fifo[2]; |
1629 |
/* Raise Interrupt */ |
|
1630 |
fdctrl_raise_irq(fdctrl, FD_SR0_SEEK); |
|
1631 | 1632 |
} |
1633 |
/* Raise Interrupt */ |
|
1634 |
fdctrl_raise_irq(fdctrl, FD_SR0_SEEK); |
|
1632 | 1635 |
} |
1633 | 1636 |
|
1634 | 1637 |
static void fdctrl_handle_perpendicular_mode(FDCtrl *fdctrl, int direction) |
Also available in: Unified diff