fix MT06024 (hvymetal not working)

palette ram writes were no longer actually being stored in RAM for games with the lookup PROM.
This commit is contained in:
David Haywood 2015-09-03 15:12:36 +01:00
parent 771ed1954d
commit fd7218cdca
2 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@ public:
m_spriteram(*this, "spriteram"),
m_nob_mcu_latch(*this, "nob_mcu_latch"),
m_nob_mcu_status(*this, "nob_mcu_status"),
m_paletteram(*this, "palette"),
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
m_mcu(*this, "mcu"),
@ -31,6 +32,7 @@ public:
required_shared_ptr<UINT8> m_spriteram;
optional_shared_ptr<UINT8> m_nob_mcu_latch;
optional_shared_ptr<UINT8> m_nob_mcu_status;
required_shared_ptr<UINT8> m_paletteram;
UINT8 *m_videoram;
void (system1_state::*m_videomode_custom)(UINT8 data, UINT8 prevdata);

View File

@ -315,6 +315,7 @@ WRITE8_MEMBER(system1_state::system1_paletteram_w)
if (m_color_prom != NULL)
{
m_paletteram[offset] = data;
UINT8 val;
val = m_color_prom[data + 0 * 256];