mirror of
https://github.com/holub/mame
synced 2025-05-23 22:20:01 +03:00
WD17xx: Fixed side 0 select. (nw)
This commit is contained in:
parent
2afff97d35
commit
f78d045fe1
@ -1010,17 +1010,13 @@ static void wd17xx_side_compare(device_t *device, UINT8 command)
|
|||||||
{
|
{
|
||||||
wd1770_state *w = get_safe_token(device);
|
wd1770_state *w = get_safe_token(device);
|
||||||
|
|
||||||
|
if (wd17xx_has_side_select(device))
|
||||||
|
wd17xx_set_side(device, (command & FDC_SIDE_CMP_T) ? 1 : 0);
|
||||||
|
|
||||||
if (command & FDC_SIDE_CMP_T)
|
if (command & FDC_SIDE_CMP_T)
|
||||||
{
|
|
||||||
w->head = (command & FDC_SIDE_CMP_S) ? 1 : 0;
|
w->head = (command & FDC_SIDE_CMP_S) ? 1 : 0;
|
||||||
|
|
||||||
if (wd17xx_has_side_select(device))
|
|
||||||
wd17xx_set_side(device, w->head);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
w->head = ~0;
|
w->head = ~0;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read a sector */
|
/* read a sector */
|
||||||
|
Loading…
Reference in New Issue
Block a user