trunk/src/mess/drivers/bob85.c
| r20501 | r20502 | |
| 17 | 17 | { |
| 18 | 18 | public: |
| 19 | 19 | bob85_state(const machine_config &mconfig, device_type type, const char *tag) |
| 20 | | : driver_device(mconfig, type, tag), |
| 21 | | m_maincpu(*this, "maincpu"), |
| 22 | | m_cass(*this, CASSETTE_TAG) |
| 20 | : driver_device(mconfig, type, tag) |
| 21 | , m_maincpu(*this, "maincpu") |
| 22 | , m_cass(*this, CASSETTE_TAG) |
| 23 | , m_line0(*this, "LINE0") |
| 24 | , m_line1(*this, "LINE1") |
| 25 | , m_line2(*this, "LINE2") |
| 23 | 26 | { } |
| 24 | 27 | |
| 25 | 28 | required_device<cpu_device> m_maincpu; |
| r20501 | r20502 | |
| 31 | 34 | UINT8 m_prev_key; |
| 32 | 35 | UINT8 m_count_key; |
| 33 | 36 | virtual void machine_reset(); |
| 37 | |
| 38 | protected: |
| 39 | required_ioport m_line0; |
| 40 | required_ioport m_line1; |
| 41 | required_ioport m_line2; |
| 34 | 42 | }; |
| 35 | 43 | |
| 36 | 44 | |
| r20501 | r20502 | |
| 38 | 46 | READ8_MEMBER(bob85_state::bob85_keyboard_r) |
| 39 | 47 | { |
| 40 | 48 | UINT8 retVal = 0; |
| 41 | | UINT8 line0 = ioport("LINE0")->read(); |
| 42 | | UINT8 line1 = ioport("LINE1")->read(); |
| 43 | | UINT8 line2 = ioport("LINE2")->read(); |
| 49 | UINT8 line0 = m_line0->read(); |
| 50 | UINT8 line1 = m_line1->read(); |
| 51 | UINT8 line2 = m_line2->read(); |
| 44 | 52 | |
| 45 | 53 | if (line0) |
| 46 | 54 | { |
| r20501 | r20502 | |
| 183 | 191 | |
| 184 | 192 | READ_LINE_MEMBER( bob85_state::sid_r ) |
| 185 | 193 | { |
| 186 | | return (m_cass)->input() > 0.0; |
| 194 | return m_cass->input() > 0.0; |
| 187 | 195 | } |
| 188 | 196 | |
| 189 | 197 | static I8085_CONFIG( cpu_config ) |