trunk/src/mess/drivers/mirage.c
| r19204 | r19205 | |
| 93 | 93 | DECLARE_FLOPPY_FORMATS( floppy_formats ); |
| 94 | 94 | |
| 95 | 95 | void fdc_intrq_w(bool state); |
| 96 | void fdc_drq_w(bool state); |
| 96 | 97 | DECLARE_DRIVER_INIT(mirage); |
| 97 | 98 | virtual void video_start(); |
| 98 | 99 | UINT32 screen_update_mirage(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); |
| r19204 | r19205 | |
| 119 | 120 | m_maincpu->set_input_line(INPUT_LINE_NMI, state); |
| 120 | 121 | } |
| 121 | 122 | |
| 123 | void mirage_state::fdc_drq_w(bool state) |
| 124 | { |
| 125 | m_maincpu->set_input_line(M6809_FIRQ_LINE, state); |
| 126 | } |
| 127 | |
| 122 | 128 | static void mirage_doc_irq(device_t *device, int state) |
| 123 | 129 | { |
| 124 | 130 | } |
| r19204 | r19205 | |
| 144 | 150 | } |
| 145 | 151 | |
| 146 | 152 | static ADDRESS_MAP_START( mirage_map, AS_PROGRAM, 8, mirage_state ) |
| 147 | | AM_RANGE(0x0000, 0x7fff) AM_ROMBANK("sndbank") // 32k window on 128k of wave RAM |
| 153 | AM_RANGE(0x0000, 0x7fff) AM_RAMBANK("sndbank") // 32k window on 128k of wave RAM |
| 148 | 154 | AM_RANGE(0x8000, 0xbfff) AM_RAM // main RAM |
| 149 | 155 | AM_RANGE(0xc000, 0xdfff) AM_RAM // expansion RAM |
| 150 | 156 | AM_RANGE(0xe100, 0xe100) AM_DEVREADWRITE("acia6850", acia6850_device, status_read, control_write) |
| 151 | 157 | AM_RANGE(0xe101, 0xe101) AM_DEVREADWRITE("acia6850", acia6850_device, data_read, data_write) |
| 152 | 158 | AM_RANGE(0xe200, 0xe2ff) AM_DEVREADWRITE("via6522", via6522_device, read, write) |
| 159 | AM_RANGE(0xe400, 0xe4ff) AM_NOP |
| 153 | 160 | AM_RANGE(0xe800, 0xe803) AM_DEVREADWRITE("wd1772", wd1772_t, read, write) |
| 154 | 161 | AM_RANGE(0xec00, 0xecef) AM_DEVREADWRITE("es5503", es5503_device, read, write) |
| 155 | 162 | AM_RANGE(0xf000, 0xffff) AM_ROM AM_REGION("osrom", 0) |
| r19204 | r19205 | |
| 248 | 255 | DEVCB_NULL, // cts in |
| 249 | 256 | DEVCB_NULL, // rts out |
| 250 | 257 | DEVCB_NULL, // dcd in |
| 251 | | DEVCB_CPU_INPUT_LINE("maincpu", M6809_FIRQ_LINE) |
| 258 | DEVCB_NULL |
| 259 | // DEVCB_CPU_INPUT_LINE("maincpu", M6809_FIRQ_LINE) |
| 252 | 260 | }; |
| 253 | 261 | |
| 254 | 262 | static MACHINE_CONFIG_START( mirage, mirage_state ) |
| r19204 | r19205 | |
| 293 | 301 | { |
| 294 | 302 | m_fdc->set_floppy(floppy); |
| 295 | 303 | m_fdc->setup_intrq_cb(wd1772_t::line_cb(FUNC(mirage_state::fdc_intrq_w), this)); |
| 304 | m_fdc->setup_drq_cb(wd1772_t::line_cb(FUNC(mirage_state::fdc_drq_w), this)); |
| 296 | 305 | |
| 297 | 306 | floppy->ss_w(0); |
| 298 | 307 | } |