Previous 15994 Revisions Next

r6567 Monday 7th December, 2009 at 11:39:06 UTC by Miodrag Milanović
[HT68K] Fixed drive selection bits
[src/mess/drivers]ht68k.c

src/mess/drivers/ht68k.c
r6566r6567
6060{
6161   const device_config *fdc = devtag_get_device(device->machine, "wd1770");
6262   wd17xx_set_side(fdc,BIT(data,3) ? 0 : 1);
63   if (BIT(data,4)) {
63   if (BIT(data,7)==0) {
6464       wd17xx_set_drive(fdc,0);
65   } else if (BIT(data,5)) {
65   } else if (BIT(data,6)==0) {
6666       wd17xx_set_drive(fdc,1);
67   } else if (BIT(data,6)) {
67   } else if (BIT(data,5)==0) {
6868       wd17xx_set_drive(fdc,2);
69   } else if (BIT(data,7)) {
69   } else if (BIT(data,4)==0) {
7070       wd17xx_set_drive(fdc,3);
7171   }
7272}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team