mirror of
https://github.com/holub/mame
synced 2025-10-05 16:50:57 +03:00
(MESS) gba.c: switched ioport tagmap lookup to member variable. (nw)
This commit is contained in:
parent
ce6e66fa0f
commit
6aa08128f4
@ -916,7 +916,7 @@ READ32_MEMBER(gba_state::gba_io_r)
|
|||||||
case 0x0130/4:
|
case 0x0130/4:
|
||||||
if( (mem_mask) & 0x0000ffff ) // KEYINPUT
|
if( (mem_mask) & 0x0000ffff ) // KEYINPUT
|
||||||
{
|
{
|
||||||
retval = ioport("IN0")->read();
|
retval = m_io_in0->read();
|
||||||
}
|
}
|
||||||
else if( (mem_mask) & 0xffff0000 )
|
else if( (mem_mask) & 0xffff0000 )
|
||||||
{
|
{
|
||||||
|
@ -147,7 +147,9 @@ public:
|
|||||||
m_radac(*this, "direct_a_right"),
|
m_radac(*this, "direct_a_right"),
|
||||||
m_lbdac(*this, "direct_b_left"),
|
m_lbdac(*this, "direct_b_left"),
|
||||||
m_rbdac(*this, "direct_b_right"),
|
m_rbdac(*this, "direct_b_right"),
|
||||||
m_gbsound(*this, "custom"){ }
|
m_gbsound(*this, "custom"),
|
||||||
|
m_io_in0(*this, "IN0")
|
||||||
|
{ }
|
||||||
|
|
||||||
required_device<cpu_device> m_maincpu;
|
required_device<cpu_device> m_maincpu;
|
||||||
required_shared_ptr<UINT32> m_gba_pram;
|
required_shared_ptr<UINT32> m_gba_pram;
|
||||||
@ -279,6 +281,9 @@ public:
|
|||||||
TIMER_CALLBACK_MEMBER(perform_scan);
|
TIMER_CALLBACK_MEMBER(perform_scan);
|
||||||
void gba_machine_stop();
|
void gba_machine_stop();
|
||||||
DECLARE_DEVICE_IMAGE_LOAD_MEMBER(gba_cart);
|
DECLARE_DEVICE_IMAGE_LOAD_MEMBER(gba_cart);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
required_ioport m_io_in0;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*----------- defined in video/gba.c -----------*/
|
/*----------- defined in video/gba.c -----------*/
|
||||||
|
Loading…
Reference in New Issue
Block a user