trunk/src/mess/includes/v1050.h
| r19356 | r19357 | |
| 7 | 7 | #include "emu.h" |
| 8 | 8 | #include "cpu/z80/z80.h" |
| 9 | 9 | #include "cpu/m6502/m6502.h" |
| 10 | | #include "imagedev/flopdrv.h" |
| 11 | | #include "formats/basicdsk.h" |
| 12 | 10 | #include "machine/ctronics.h" |
| 13 | 11 | #include "machine/i8214.h" |
| 14 | 12 | #include "machine/i8251.h" |
| r19356 | r19357 | |
| 89 | 87 | required_device<msm58321_device> m_rtc; |
| 90 | 88 | required_device<i8251_device> m_uart_kb; |
| 91 | 89 | required_device<i8251_device> m_uart_sio; |
| 92 | | required_device<fd1793_t> m_fdc; |
| 90 | required_device<mb8877_t> m_fdc; |
| 93 | 91 | required_device<mc6845_device> m_crtc; |
| 94 | 92 | required_device<centronics_device> m_centronics; |
| 95 | 93 | required_device<ram_device> m_ram; |
trunk/src/mess/drivers/v1050.c
| r19356 | r19357 | |
| 459 | 459 | AM_RANGE(0x8c, 0x8c) AM_DEVREADWRITE(I8251A_SIO_TAG, i8251_device, data_r, data_w) |
| 460 | 460 | AM_RANGE(0x8d, 0x8d) AM_DEVREADWRITE(I8251A_SIO_TAG, i8251_device, status_r, control_w) |
| 461 | 461 | AM_RANGE(0x90, 0x93) AM_DEVREADWRITE(I8255A_MISC_TAG, i8255_device, read, write) |
| 462 | | AM_RANGE(0x94, 0x97) AM_DEVREADWRITE(MB8877_TAG, fd1793_t, read, write) |
| 462 | AM_RANGE(0x94, 0x97) AM_DEVREADWRITE(MB8877_TAG, mb8877_t, read, write) |
| 463 | 463 | AM_RANGE(0x9c, 0x9f) AM_DEVREADWRITE(I8255A_RTC_TAG, i8255_device, read, write) |
| 464 | 464 | AM_RANGE(0xa0, 0xa0) AM_READWRITE(vint_clr_r, vint_clr_w) |
| 465 | 465 | AM_RANGE(0xb0, 0xb0) AM_READWRITE(dint_clr_r, dint_clr_w) |
| r19356 | r19357 | |
| 999 | 999 | address_space &program = m_maincpu->space(AS_PROGRAM); |
| 1000 | 1000 | |
| 1001 | 1001 | // floppy callbacks |
| 1002 | | m_fdc->setup_intrq_cb(fd1793_t::line_cb(FUNC(v1050_state::fdc_intrq_w), this)); |
| 1003 | | m_fdc->setup_drq_cb(fd1793_t::line_cb(FUNC(v1050_state::fdc_drq_w), this)); |
| 1002 | m_fdc->setup_intrq_cb(wd_fdc_t::line_cb(FUNC(v1050_state::fdc_intrq_w), this)); |
| 1003 | m_fdc->setup_drq_cb(wd_fdc_t::line_cb(FUNC(v1050_state::fdc_drq_w), this)); |
| 1004 | 1004 | |
| 1005 | 1005 | // initialize I8214 |
| 1006 | 1006 | m_pic->etlg_w(1); |
| r19356 | r19357 | |
| 1087 | 1087 | MCFG_I8255A_ADD(I8255A_M6502_TAG, m6502_ppi_intf) |
| 1088 | 1088 | MCFG_I8251_ADD(I8251A_KB_TAG, /*XTAL_16MHz/8,*/ kb_8251_intf) |
| 1089 | 1089 | MCFG_I8251_ADD(I8251A_SIO_TAG, /*XTAL_16MHz/8,*/ sio_8251_intf) |
| 1090 | | MCFG_FD1793x_ADD(MB8877_TAG, XTAL_16MHz/16) |
| 1090 | MCFG_MB8877x_ADD(MB8877_TAG, XTAL_16MHz/16) |
| 1091 | 1091 | MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":0", v1050_floppies, "525dd", NULL, floppy_image_device::default_floppy_formats) |
| 1092 | 1092 | MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":1", v1050_floppies, "525dd", NULL, floppy_image_device::default_floppy_formats) |
| 1093 | 1093 | MCFG_FLOPPY_DRIVE_ADD(MB8877_TAG":2", v1050_floppies, NULL, NULL, floppy_image_device::default_floppy_formats) |