trunk/src/mess/drivers/pc9801.c
| r18497 | r18498 | |
| 245 | 245 | #include "imagedev/flopdrv.h" |
| 246 | 246 | #include "machine/ram.h" |
| 247 | 247 | #include "formats/mfi_dsk.h" |
| 248 | #include "formats/d88_dsk.h" |
| 248 | 249 | |
| 249 | 250 | #define UPD1990A_TAG "upd1990a" |
| 250 | 251 | #define UPD8251_TAG "upd8251" |
| r18497 | r18498 | |
| 258 | 259 | m_rtc(*this, UPD1990A_TAG), |
| 259 | 260 | m_sio(*this, UPD8251_TAG), |
| 260 | 261 | m_hgdc1(*this, "upd7220_chr"), |
| 261 | | m_hgdc2(*this, "upd7220_btm") |
| 262 | | , |
| 262 | m_hgdc2(*this, "upd7220_btm"), |
| 263 | 263 | m_video_ram_1(*this, "video_ram_1"), |
| 264 | 264 | m_video_ram_2(*this, "video_ram_2"){ } |
| 265 | 265 | |
| r18497 | r18498 | |
| 587 | 587 | } |
| 588 | 588 | |
| 589 | 589 | static const floppy_format_type pc9801_floppy_formats[] = { |
| 590 | FLOPPY_D88_FORMAT, |
| 590 | 591 | FLOPPY_MFI_FORMAT, |
| 591 | 592 | NULL |
| 592 | 593 | }; |
| r18497 | r18498 | |
| 2526 | 2527 | |
| 2527 | 2528 | upd765a_device *fdc; |
| 2528 | 2529 | fdc = machine().device<upd765a_device>(":upd765_2hd"); |
| 2529 | | fdc->setup_intrq_cb(upd765a_device::line_cb(FUNC(pc9801_state::fdc_2hd_irq), this)); |
| 2530 | | fdc->setup_drq_cb(upd765a_device::line_cb(FUNC(pc9801_state::fdc_2hd_drq), this)); |
| 2530 | if (fdc) |
| 2531 | { |
| 2532 | fdc->setup_intrq_cb(upd765a_device::line_cb(FUNC(pc9801_state::fdc_2hd_irq), this)); |
| 2533 | fdc->setup_drq_cb(upd765a_device::line_cb(FUNC(pc9801_state::fdc_2hd_drq), this)); |
| 2534 | } |
| 2531 | 2535 | |
| 2532 | 2536 | fdc = machine().device<upd765a_device>(":upd765_2dd"); |
| 2533 | | fdc->setup_intrq_cb(upd765a_device::line_cb(FUNC(pc9801_state::fdc_2dd_irq), this)); |
| 2534 | | fdc->setup_drq_cb(upd765a_device::line_cb(FUNC(pc9801_state::fdc_2dd_drq), this)); |
| 2537 | if (fdc) |
| 2538 | { |
| 2539 | fdc->setup_intrq_cb(upd765a_device::line_cb(FUNC(pc9801_state::fdc_2dd_irq), this)); |
| 2540 | fdc->setup_drq_cb(upd765a_device::line_cb(FUNC(pc9801_state::fdc_2dd_drq), this)); |
| 2541 | } |
| 2535 | 2542 | |
| 2536 | 2543 | } |
| 2537 | 2544 | |