summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/r2dtank.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-03-31 13:39:09 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-03-31 13:39:09 +0000
commit2c6405939667eb6da61fee9e8c0a6e9218313b98 (patch)
tree77a8df4bd2675475c38f0d8a666c79c705f35055 /src/mame/drivers/r2dtank.c
parentb5e7f4998b60effd62a2ad43db5e722dcb5dd1c3 (diff)
MAME going modern part 1 (no whatsnew)
- Added 4th parameter to all address maps - Added missing state classes
Diffstat (limited to 'src/mame/drivers/r2dtank.c')
-rw-r--r--src/mame/drivers/r2dtank.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/r2dtank.c b/src/mame/drivers/r2dtank.c
index bb8dfbe137e..15bfb89bbfe 100644
--- a/src/mame/drivers/r2dtank.c
+++ b/src/mame/drivers/r2dtank.c
@@ -410,7 +410,7 @@ static WRITE8_DEVICE_HANDLER( pia_comp_w )
}
-static ADDRESS_MAP_START( r2dtank_main_map, AS_PROGRAM, 8 )
+static ADDRESS_MAP_START( r2dtank_main_map, AS_PROGRAM, 8, r2dtank_state )
AM_RANGE(0x0000, 0x1fff) AM_RAM AM_BASE_MEMBER(r2dtank_state, m_videoram)
AM_RANGE(0x2000, 0x3fff) AM_RAM
AM_RANGE(0x4000, 0x5fff) AM_RAM AM_BASE_MEMBER(r2dtank_state, m_colorram)
@@ -424,7 +424,7 @@ static ADDRESS_MAP_START( r2dtank_main_map, AS_PROGRAM, 8 )
ADDRESS_MAP_END
-static ADDRESS_MAP_START( r2dtank_audio_map, AS_PROGRAM, 8 )
+static ADDRESS_MAP_START( r2dtank_audio_map, AS_PROGRAM, 8, r2dtank_state )
AM_RANGE(0x0000, 0x007f) AM_RAM /* internal RAM */
AM_RANGE(0xd000, 0xd003) AM_DEVREADWRITE_MODERN("pia_audio", pia6821_device, read, write)
AM_RANGE(0xf000, 0xf000) AM_READWRITE(audio_command_r, audio_answer_w)