Previous 199869 Revisions Next

r21105 Friday 15th February, 2013 at 21:37:53 UTC by Wilbert Pol
(MESS) odysssey2: Improved hookup of the sp0256; still no sounds in killer bees though. (nw)
[src/mess/drivers]odyssey2.c

trunk/src/mess/drivers/odyssey2.c
r21104r21105
2929      , m_maincpu(*this, "maincpu")
3030      , m_screen(*this, "screen")
3131      , m_i8244(*this, "i8244")
32      , m_sp0256(*this, "sp0256_speech")
3233      , m_user1(*this, "user1")
3334      , m_bank1(*this, "bank1")
3435      , m_bank2(*this, "bank2")
r21104r21105
4546   required_device<cpu_device> m_maincpu;
4647   required_device<screen_device> m_screen;
4748   required_device<i8244_device> m_i8244;
49   required_device<sp0256_device> m_sp0256;
4850
4951   int m_the_voice_lrq_state;
5052   UINT8 m_ram[256];
r21104r21105
331333
332334READ8_MEMBER(odyssey2_state::t0_read)
333335{
334   return ( m_the_voice_lrq_state == ASSERT_LINE ) ? 0 : 1;
336   return sp0256_lrq_r( m_sp0256 ) ? 1 : 0;
335337}
336338
337339
r21104r21105
432434         if ( data & 0x20 )
433435         {
434436            logerror("voice write %02X, data = %02X (p1 = %02X)\n", offset, data, m_p1 );
435            sp0256_ALD_w( machine().device("sp0256_speech"), space, 0, offset & 0x7F );
437            sp0256_ALD_w( m_sp0256, space, 0, offset & 0x7F );
436438         }
437439         else
438440         {
439441            /* TODO: Reset sp0256 in this case */
442            m_sp0256->reset();
440443         }
441444      }
442445   }
r21104r21105
833836   MCFG_I8245_ADD( "i8244", 3540000 * 2, "screen", WRITELINE( odyssey2_state, irq_callback ), WRITE16( g7400_state, scanline_postprocess ) )
834837   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
835838
839   MCFG_SOUND_ADD("sp0256_speech", SP0256, 3120000)
840   MCFG_SOUND_CONFIG(the_voice_sp0256)
841   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
842
836843   MCFG_FRAGMENT_ADD(odyssey2_cartslot)
837844   MCFG_DEVICE_REMOVE("cart_list")
838845   MCFG_SOFTWARE_LIST_ADD("cart_list","g7400")
r21104r21105
863870   MCFG_I8244_ADD( "i8244", 3540000 * 2, "screen", WRITELINE( odyssey2_state, irq_callback ), WRITE16( g7400_state, scanline_postprocess ) )
864871   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
865872
873   MCFG_SOUND_ADD("sp0256_speech", SP0256, 3120000)
874   MCFG_SOUND_CONFIG(the_voice_sp0256)
875   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
876
866877   MCFG_FRAGMENT_ADD(odyssey2_cartslot)
867878   MCFG_DEVICE_REMOVE("cart_list")
868879   MCFG_SOFTWARE_LIST_ADD("cart_list","g7400")

Previous 199869 Revisions Next


© 1997-2024 The MAME Team