Previous 15994 Revisions Next

r15854 Saturday 11th August, 2012 at 22:19:11 UTC by Curt Coder
Fixed reset on the Commodore disk drives. (nw)
[src/mess/machine]c1541.c c1551.c c1551.h c1571.c c1581.c c2031.c c2040.c

src/mess/machine/c1581.c
r15853r15854
446446
447447void base_c1581_device::device_reset()
448448{
449    m_maincpu->reset();
450   
451    m_cia->reset();   
452   
453   wd17xx_mr_w(m_fdc, 0);
454   wd17xx_mr_w(m_fdc, 1);
455
449456   m_sp_out = 1;
450457   m_cnt_out = 1;
451458}
src/mess/machine/c2031.c
r15853r15854
497497
498498void c2031_device::device_reset()
499499{
500    m_maincpu->reset();
501   
502    m_via0->reset();
503    m_via1->reset();
500504}
501505
502506
src/mess/machine/c2040.c
r15853r15854
16511651
16521652void base_c2040_device::device_reset()
16531653{
1654   // toggle M6502 SO
1655   m_fdccpu->set_input_line(M6502_SET_OVERFLOW, ASSERT_LINE);
1656   m_fdccpu->set_input_line(M6502_SET_OVERFLOW, CLEAR_LINE);
1654    m_maincpu->reset();
16571655
1656      // toggle M6502 SO
1657   m_maincpu->set_input_line(M6502_SET_OVERFLOW, ASSERT_LINE);
1658   m_maincpu->set_input_line(M6502_SET_OVERFLOW, CLEAR_LINE);
1659
1660    m_fdccpu->reset();
1661   
1662    m_riot0->reset();
1663    m_riot1->reset();
1664    m_miot->reset();
1665    m_via->reset();
1666
16581667   // turn off spindle motors
16591668   m_unit[0].m_mtr = m_unit[1].m_mtr = 1;
16601669}
src/mess/machine/c1541.c
r15853r15854
816816
817817void c1541_device::device_reset()
818818{
819    m_maincpu->reset();
820   
821    m_via0->reset();
822    m_via1->reset();
819823}
820824
821825
src/mess/machine/c1551.c
r15853r15854
507507
508508void c1551_device::device_reset()
509509{
510   m_maincpu->reset();
511
512   m_tpi0->reset();
513
510514   // initialize gate array
511515   m_ga->test_w(1);
512516   m_ga->soe_w(1);
r15853r15854
571575
572576
573577//-------------------------------------------------
578//  plus4_breset_w - buffered reset write
579//-------------------------------------------------
580
581void c1551_device::plus4_breset_w(int state)
582{
583   if (state == ASSERT_LINE)
584   {
585      device_reset();
586   }
587}
588
589
590//-------------------------------------------------
574591//  on_disk_change -
575592//-------------------------------------------------
576593
src/mess/machine/c1551.h
r15853r15854
7070    // device_plus4_expansion_card_interface overrides
7171   virtual UINT8 plus4_cd_r(address_space &space, offs_t offset, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h);
7272   virtual void plus4_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h);
73   virtual void plus4_breset_w(int state);
7374
7475private:
7576   required_device<cpu_device> m_maincpu;
src/mess/machine/c1571.c
r15853r15854
803803
804804void base_c1571_device::device_reset()
805805{
806    m_maincpu->reset();
807   
808    m_via0->reset();
809    m_via1->reset();   
810    m_cia->reset();   
811   
812   wd17xx_mr_w(m_fdc, 0);
813   wd17xx_mr_w(m_fdc, 1);
814
806815   m_sp_out = 1;
807816   set_iec_data();
808817

Previous 15994 Revisions Next


© 1998-2018 The MESS Team