summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/amspdwy.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/amspdwy.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/amspdwy.c')
-rw-r--r--src/mame/drivers/amspdwy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/amspdwy.c b/src/mame/drivers/amspdwy.c
index 53b0b5076cf..4b73ee28f5e 100644
--- a/src/mame/drivers/amspdwy.c
+++ b/src/mame/drivers/amspdwy.c
@@ -74,7 +74,7 @@ static WRITE8_HANDLER( amspdwy_sound_w )
device_set_input_line(state->m_audiocpu, INPUT_LINE_NMI, PULSE_LINE);
}
-static ADDRESS_MAP_START( amspdwy_map, AS_PROGRAM, 8 )
+static ADDRESS_MAP_START( amspdwy_map, AS_PROGRAM, 8, amspdwy_state )
AM_RANGE(0x0000, 0x7fff) AM_ROM // ROM
AM_RANGE(0x8000, 0x801f) AM_WRITE(amspdwy_paletteram_w) AM_BASE_GENERIC(paletteram)// Palette
AM_RANGE(0x9000, 0x93ff) AM_MIRROR(0x0400) AM_RAM_WRITE(amspdwy_videoram_w) AM_BASE_MEMBER(amspdwy_state, m_videoram) // Layer, mirrored?
@@ -98,7 +98,7 @@ static READ8_HANDLER( amspdwy_port_r )
return tracks[offset];
}
-static ADDRESS_MAP_START( amspdwy_portmap, AS_IO, 8 )
+static ADDRESS_MAP_START( amspdwy_portmap, AS_IO, 8, amspdwy_state )
AM_RANGE(0x0000, 0x7fff) AM_READ(amspdwy_port_r)
ADDRESS_MAP_END
@@ -112,7 +112,7 @@ ADDRESS_MAP_END
***************************************************************************/
-static ADDRESS_MAP_START( amspdwy_sound_map, AS_PROGRAM, 8 )
+static ADDRESS_MAP_START( amspdwy_sound_map, AS_PROGRAM, 8, amspdwy_state )
AM_RANGE(0x0000, 0x7fff) AM_ROM // ROM
// AM_RANGE(0x8000, 0x8000) AM_WRITENOP // ? Written with 0 at the start
AM_RANGE(0x9000, 0x9000) AM_READ(soundlatch_r) // From Main CPU