trunk/src/mess/drivers/poly.c
r23811 | r23812 | |
23 | 23 | - Find out about graphics mode and how it is selected |
24 | 24 | - Fix Keyboard so that the Enter key tells BASIC to do something |
25 | 25 | - Find out how to make 2nd teletext screen to display |
| 26 | - Banking |
26 | 27 | |
27 | 28 | ****************************************************************************/ |
28 | 29 | |
r23811 | r23812 | |
47 | 48 | m_maincpu(*this, "maincpu"), |
48 | 49 | m_pia0(*this, "pia0"), |
49 | 50 | m_pia1(*this, "pia1"), |
50 | | m_speaker(*this, "speaker"), |
51 | 51 | m_videoram(*this, "videoram") |
52 | 52 | { } |
53 | 53 | |
54 | 54 | required_device<cpu_device> m_maincpu; |
55 | 55 | required_device<pia6821_device> m_pia0; |
56 | 56 | required_device<pia6821_device> m_pia1; |
57 | | required_device<speaker_sound_device> m_speaker; |
58 | 57 | required_shared_ptr<UINT8> m_videoram; |
59 | | DECLARE_WRITE_LINE_MEMBER(speaker_w); |
60 | 58 | DECLARE_WRITE8_MEMBER(kbd_put); |
61 | 59 | DECLARE_READ8_MEMBER(pia1_b_in); |
62 | 60 | DECLARE_READ_LINE_MEMBER(pia1_cb1_in); |
r23811 | r23812 | |
147 | 145 | DEVCB_CPU_INPUT_LINE("maincpu", M6809_IRQ_LINE) |
148 | 146 | }; |
149 | 147 | |
150 | | WRITE_LINE_MEMBER( poly_state::speaker_w ) |
151 | | { |
152 | | m_speaker->level_w(state); |
153 | | } |
154 | | |
155 | 148 | static const ptm6840_interface poly_ptm_intf = |
156 | 149 | { |
157 | 150 | XTAL_12MHz / 3, |
158 | 151 | { 0, 0, 0 }, |
159 | 152 | { DEVCB_NULL, |
160 | 153 | DEVCB_DEVICE_LINE_MEMBER("ptm", ptm6840_device, set_c1), |
161 | | DEVCB_DRIVER_LINE_MEMBER(poly_state, speaker_w) }, |
| 154 | DEVCB_DEVICE_LINE_MEMBER("speaker", speaker_sound_device, level_w) }, |
162 | 155 | DEVCB_CPU_INPUT_LINE("maincpu", M6809_IRQ_LINE) |
163 | 156 | }; |
164 | 157 | |