summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2012-09-16 00:58:02 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2012-09-16 00:58:02 +0000
commite3e42e3a39cbe58c8a06db62dd4252f72c040f44 (patch)
tree72e121fb78cb7833a55ab50d403898844b8b4bc6
parentce0227e4196334edca7e2a174d0dc3b866de70a7 (diff)
fix ganjaja water
-rw-r--r--src/mame/drivers/homerun.c3
-rw-r--r--src/mame/includes/homerun.h2
-rw-r--r--src/mame/video/homerun.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/mame/drivers/homerun.c b/src/mame/drivers/homerun.c
index 89287e222be..10d9693661e 100644
--- a/src/mame/drivers/homerun.c
+++ b/src/mame/drivers/homerun.c
@@ -17,7 +17,6 @@ Todo :
- dump homerun sample rom
- improve controls/dips
- fix sprite glitches in ganjaja Hop Step & Jump
- - fix missing water tiles in ganjaja Hop Step & Jump
-----------------------------------
Moero!! Pro Yakyuu Homerun Kyousou
@@ -106,7 +105,7 @@ static ADDRESS_MAP_START( homerun_memmap, AS_PROGRAM, 8, homerun_state )
AM_RANGE(0x4000, 0x7fff) AM_ROMBANK("bank1")
AM_RANGE(0x8000, 0x9fff) AM_RAM_WRITE(homerun_videoram_w) AM_SHARE("videoram")
AM_RANGE(0xa000, 0xa0ff) AM_RAM AM_SHARE("spriteram")
- AM_RANGE(0xb000, 0xb0ff) AM_RAM_WRITE(homerun_color_w)
+ AM_RANGE(0xb000, 0xb03f) AM_RAM_WRITE(homerun_color_w) AM_SHARE("colorram")
AM_RANGE(0xc000, 0xdfff) AM_RAM
ADDRESS_MAP_END
diff --git a/src/mame/includes/homerun.h b/src/mame/includes/homerun.h
index e2156ef1169..19a157e136f 100644
--- a/src/mame/includes/homerun.h
+++ b/src/mame/includes/homerun.h
@@ -15,6 +15,7 @@ public:
m_maincpu(*this, "maincpu"),
m_videoram(*this, "videoram"),
m_spriteram(*this, "spriteram"),
+ m_colorram(*this, "colorram"),
m_d7756(*this, "d7756"),
m_samples(*this, "samples")
{ }
@@ -22,6 +23,7 @@ public:
required_device<cpu_device> m_maincpu;
required_shared_ptr<UINT8> m_videoram;
required_shared_ptr<UINT8> m_spriteram;
+ required_shared_ptr<UINT8> m_colorram;
optional_device<upd7756_device> m_d7756;
optional_device<samples_device> m_samples;
diff --git a/src/mame/video/homerun.c b/src/mame/video/homerun.c
index adb399d2da8..1067887e0b8 100644
--- a/src/mame/video/homerun.c
+++ b/src/mame/video/homerun.c
@@ -53,6 +53,8 @@ WRITE8_MEMBER(homerun_state::homerun_videoram_w)
WRITE8_MEMBER(homerun_state::homerun_color_w)
{
+ m_colorram[offset] = data;
+
/* from PCB photo:
bit 7: 470 ohm resistor \
bit 6: 220 ohm resistor - --> 470 ohm resistor --> blue