(MESS) galaxy.c: Reduce tagmap lookups (nw)

This commit is contained in:
Wilbert Pol 2013-02-10 19:22:42 +00:00
parent 6b72c6d3de
commit e40e0da8c1
2 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,7 @@ public:
, m_maincpu(*this, "maincpu")
, m_cassette(*this, CASSETTE_TAG)
, m_ram(*this, RAM_TAG)
, m_region_gfx1(*this, "gfx1")
{ }
int m_interrupts_enabled;
@ -45,6 +46,7 @@ protected:
required_device<cpu_device> m_maincpu;
required_device<cassette_image_device> m_cassette;
required_device<ram_device> m_ram;
required_memory_region m_region_gfx1;
ioport_port *m_io_ports[8];
};

View File

@ -19,7 +19,7 @@ TIMER_CALLBACK_MEMBER(galaxy_state::gal_video)
int y, x;
if (m_interrupts_enabled == TRUE)
{
UINT8 *gfx = memregion("gfx1")->base();
UINT8 *gfx = m_region_gfx1->base();
UINT8 dat = (m_latch_value & 0x3c) >> 2;
if ((m_gal_cnt >= 48 * 2) && (m_gal_cnt < 48 * 210)) // display on screen just m_first 208 lines
{