summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/emupal.cpp
diff options
context:
space:
mode:
author David Haywood <hazemamewip@hotmail.com>2018-09-21 20:01:12 +0100
committer ajrhacker <ajrhacker@users.noreply.github.com>2018-09-21 15:01:12 -0400
commitccded2bf8b4a970875174056b7b7aedd0d9eec54 (patch)
treeaa2b2c4b723263ad0acc4b7e467a043ea924b533 /src/emu/emupal.cpp
parent14a94c1c9075478d8acceef5d50511c689e6d7f1 (diff)
Namco System 21 and other related refactors (#4013)
* namco checkpoint (including cam900 submission) * move code into device (nw) * start splitting DSP support code into devices (nw) * fix crash (nw) * prepare for further splitting (nw) * move code for C67 based DSP PCB into it's own device (nw) * survive F3 resets without crashing or breaking the 3D (nw) * less magic numbers (nw) * optional -> required don't use fake bootstrap on older type, suspend CPU instead * restore CPU yield hack for solvalou (nw) * (nw) * give galaxian3 some DSPs (nw) * address hap's concern with a different workaround since MAME is awkward (nw) * split namco21 driver into 3 drivers as the different configurations really are entirely different boardsets with similar components, not a real 'system' emulated entire PCB set for driveyes ( http://www.tvspels-nostalgi.com/Bilder/PCB/Namco/driverseye_cage_inside.jpg ) although how the PCBs communicate is not yet known (C139 maybe, which might also be an MCU) * remove empty file (nw) * actually thinking about it, this is cleaner (nw) * mark cybsledj as World instead, there's nothing about this set other than the CY1 code to indicate that it's a Japanese set, and I don't think the Namco codes represent region, just release order. * newline (nw) * newline (nw)
Diffstat (limited to 'src/emu/emupal.cpp')
-rw-r--r--src/emu/emupal.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/emu/emupal.cpp b/src/emu/emupal.cpp
index 16fc8716c94..5bdffe04a4b 100644
--- a/src/emu/emupal.cpp
+++ b/src/emu/emupal.cpp
@@ -117,13 +117,22 @@ WRITE8_MEMBER(palette_device::write8_ext)
update_for_write(offset, 1);
}
-
WRITE16_MEMBER(palette_device::write16_ext)
{
m_paletteram_ext.write16(offset, data, mem_mask);
update_for_write(offset * 2, 2);
}
+READ8_MEMBER(palette_device::read8_ext)
+{
+ return m_paletteram_ext.read8(offset);
+}
+
+READ16_MEMBER(palette_device::read16_ext)
+{
+ return m_paletteram_ext.read16(offset);
+}
+
//-------------------------------------------------
// write_indirect - write a byte to the base