Previous 15994 Revisions Next

r15881 Monday 13th August, 2012 at 14:13:16 UTC by Curt Coder
[PLUS4] Fixed serial bus. (nw)
[src/mess/drivers]plus4.c
[src/mess/includes]plus4.h

src/mess/includes/plus4.h
r15880r15881
5252        m_exp_irq(CLEAR_LINE)
5353   { }
5454
55   required_device<cpu_device> m_maincpu;
55   required_device<legacy_cpu_device> m_maincpu;
5656   required_device<pls100_device> m_pla;
5757   required_device<mos7360_device> m_ted;
5858   optional_device<acia6551_device> m_acia;
src/mess/drivers/plus4.c
r15880r15881
452452   
453453   */
454454
455   UINT8 data = 0x2f;
455   UINT8 data = 0xff;
456   UINT8 c16_port7501 = m6510_get_port(m_maincpu);
456457
457   data |= (m_cassette->input() > +0.0) << 4;
458   if (BIT(c16_port7501, 0) || !m_iec->data_r() || ((m_cassette->get_state() & CASSETTE_MASK_UISTATE) != CASSETTE_STOPPED))
459      data &= ~0x80;
458460
459   data |= m_iec->clk_r() << 6;
460   data |= (m_iec->data_r() || ((m_cassette->get_state() & CASSETTE_MASK_UISTATE) == CASSETTE_STOPPED)) << 7;
461   if (BIT(c16_port7501, 1) || !m_iec->clk_r())
462      data &= ~0x40;
461463
464   if (m_cassette->input() > +0.0)
465      data |=  0x10;
466   else
467      data &= ~0x10;
468
462469   return data;
463470}
464471
r15880r15881
479486   
480487   */
481488
482   UINT8 data = 0x2f;
489   UINT8 data = 0xff;
490   UINT8 c16_port7501 = m6510_get_port(m_maincpu);
483491
484   data |= (m_cassette->input() > +0.0) << 4;
492   if (BIT(c16_port7501, 0) || !m_iec->data_r())
493      data &= ~0x80;
485494
486   data |= m_iec->clk_r() << 6;
487   data |= m_iec->data_r() << 7;
495   if (BIT(c16_port7501, 1) || !m_iec->clk_r())
496      data &= ~0x40;
488497
498   if (m_cassette->input() > +0.0)
499      data |=  0x10;
500   else
501      data &= ~0x10;
502
489503   return data;
490504}
491505
r15880r15881
960974//-------------------------------------------------
961975
962976static MACHINE_CONFIG_DERIVED( c16, pal )
977   MCFG_CPU_MODIFY(MOS7501_TAG)
978   MCFG_CPU_CONFIG(c16_cpu_intf)
979
963980   MCFG_DEVICE_REMOVE(MOS6551_TAG)
964981   MCFG_DEVICE_REMOVE(MOS6529_USER_TAG)
965982   MCFG_DEVICE_REMOVE(PLUS4_USER_PORT_TAG)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team