mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
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:
parent
771ed1954d
commit
fd7218cdca
@ -13,6 +13,7 @@ public:
|
|||||||
m_spriteram(*this, "spriteram"),
|
m_spriteram(*this, "spriteram"),
|
||||||
m_nob_mcu_latch(*this, "nob_mcu_latch"),
|
m_nob_mcu_latch(*this, "nob_mcu_latch"),
|
||||||
m_nob_mcu_status(*this, "nob_mcu_status"),
|
m_nob_mcu_status(*this, "nob_mcu_status"),
|
||||||
|
m_paletteram(*this, "palette"),
|
||||||
m_maincpu(*this, "maincpu"),
|
m_maincpu(*this, "maincpu"),
|
||||||
m_soundcpu(*this, "soundcpu"),
|
m_soundcpu(*this, "soundcpu"),
|
||||||
m_mcu(*this, "mcu"),
|
m_mcu(*this, "mcu"),
|
||||||
@ -31,6 +32,7 @@ public:
|
|||||||
required_shared_ptr<UINT8> m_spriteram;
|
required_shared_ptr<UINT8> m_spriteram;
|
||||||
optional_shared_ptr<UINT8> m_nob_mcu_latch;
|
optional_shared_ptr<UINT8> m_nob_mcu_latch;
|
||||||
optional_shared_ptr<UINT8> m_nob_mcu_status;
|
optional_shared_ptr<UINT8> m_nob_mcu_status;
|
||||||
|
required_shared_ptr<UINT8> m_paletteram;
|
||||||
|
|
||||||
UINT8 *m_videoram;
|
UINT8 *m_videoram;
|
||||||
void (system1_state::*m_videomode_custom)(UINT8 data, UINT8 prevdata);
|
void (system1_state::*m_videomode_custom)(UINT8 data, UINT8 prevdata);
|
||||||
|
@ -315,6 +315,7 @@ WRITE8_MEMBER(system1_state::system1_paletteram_w)
|
|||||||
|
|
||||||
if (m_color_prom != NULL)
|
if (m_color_prom != NULL)
|
||||||
{
|
{
|
||||||
|
m_paletteram[offset] = data;
|
||||||
UINT8 val;
|
UINT8 val;
|
||||||
|
|
||||||
val = m_color_prom[data + 0 * 256];
|
val = m_color_prom[data + 0 * 256];
|
||||||
|
Loading…
Reference in New Issue
Block a user