mirror of
https://github.com/holub/mame
synced 2025-04-26 18:23:08 +03:00
4004clk.c: reduce tagmap lookups (nw)
This commit is contained in:
parent
885a8f050c
commit
d92a914cd7
@ -19,11 +19,13 @@ public:
|
|||||||
nixieclock_state(const machine_config &mconfig, device_type type, const char *tag)
|
nixieclock_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag),
|
: driver_device(mconfig, type, tag),
|
||||||
m_maincpu(*this, "maincpu"),
|
m_maincpu(*this, "maincpu"),
|
||||||
m_dac(*this, "dac")
|
m_dac(*this, "dac"),
|
||||||
|
m_input(*this, "INPUT")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
required_device<i4004_cpu_device> m_maincpu;
|
required_device<i4004_cpu_device> m_maincpu;
|
||||||
required_device<dac_device> m_dac;
|
required_device<dac_device> m_dac;
|
||||||
|
required_ioport m_input;
|
||||||
DECLARE_READ8_MEMBER( data_r );
|
DECLARE_READ8_MEMBER( data_r );
|
||||||
DECLARE_WRITE8_MEMBER( nixie_w );
|
DECLARE_WRITE8_MEMBER( nixie_w );
|
||||||
DECLARE_WRITE8_MEMBER( neon_w );
|
DECLARE_WRITE8_MEMBER( neon_w );
|
||||||
@ -39,7 +41,7 @@ public:
|
|||||||
|
|
||||||
READ8_MEMBER(nixieclock_state::data_r)
|
READ8_MEMBER(nixieclock_state::data_r)
|
||||||
{
|
{
|
||||||
return ioport("INPUT")->read() & 0x0f;
|
return m_input->read() & 0x0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT8 nixieclock_state::nixie_to_num(UINT16 val)
|
UINT8 nixieclock_state::nixie_to_num(UINT16 val)
|
||||||
|
Loading…
Reference in New Issue
Block a user