mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
(MESS) galaxy.c: Reduce tagmap lookups (nw)
This commit is contained in:
parent
6b72c6d3de
commit
e40e0da8c1
@ -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];
|
||||
};
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user