mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
a2600.c: Replaced ioport tagmap lookup (nw)
This commit is contained in:
parent
9b0c6dbd54
commit
ab8b5cb95b
@ -37,7 +37,9 @@ public:
|
|||||||
m_cart(*this, "cartslot"),
|
m_cart(*this, "cartslot"),
|
||||||
m_tia(*this, "tia_video"),
|
m_tia(*this, "tia_video"),
|
||||||
m_maincpu(*this, "maincpu"),
|
m_maincpu(*this, "maincpu"),
|
||||||
m_screen(*this, "screen") { }
|
m_screen(*this, "screen"),
|
||||||
|
m_swb(*this, "SWB")
|
||||||
|
{ }
|
||||||
|
|
||||||
required_shared_ptr<UINT8> m_riot_ram;
|
required_shared_ptr<UINT8> m_riot_ram;
|
||||||
UINT16 m_current_screen_height;
|
UINT16 m_current_screen_height;
|
||||||
@ -66,6 +68,7 @@ protected:
|
|||||||
unsigned long detect_2600controllers();
|
unsigned long detect_2600controllers();
|
||||||
required_device<m6502_device> m_maincpu;
|
required_device<m6502_device> m_maincpu;
|
||||||
required_device<screen_device> m_screen;
|
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)
|
READ8_MEMBER(a2600_state::riot_input_port_8_r)
|
||||||
{
|
{
|
||||||
return ioport("SWB")->read();
|
return m_swb->read();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user