Previous 199869 Revisions Next

r20502 Saturday 26th January, 2013 at 19:19:31 UTC by Wilbert Pol
(MESS) bob85.c: Tagmap cleanup (nw)
[src/mess/drivers]bob85.c

trunk/src/mess/drivers/bob85.c
r20501r20502
1717{
1818public:
1919   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")
2326   { }
2427
2528   required_device<cpu_device> m_maincpu;
r20501r20502
3134   UINT8 m_prev_key;
3235   UINT8 m_count_key;
3336   virtual void machine_reset();
37
38protected:
39   required_ioport m_line0;
40   required_ioport m_line1;
41   required_ioport m_line2;
3442};
3543
3644
r20501r20502
3846READ8_MEMBER(bob85_state::bob85_keyboard_r)
3947{
4048   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();
4452
4553   if (line0)
4654   {
r20501r20502
183191
184192READ_LINE_MEMBER( bob85_state::sid_r )
185193{
186   return (m_cass)->input() > 0.0;
194   return m_cass->input() > 0.0;
187195}
188196
189197static I8085_CONFIG( cpu_config )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team