From 81650bcbe06510892b1081f3a9ca199f128d09ba Mon Sep 17 00:00:00 2001 From: zardam Date: Sat, 23 Dec 2023 02:41:11 +0100 Subject: neogeo/neogeo_v.cpp: Make palette byte access behave the same as on real hardware (#11869) On real hardware, a byte writen in palette RAM is repeated in the whole word. This is used by some software to detect emulation. --- src/mame/neogeo/neogeo_v.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/neogeo/neogeo_v.cpp b/src/mame/neogeo/neogeo_v.cpp index 79ec4dc4050..7bb9b9d8322 100644 --- a/src/mame/neogeo/neogeo_v.cpp +++ b/src/mame/neogeo/neogeo_v.cpp @@ -97,7 +97,7 @@ uint16_t neogeo_base_state::paletteram_r(offs_t offset) void neogeo_base_state::paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask) { offset += m_palette_bank; - data = COMBINE_DATA(&m_paletteram[offset]); + m_paletteram[offset] = data; int dark = data >> 15; int r = ((data >> 14) & 0x1) | ((data >> 7) & 0x1e); -- cgit v1.2.3