trunk/src/mame/drivers/hh_tms1k.cpp
| r252909 | r252910 | |
| 40 | 40 | @MP3301A TMS1000 1979, Milton Bradley Big Trak |
| 41 | 41 | *MP3320A TMS1000 1979, Coleco Head to Head Basketball |
| 42 | 42 | *M32001 TMS1000 1981, Coleco Quiz Wiz Challenger (note: MP3398, MP3399, M3200x?) |
| 43 | | MP3403 TMS1100 1978, Marx Electronic Bowling -> elecbowl.c |
| 43 | MP3403 TMS1100 1978, Marx Electronic Bowling -> elecbowl.cpp |
| 44 | 44 | @MP3404 TMS1100 1978, Parker Brothers Merlin |
| 45 | 45 | @MP3405 TMS1100 1979, Coleco Amaze-A-Tron |
| 46 | 46 | *MP3415 TMS1100 1978, Coleco Electronic Quarterback |
| r252909 | r252910 | |
| 69 | 69 | @MP7313 TMS1400 1980, Parker Brothers Bank Shot |
| 70 | 70 | @MP7314 TMS1400 1980, Parker Brothers Split Second |
| 71 | 71 | *MP7324 TMS1400? 1985, Coleco Talking Teacher |
| 72 | | MP7332 TMS1400 1981, Milton Bradley Dark Tower -> mbdtower.c |
| 72 | MP7332 TMS1400 1981, Milton Bradley Dark Tower -> mbdtower.cpp |
| 73 | 73 | @MP7334 TMS1400 1981, Coleco Total Control 4 |
| 74 | 74 | @MP7351 TMS1400CR 1982, Parker Brothers Master Merlin |
| 75 | 75 | @MP7551 TMS1670 1980, Entex Color Football 4 (6009) |
trunk/src/mame/drivers/tb303.cpp
| r252909 | r252910 | |
| 24 | 24 | public: |
| 25 | 25 | tb303_state(const machine_config &mconfig, device_type type, const char *tag) |
| 26 | 26 | : hh_ucom4_state(mconfig, type, tag), |
| 27 | | m_t3_off_timer(*this, "t3_off") |
| 27 | m_tp3_off_timer(*this, "tp3_off") |
| 28 | 28 | { } |
| 29 | 29 | |
| 30 | | required_device<timer_device> m_t3_off_timer; |
| 30 | required_device<timer_device> m_tp3_off_timer; |
| 31 | 31 | |
| 32 | 32 | UINT8 m_ram[0xc00]; |
| 33 | 33 | UINT16 m_ram_address; |
| r252909 | r252910 | |
| 43 | 43 | DECLARE_READ8_MEMBER(input_r); |
| 44 | 44 | void update_leds(); |
| 45 | 45 | |
| 46 | | TIMER_DEVICE_CALLBACK_MEMBER(t3_clock); |
| 47 | | TIMER_DEVICE_CALLBACK_MEMBER(t3_off); |
| 46 | TIMER_DEVICE_CALLBACK_MEMBER(tp3_clock); |
| 47 | TIMER_DEVICE_CALLBACK_MEMBER(tp3_off); |
| 48 | 48 | |
| 49 | 49 | virtual void machine_start() override; |
| 50 | 50 | }; |
| r252909 | r252910 | |
| 56 | 56 | |
| 57 | 57 | ***************************************************************************/ |
| 58 | 58 | |
| 59 | | // T2 to MCU CLK: LC circuit, stable sine wave, 2.2us interval |
| 60 | | #define TB303_T2_CLOCK_HZ 454545 /* in hz */ |
| 59 | // TP2 to MCU CLK: LC circuit(TI S74230), stable sine wave, 2.2us interval |
| 60 | #define TP2_CLOCK_HZ 454545 /* in hz */ |
| 61 | 61 | |
| 62 | | // T3 to MCU _INT: square wave, 1.8ms interval, short duty cycle |
| 63 | | #define TB303_T3_CLOCK attotime::from_usec(1800) |
| 64 | | #define TB303_T3_OFF (TB303_T3_CLOCK / 8) |
| 62 | // TP3 to MCU _INT: square wave, 1.8ms interval, short duty cycle |
| 63 | #define TP3_CLOCK attotime::from_usec(1800) |
| 64 | #define TP3_OFF (TP3_CLOCK / 8) |
| 65 | 65 | |
| 66 | | TIMER_DEVICE_CALLBACK_MEMBER(tb303_state::t3_off) |
| 66 | TIMER_DEVICE_CALLBACK_MEMBER(tb303_state::tp3_off) |
| 67 | 67 | { |
| 68 | 68 | m_maincpu->set_input_line(0, CLEAR_LINE); |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | | TIMER_DEVICE_CALLBACK_MEMBER(tb303_state::t3_clock) |
| 71 | TIMER_DEVICE_CALLBACK_MEMBER(tb303_state::tp3_clock) |
| 72 | 72 | { |
| 73 | 73 | m_maincpu->set_input_line(0, ASSERT_LINE); |
| 74 | | m_t3_off_timer->adjust(TB303_T3_OFF); |
| 74 | m_tp3_off_timer->adjust(TP3_OFF); |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | |
| r252909 | r252910 | |
| 270 | 270 | static MACHINE_CONFIG_START( tb303, tb303_state ) |
| 271 | 271 | |
| 272 | 272 | /* basic machine hardware */ |
| 273 | | MCFG_CPU_ADD("maincpu", NEC_D650, TB303_T2_CLOCK_HZ) |
| 273 | MCFG_CPU_ADD("maincpu", NEC_D650, TP2_CLOCK_HZ) |
| 274 | 274 | MCFG_UCOM4_READ_A_CB(READ8(tb303_state, input_r)) |
| 275 | 275 | MCFG_UCOM4_READ_B_CB(READ8(tb303_state, input_r)) |
| 276 | 276 | MCFG_UCOM4_READ_C_CB(READ8(tb303_state, ram_r)) |
| r252909 | r252910 | |
| 282 | 282 | MCFG_UCOM4_WRITE_H_CB(WRITE8(tb303_state, switch_w)) |
| 283 | 283 | MCFG_UCOM4_WRITE_I_CB(WRITE8(tb303_state, strobe_w)) |
| 284 | 284 | |
| 285 | | MCFG_TIMER_DRIVER_ADD_PERIODIC("t3_clock", tb303_state, t3_clock, TB303_T3_CLOCK) |
| 286 | | MCFG_TIMER_START_DELAY(TB303_T3_CLOCK) |
| 287 | | MCFG_TIMER_DRIVER_ADD("t3_off", tb303_state, t3_off) |
| 285 | MCFG_TIMER_DRIVER_ADD_PERIODIC("tp3_clock", tb303_state, tp3_clock, TP3_CLOCK) |
| 286 | MCFG_TIMER_START_DELAY(TP3_CLOCK) |
| 287 | MCFG_TIMER_DRIVER_ADD("tp3_off", tb303_state, tp3_off) |
| 288 | 288 | |
| 289 | 289 | MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) |
| 290 | 290 | MCFG_DEFAULT_LAYOUT(layout_tb303) |
| 291 | 291 | |
| 292 | | /* no video! */ |
| 293 | | |
| 294 | 292 | /* sound hardware */ |
| 295 | 293 | // discrete... |
| 296 | 294 | MACHINE_CONFIG_END |
| r252909 | r252910 | |
| 309 | 307 | ROM_END |
| 310 | 308 | |
| 311 | 309 | |
| 312 | | CONS( 1982, tb303, 0, 0, tb303, tb303, driver_device, 0, "Roland", "TB-303", MACHINE_NOT_WORKING | MACHINE_NO_SOUND | MACHINE_SUPPORTS_SAVE ) |
| 310 | CONS( 1982, tb303, 0, 0, tb303, tb303, driver_device, 0, "Roland", "TB-303 Bass Line", MACHINE_NOT_WORKING | MACHINE_NO_SOUND | MACHINE_SUPPORTS_SAVE ) |
trunk/src/mame/drivers/tr606.cpp
| r0 | r252910 | |
| 1 | // license:BSD-3-Clause |
| 2 | // copyright-holders:hap |
| 3 | /*************************************************************************** |
| 4 | |
| 5 | ** subclass of hh_ucom4_state (includes/hh_ucom4.h, drivers/hh_ucom4.cpp) ** |
| 6 | |
| 7 | Roland TR-606 Drumatix, early 1982 |
| 8 | * NEC uCOM-43 MCU, labeled D650C 128 |
| 9 | * 2*uPD444C 1024x4 Static CMOS SRAM |
| 10 | * board is packed with discrete components |
| 11 | |
| 12 | TODO: |
| 13 | - still too much to list here |
| 14 | |
| 15 | ***************************************************************************/ |
| 16 | |
| 17 | #include "includes/hh_ucom4.h" |
| 18 | |
| 19 | #include "tr606.lh" |
| 20 | |
| 21 | |
| 22 | class tr606_state : public hh_ucom4_state |
| 23 | { |
| 24 | public: |
| 25 | tr606_state(const machine_config &mconfig, device_type type, const char *tag) |
| 26 | : hh_ucom4_state(mconfig, type, tag), |
| 27 | m_tp3_off_timer(*this, "tp3_off") |
| 28 | { } |
| 29 | |
| 30 | required_device<timer_device> m_tp3_off_timer; |
| 31 | |
| 32 | TIMER_DEVICE_CALLBACK_MEMBER(tp3_clock); |
| 33 | TIMER_DEVICE_CALLBACK_MEMBER(tp3_off); |
| 34 | |
| 35 | virtual void machine_start() override; |
| 36 | }; |
| 37 | |
| 38 | |
| 39 | /*************************************************************************** |
| 40 | |
| 41 | Timer/Interrupt |
| 42 | |
| 43 | ***************************************************************************/ |
| 44 | |
| 45 | // TP2 to MCU CLK: LC circuit(TI S74230), stable sine wave, 2.2us interval |
| 46 | #define TP2_CLOCK_HZ 454545 /* in hz */ |
| 47 | |
| 48 | // TP3 to MCU _INT: square wave, 1.8ms interval, short duty cycle |
| 49 | #define TP3_CLOCK attotime::from_usec(1800) |
| 50 | #define TP3_OFF (TP3_CLOCK / 8) |
| 51 | |
| 52 | TIMER_DEVICE_CALLBACK_MEMBER(tr606_state::tp3_off) |
| 53 | { |
| 54 | m_maincpu->set_input_line(0, CLEAR_LINE); |
| 55 | } |
| 56 | |
| 57 | TIMER_DEVICE_CALLBACK_MEMBER(tr606_state::tp3_clock) |
| 58 | { |
| 59 | m_maincpu->set_input_line(0, ASSERT_LINE); |
| 60 | m_tp3_off_timer->adjust(TP3_OFF); |
| 61 | } |
| 62 | |
| 63 | |
| 64 | |
| 65 | /*************************************************************************** |
| 66 | |
| 67 | I/O |
| 68 | |
| 69 | ***************************************************************************/ |
| 70 | |
| 71 | |
| 72 | |
| 73 | /*************************************************************************** |
| 74 | |
| 75 | Inputs |
| 76 | |
| 77 | ***************************************************************************/ |
| 78 | |
| 79 | static INPUT_PORTS_START( tr606 ) |
| 80 | |
| 81 | INPUT_PORTS_END |
| 82 | |
| 83 | |
| 84 | |
| 85 | /*************************************************************************** |
| 86 | |
| 87 | Machine Config |
| 88 | |
| 89 | ***************************************************************************/ |
| 90 | |
| 91 | void tr606_state::machine_start() |
| 92 | { |
| 93 | hh_ucom4_state::machine_start(); |
| 94 | |
| 95 | // zerofill |
| 96 | |
| 97 | // register for savestates |
| 98 | } |
| 99 | |
| 100 | static MACHINE_CONFIG_START( tr606, tr606_state ) |
| 101 | |
| 102 | /* basic machine hardware */ |
| 103 | MCFG_CPU_ADD("maincpu", NEC_D650, TP2_CLOCK_HZ) |
| 104 | |
| 105 | MCFG_TIMER_DRIVER_ADD_PERIODIC("tp3_clock", tr606_state, tp3_clock, TP3_CLOCK) |
| 106 | MCFG_TIMER_START_DELAY(TP3_CLOCK) |
| 107 | MCFG_TIMER_DRIVER_ADD("tp3_off", tr606_state, tp3_off) |
| 108 | |
| 109 | MCFG_TIMER_DRIVER_ADD_PERIODIC("display_decay", hh_ucom4_state, display_decay_tick, attotime::from_msec(1)) |
| 110 | MCFG_DEFAULT_LAYOUT(layout_tr606) |
| 111 | |
| 112 | /* sound hardware */ |
| 113 | // discrete... |
| 114 | MACHINE_CONFIG_END |
| 115 | |
| 116 | |
| 117 | |
| 118 | /*************************************************************************** |
| 119 | |
| 120 | Game driver(s) |
| 121 | |
| 122 | ***************************************************************************/ |
| 123 | |
| 124 | ROM_START( tr606 ) |
| 125 | ROM_REGION( 0x0800, "maincpu", 0 ) |
| 126 | ROM_LOAD( "d650c-128.ic4", 0x0000, 0x0800, CRC(eee88f80) SHA1(ae605ce2b95adc2e0bacde3cd7ed0f39ac88b981) ) |
| 127 | ROM_END |
| 128 | |
| 129 | |
| 130 | CONS( 1982, tr606, 0, 0, tr606, tr606, driver_device, 0, "Roland", "TR-606 Drumatix", MACHINE_NOT_WORKING | MACHINE_NO_SOUND | MACHINE_SUPPORTS_SAVE ) |