Previous 199869 Revisions Next

r33157 Monday 3rd November, 2014 at 08:28:00 UTC by Curt Coder
(MESS) victor9k: Floppy WIP. (nw)
[src/mess/drivers]victor9k.c
[src/mess/includes]victor9k.h
[src/mess/machine]victor9k_fdc.c victor9k_fdc.h

trunk/src/mess/drivers/victor9k.c
r241668r241669
375375//  MACHINE INITIALIZATION
376376//**************************************************************************
377377
378//-------------------------------------------------
379//  MACHINE_START( victor9k )
380//-------------------------------------------------
381
382378void victor9k_state::machine_start()
383379{
384380   // state saving
r241668r241669
395391   program.install_ram(0x00000, m_ram->size() - 1, m_ram->pointer());
396392}
397393
394void victor9k_state::machine_reset()
395{
396   m_maincpu->reset();
397   m_upd7201->reset();
398   m_ssda->reset();
399   m_via1->reset();
400   m_via2->reset();
401   m_via3->reset();
402   m_crtc->reset();
403   m_fdc->reset();
404}
398405
399406
400407//**************************************************************************
trunk/src/mess/includes/victor9k.h
r241668r241669
100100   required_shared_ptr<UINT8> m_video_ram;
101101
102102   virtual void machine_start();
103   virtual void machine_reset();
103104
104105   DECLARE_WRITE8_MEMBER( via1_pa_w );
105106   DECLARE_WRITE_LINE_MEMBER( write_nfrd );
trunk/src/mess/machine/victor9k_fdc.c
r241668r241669
152152
153153   MCFG_DEVICE_ADD(M6522_5_TAG, VIA6522, XTAL_30MHz/30)
154154   MCFG_VIA6522_IRQ_HANDLER(WRITELINE(victor_9000_fdc_t, via5_irq_w))
155   MCFG_VIA6522_READPA_HANDLER(READ8(victor_9000_fdc_t, via5_pa_r))
156   MCFG_VIA6522_WRITEPB_HANDLER(WRITE8(victor_9000_fdc_t, via5_pb_w))
155157
156158   MCFG_DEVICE_ADD(M6522_6_TAG, VIA6522, XTAL_30MHz/30)
157159   MCFG_VIA6522_READPA_HANDLER(READ8(victor_9000_fdc_t, via6_pa_r))
r241668r241669
268270   // resolve callbacks
269271   m_irq_cb.resolve_safe();
270272
273   // reset devices
274   m_via4->reset();
275   m_via5->reset();
276   m_via6->reset();
277
271278   // set floppy callbacks
272279   m_floppy0->setup_ready_cb(floppy_image_device::ready_cb(FUNC(victor_9000_fdc_t::ready0_cb), this));
273280   m_floppy0->setup_load_cb(floppy_image_device::load_cb(FUNC(victor_9000_fdc_t::load0_cb), this));
r241668r241669
473480}
474481
475482
476/*
483READ8_MEMBER( victor_9000_fdc_t::via5_pa_r )
484{
485   /*
477486
478    bit     description
487       bit     description
479488
480    PA0     E0
481    PA1     E1
482    PA2     I1
483    PA3     E2
484    PA4     E4
485    PA5     E5
486    PA6     I7
487    PA7     E6
489       PA0     E0
490       PA1     E1
491       PA2     I1
492       PA3     E2
493       PA4     E4
494       PA5     E5
495       PA6     I7
496       PA7     E6
488497
489*/
498   */
490499
500   return 0;
501}
502
491503WRITE8_MEMBER( victor_9000_fdc_t::via5_pb_w )
492504{
493505   /*
trunk/src/mess/machine/victor9k_fdc.h
r241668r241669
6666   DECLARE_WRITE_LINE_MEMBER( mode_w );
6767   DECLARE_WRITE_LINE_MEMBER( via4_irq_w );
6868
69   DECLARE_READ8_MEMBER( via5_pa_r );
6970   DECLARE_WRITE8_MEMBER( via5_pb_w );
7071   DECLARE_WRITE_LINE_MEMBER( via5_irq_w );
7172


Previous 199869 Revisions Next


© 1997-2024 The MAME Team