a2600.c: Replaced ioport tagmap lookup (nw)

This commit is contained in:
Wilbert Pol 2015-08-10 21:29:25 +02:00
parent 9b0c6dbd54
commit ab8b5cb95b

View File

@ -37,7 +37,9 @@ public:
m_cart(*this, "cartslot"),
m_tia(*this, "tia_video"),
m_maincpu(*this, "maincpu"),
m_screen(*this, "screen") { }
m_screen(*this, "screen"),
m_swb(*this, "SWB")
{ }
required_shared_ptr<UINT8> m_riot_ram;
UINT16 m_current_screen_height;
@ -66,6 +68,7 @@ protected:
unsigned long detect_2600controllers();
required_device<m6502_device> m_maincpu;
required_device<screen_device> m_screen;
required_ioport m_swb;
};
@ -124,7 +127,7 @@ WRITE_LINE_MEMBER(a2600_state::irq_callback)
READ8_MEMBER(a2600_state::riot_input_port_8_r)
{
return ioport("SWB")->read();
return m_swb->read();
}