mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
(MESS) gba.c: Another small tagmap cleanup (nw)
This commit is contained in:
parent
8ef69c8d4c
commit
7cbc98fb7f
@ -1907,7 +1907,7 @@ WRITE32_MEMBER(gba_state::gba_oam_w)
|
|||||||
|
|
||||||
READ32_MEMBER(gba_state::gba_bios_r)
|
READ32_MEMBER(gba_state::gba_bios_r)
|
||||||
{
|
{
|
||||||
UINT32 *rom = (UINT32 *)(*machine().root_device().memregion("maincpu"));
|
UINT32 *rom = (UINT32 *)(*m_region_maincpu);
|
||||||
if (m_bios_protected != 0)
|
if (m_bios_protected != 0)
|
||||||
{
|
{
|
||||||
offset = (m_bios_last_address + 8) / 4;
|
offset = (m_bios_last_address + 8) / 4;
|
||||||
|
@ -148,6 +148,7 @@ public:
|
|||||||
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_region_maincpu(*this, "maincpu"),
|
||||||
m_io_in0(*this, "IN0")
|
m_io_in0(*this, "IN0")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
@ -283,6 +284,7 @@ public:
|
|||||||
DECLARE_DEVICE_IMAGE_LOAD_MEMBER(gba_cart);
|
DECLARE_DEVICE_IMAGE_LOAD_MEMBER(gba_cart);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
required_memory_region m_region_maincpu;
|
||||||
required_ioport m_io_in0;
|
required_ioport m_io_in0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user