Previous 199869 Revisions Next

r18938 Tuesday 13th November, 2012 at 03:25:57 UTC by Angelo Salese
Added irq to upd765 2hd, still not working yet
[src/mess/drivers]pc9801.c

trunk/src/mess/drivers/pc9801.c
r18937r18938
11141114            if(((m_fdc_2hd_ctrl & 0x80) == 0) && (data & 0x80))
11151115               machine().device<upd765a_device>("upd765_2hd")->reset();
11161116
1117            /* force ready */
1118            if(data & 0x40)
1119               machine().device<upd765a_device>("upd765_2hd")->ready_w(1);
1120
11171121            m_fdc_2hd_ctrl = data;
1118            machine().device<floppy_connector>("upd765_2hd:0")->get_device()->mon_w(!(data & 0x40));
1119            machine().device<floppy_connector>("upd765_2hd:1")->get_device()->mon_w(!(data & 0x40));
1122            //machine().device<floppy_connector>("upd765_2hd:0")->get_device()->mon_w(!(data & 0x40));
1123            //machine().device<floppy_connector>("upd765_2hd:1")->get_device()->mon_w(!(data & 0x40));
11201124            break;
11211125      }
11221126   }
r18937r18938
24432447
24442448void pc9801_state::fdc_2hd_irq(bool state)
24452449{
2446   printf("IRQ %d\n",state);
2447   //if(state)
2448   //  pic8259_ir3_w(machine().device("pic8259_slave"), state);
2450   printf("IRQ 2HD %d\n",state);
2451   pic8259_ir3_w(machine().device("pic8259_slave"), state);
24492452}
24502453
24512454void pc9801_state::fdc_2hd_drq(bool state)
r18937r18938
24552458
24562459void pc9801_state::fdc_2dd_irq(bool state)
24572460{
2458   printf("IRQ %d\n",state);
2461   printf("IRQ 2DD %d\n",state);
24592462
24602463   if(m_fdc_2dd_ctrl & 8)
24612464   {

Previous 199869 Revisions Next


© 1997-2024 The MAME Team