summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-12-07 14:57:27 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-12-07 14:57:27 -0500
commit2535a4da9a2bedbebf49d550634b31c769732219 (patch)
treeb4ab2d5ea63bf5166c04876f48fa2e9218c5d171
parent5291b2346e902a08cbfd873ed304a976d51f6cee (diff)
triviaes4: "Un momento por favor" (nw)
-rw-r--r--src/mame/drivers/balsente.cpp4
-rw-r--r--src/mame/includes/balsente.h1
-rw-r--r--src/mame/video/balsente.cpp13
3 files changed, 16 insertions, 2 deletions
diff --git a/src/mame/drivers/balsente.cpp b/src/mame/drivers/balsente.cpp
index 6ee37685c38..075f1a30f21 100644
--- a/src/mame/drivers/balsente.cpp
+++ b/src/mame/drivers/balsente.cpp
@@ -317,7 +317,7 @@ void balsente_state::cpu1_triviamb_map(address_map &map)
map(0x03c0, 0x03c0).w(FUNC(balsente_state::palette_select_w));
map(0x03e0, 0x03e0).w("watchdog", FUNC(watchdog_timer_device::reset_w));
map(0x0800, 0x7fff).ram().w(FUNC(balsente_state::videoram_w)).share("videoram");
- map(0x8800, 0x8fff).ram().w(FUNC(balsente_state::paletteram_w)).share("paletteram"); // probably wrong
+ map(0x8800, 0x8fff).ram().w(FUNC(balsente_state::paletteram_byte_w)).share("paletteram"); // probably wrong
map(0x8800, 0x88ff).rw("nov0", FUNC(x2212_device::read), FUNC(x2212_device::write));
map(0x8900, 0x89ff).rw("nov1", FUNC(x2212_device::read), FUNC(x2212_device::write));
map(0xa000, 0xbfff).bankr("bankab");
@@ -2283,7 +2283,7 @@ ROM_START( triviaes4 )
ROM_CONTINUE( 0x1c000, 0x02000 )
ROM_LOAD( "tpe-60-volumen 4.ic60", 0x06000, 0x02000, CRC(0773a142) SHA1(5654ece65be7714b25970f08ba876b9766d8ebb5) )
ROM_CONTINUE( 0x0e000, 0x02000 )
- ROM_CONTINUE( 0x06000, 0x02000 )
+ ROM_CONTINUE( 0x16000, 0x02000 )
ROM_CONTINUE( 0x1e000, 0x02000 )
ROM_REGION( 0x10000, "audiocpu", 0 ) // all 27256
diff --git a/src/mame/includes/balsente.h b/src/mame/includes/balsente.h
index be2c6f86d82..4e999ce0e1d 100644
--- a/src/mame/includes/balsente.h
+++ b/src/mame/includes/balsente.h
@@ -126,6 +126,7 @@ private:
DECLARE_WRITE8_MEMBER(videoram_w);
DECLARE_WRITE8_MEMBER(palette_select_w);
DECLARE_WRITE8_MEMBER(paletteram_w);
+ DECLARE_WRITE8_MEMBER(paletteram_byte_w);
DECLARE_WRITE8_MEMBER(shrike_sprite_select_w);
virtual void machine_start() override;
diff --git a/src/mame/video/balsente.cpp b/src/mame/video/balsente.cpp
index 3027915d902..161b0969ee5 100644
--- a/src/mame/video/balsente.cpp
+++ b/src/mame/video/balsente.cpp
@@ -93,6 +93,19 @@ WRITE8_MEMBER(balsente_state::paletteram_w)
m_palette->set_pen_color(offset / 4, pal4bit(r), pal4bit(g), pal4bit(b));
}
+WRITE8_MEMBER(balsente_state::paletteram_byte_w)
+{
+ int r, g, b;
+
+ m_generic_paletteram_8[offset] = data;
+
+ r = m_generic_paletteram_8[(offset & ~1) + 0] & 0x0f;
+ g = m_generic_paletteram_8[(offset & ~1) + 0] >> 4;
+ b = m_generic_paletteram_8[(offset & ~1) + 1] & 0x0f;
+
+ m_palette->set_pen_color(offset / 2, pal4bit(r), pal4bit(g), pal4bit(b));
+}
+
/*************************************