Previous 199869 Revisions Next

r20529 Sunday 27th January, 2013 at 13:04:30 UTC by Wilbert Pol
(MESS) tmc2000e.c: Tagmap cleanups (nw)
[src/mess/drivers]tmc2000e.c
[src/mess/includes]tmc2000e.h

trunk/src/mess/drivers/tmc2000e.c
r20528r20529
152152
153153READ_LINE_MEMBER( tmc2000e_state::clear_r )
154154{
155   return BIT(ioport("RUN")->read(), 0);
155   return BIT(m_io_run->read(), 0);
156156}
157157
158158READ_LINE_MEMBER( tmc2000e_state::ef2_r )
r20528r20529
162162
163163READ_LINE_MEMBER( tmc2000e_state::ef3_r )
164164{
165   static const char *const keynames[] = { "IN0", "IN1", "IN2", "IN3", "IN4", "IN5", "IN6", "IN7" };
166   UINT8 data = ~ioport(keynames[m_keylatch / 8])->read();
165   ioport_port *keynames[] = { m_io_in0, m_io_in1, m_io_in2, m_io_in3, m_io_in4, m_io_in5, m_io_in6, m_io_in7 };
166   UINT8 data = ~(keynames[m_keylatch / 8])->read();
167167
168168   return BIT(data, m_keylatch % 8);
169169}
trunk/src/mess/includes/tmc2000e.h
r20528r20529
2424{
2525public:
2626   tmc2000e_state(const machine_config &mconfig, device_type type, const char *tag)
27      : driver_device(mconfig, type, tag),
28         m_maincpu(*this, CDP1802_TAG),
29         m_cti(*this, CDP1864_TAG),
30         m_cassette(*this, CASSETTE_TAG)
31   ,
32      m_colorram(*this, "colorram"){ }
27      : driver_device(mconfig, type, tag)
28      , m_maincpu(*this, CDP1802_TAG)
29      , m_cti(*this, CDP1864_TAG)
30      , m_cassette(*this, CASSETTE_TAG)
31      , m_colorram(*this, "colorram")
32      , m_io_in0(*this, "IN0")
33      , m_io_in1(*this, "IN1")
34      , m_io_in2(*this, "IN2")
35      , m_io_in3(*this, "IN3")
36      , m_io_in4(*this, "IN4")
37      , m_io_in5(*this, "IN5")
38      , m_io_in6(*this, "IN6")
39      , m_io_in7(*this, "IN7")
40      , m_io_run(*this, "RUN")
41   { }
3342
3443   required_device<cpu_device> m_maincpu;
3544   required_device<cdp1864_device> m_cti;
r20528r20529
6675   /* keyboard state */
6776   int m_keylatch;         /* key latch */
6877   int m_reset;            /* reset activated */
78
79protected:
80   required_ioport m_io_in0;
81   required_ioport m_io_in1;
82   required_ioport m_io_in2;
83   required_ioport m_io_in3;
84   required_ioport m_io_in4;
85   required_ioport m_io_in5;
86   required_ioport m_io_in6;
87   required_ioport m_io_in7;
88   required_ioport m_io_run;
6989};
7090
7191#endif

Previous 199869 Revisions Next


© 1997-2024 The MAME Team