Previous 199869 Revisions Next

r19205 Wednesday 28th November, 2012 at 21:53:22 UTC by O. Galibert
mirage: Make it boot by whatever means necessary [O. Galibert]
[src/mess/drivers]mirage.c

trunk/src/mess/drivers/mirage.c
r19204r19205
9393   DECLARE_FLOPPY_FORMATS( floppy_formats );
9494
9595    void fdc_intrq_w(bool state);
96    void fdc_drq_w(bool state);
9697   DECLARE_DRIVER_INIT(mirage);
9798   virtual void video_start();
9899   UINT32 screen_update_mirage(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
r19204r19205
119120    m_maincpu->set_input_line(INPUT_LINE_NMI, state);
120121}
121122
123void mirage_state::fdc_drq_w(bool state)
124{
125    m_maincpu->set_input_line(M6809_FIRQ_LINE, state);
126}
127
122128static void mirage_doc_irq(device_t *device, int state)
123129{
124130}
r19204r19205
144150}
145151
146152static 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
148154   AM_RANGE(0x8000, 0xbfff) AM_RAM         // main RAM
149155    AM_RANGE(0xc000, 0xdfff) AM_RAM         // expansion RAM
150156   AM_RANGE(0xe100, 0xe100) AM_DEVREADWRITE("acia6850", acia6850_device, status_read, control_write)
151157   AM_RANGE(0xe101, 0xe101) AM_DEVREADWRITE("acia6850", acia6850_device, data_read, data_write)
152158   AM_RANGE(0xe200, 0xe2ff) AM_DEVREADWRITE("via6522", via6522_device, read, write)
159   AM_RANGE(0xe400, 0xe4ff) AM_NOP
153160   AM_RANGE(0xe800, 0xe803) AM_DEVREADWRITE("wd1772", wd1772_t, read, write)
154161    AM_RANGE(0xec00, 0xecef) AM_DEVREADWRITE("es5503", es5503_device, read, write)
155162   AM_RANGE(0xf000, 0xffff) AM_ROM AM_REGION("osrom", 0)
r19204r19205
248255   DEVCB_NULL,         // cts in
249256   DEVCB_NULL,         // rts out
250257   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)
252260};
253261
254262static MACHINE_CONFIG_START( mirage, mirage_state )
r19204r19205
293301    {
294302        m_fdc->set_floppy(floppy);
295303        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));
296305
297306        floppy->ss_w(0);
298307    }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team