summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2011-06-15 19:09:44 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2011-06-15 19:09:44 +0000
commitb56d51b9d3d5dff4df6a1e1698f847075af61ec4 (patch)
tree92047f4cbfae5dff4c36e1930a3bf13ddcee0d15 /src
parentd7beedfe7063f023a7405b433089e6fa27d929f4 (diff)
Fix MT #4375 (aka somebody should explain to me why this is going to become a standard thing -.- ...)
Diffstat (limited to 'src')
-rw-r--r--src/mame/drivers/ojankohs.c10
-rw-r--r--src/mame/video/ojankohs.c14
2 files changed, 11 insertions, 13 deletions
diff --git a/src/mame/drivers/ojankohs.c b/src/mame/drivers/ojankohs.c
index 27caed8e6af..2fae997d492 100644
--- a/src/mame/drivers/ojankohs.c
+++ b/src/mame/drivers/ojankohs.c
@@ -200,18 +200,18 @@ static WRITE8_HANDLER( ccasino_coinctr_w )
static ADDRESS_MAP_START( ojankohs_map, AS_PROGRAM, 8 )
AM_RANGE(0x0000, 0x7fff) AM_ROM
- AM_RANGE(0x8000, 0x8fff) AM_RAM_WRITE(ojankohs_videoram_w)
- AM_RANGE(0x9000, 0x9fff) AM_RAM_WRITE(ojankohs_colorram_w)
+ AM_RANGE(0x8000, 0x8fff) AM_RAM_WRITE(ojankohs_videoram_w) AM_BASE_MEMBER(ojankohs_state,m_videoram)
+ AM_RANGE(0x9000, 0x9fff) AM_RAM_WRITE(ojankohs_colorram_w) AM_BASE_MEMBER(ojankohs_state,m_colorram)
AM_RANGE(0xa000, 0xb7ff) AM_RAM AM_SHARE("nvram")
- AM_RANGE(0xb800, 0xbfff) AM_RAM_WRITE(ojankohs_palette_w)
+ AM_RANGE(0xb800, 0xbfff) AM_RAM_WRITE(ojankohs_palette_w) AM_BASE_MEMBER(ojankohs_state,m_paletteram)
AM_RANGE(0xc000, 0xffff) AM_ROMBANK("bank1")
ADDRESS_MAP_END
static ADDRESS_MAP_START( ojankoy_map, AS_PROGRAM, 8 )
AM_RANGE(0x0000, 0x7fff) AM_ROM
- AM_RANGE(0x8000, 0x9fff) AM_RAM_WRITE(ojankohs_videoram_w)
- AM_RANGE(0xa000, 0xafff) AM_RAM_WRITE(ojankohs_colorram_w)
+ AM_RANGE(0x8000, 0x9fff) AM_RAM_WRITE(ojankohs_videoram_w) AM_BASE_MEMBER(ojankohs_state,m_videoram)
+ AM_RANGE(0xa000, 0xafff) AM_RAM_WRITE(ojankohs_colorram_w) AM_BASE_MEMBER(ojankohs_state,m_colorram)
AM_RANGE(0xb000, 0xbfff) AM_RAM AM_SHARE("nvram")
AM_RANGE(0xc000, 0xffff) AM_ROMBANK("bank1")
ADDRESS_MAP_END
diff --git a/src/mame/video/ojankohs.c b/src/mame/video/ojankohs.c
index 2e2f31fa641..ebf3f8151a3 100644
--- a/src/mame/video/ojankohs.c
+++ b/src/mame/video/ojankohs.c
@@ -271,11 +271,11 @@ VIDEO_START( ojankohs )
ojankohs_state *state = machine.driver_data<ojankohs_state>();
state->m_tilemap = tilemap_create(machine, ojankohs_get_tile_info, tilemap_scan_rows, 8, 4, 64, 64);
- state->m_videoram = auto_alloc_array(machine, UINT8, 0x2000);
- state->m_colorram = auto_alloc_array(machine, UINT8, 0x1000);
- state->m_paletteram = auto_alloc_array(machine, UINT8, 0x800);
+// state->m_videoram = auto_alloc_array(machine, UINT8, 0x1000);
+// state->m_colorram = auto_alloc_array(machine, UINT8, 0x1000);
+// state->m_paletteram = auto_alloc_array(machine, UINT8, 0x800);
- state->save_pointer(NAME(state->m_videoram), 0x2000);
+ state->save_pointer(NAME(state->m_videoram), 0x1000);
state->save_pointer(NAME(state->m_colorram), 0x1000);
state->save_pointer(NAME(state->m_paletteram), 0x800);
}
@@ -285,13 +285,11 @@ VIDEO_START( ojankoy )
ojankohs_state *state = machine.driver_data<ojankohs_state>();
state->m_tilemap = tilemap_create(machine, ojankoy_get_tile_info, tilemap_scan_rows, 8, 4, 64, 64);
- state->m_videoram = auto_alloc_array(machine, UINT8, 0x2000);
- state->m_colorram = auto_alloc_array(machine, UINT8, 0x1000);
- state->m_paletteram = auto_alloc_array(machine, UINT8, 0x800);
+// state->m_videoram = auto_alloc_array(machine, UINT8, 0x2000);
+// state->m_colorram = auto_alloc_array(machine, UINT8, 0x1000);
state->save_pointer(NAME(state->m_videoram), 0x2000);
state->save_pointer(NAME(state->m_colorram), 0x1000);
- state->save_pointer(NAME(state->m_paletteram), 0x800);
}
VIDEO_START( ojankoc )