trunk/src/mess/drivers/merlin.c
| r18834 | r18835 | |
| 1 | /* |
| 2 | |
| 3 | Parker Bros Merlin handheld computer game |
| 4 | |
| 5 | */ |
| 6 | |
| 1 | 7 | #include "emu.h" |
| 2 | 8 | #include "cpu/tms0980/tms0980.h" |
| 3 | 9 | #include "sound/speaker.h" |
| r18834 | r18835 | |
| 14 | 20 | , m_speaker(*this, "speaker") |
| 15 | 21 | { } |
| 16 | 22 | |
| 23 | virtual void machine_start(); |
| 24 | |
| 17 | 25 | required_device<device_t> m_speaker; |
| 18 | 26 | |
| 19 | 27 | DECLARE_READ8_MEMBER(read_k); |
| r18834 | r18835 | |
| 26 | 34 | }; |
| 27 | 35 | |
| 28 | 36 | |
| 37 | #define LOG 0 |
| 29 | 38 | |
| 30 | | #define LOG 1 |
| 31 | 39 | |
| 32 | | |
| 33 | 40 | static INPUT_PORTS_START( merlin ) |
| 34 | 41 | PORT_START("O0") |
| 35 | 42 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_0) PORT_NAME("R0") // R0 |
| r18834 | r18835 | |
| 167 | 174 | } |
| 168 | 175 | |
| 169 | 176 | |
| 177 | void merlin_state::machine_start() |
| 178 | { |
| 179 | save_item(NAME(m_o)); |
| 180 | save_item(NAME(m_r)); |
| 181 | } |
| 182 | |
| 183 | |
| 170 | 184 | static const tms0980_config merlin_tms0980_config = |
| 171 | 185 | { |
| 172 | 186 | { |