summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/binbug.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-02-01 10:04:01 +0100
committerGravatarGravatar Olivier Galibert <galibert@pobox.com>2018-02-12 10:04:52 +0100
commitc5219643162cb7d2a8688425a09008d28c8e2437 (patch)
treef2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/binbug.cpp
parent09b6ce46873b38de9030a3c0378ff327f17af881 (diff)
API change: Memory maps are now methods of the owner class [O. Galibert]
Also, a lot more freedom happened, that's going to be more visible soon.
Diffstat (limited to 'src/mame/drivers/binbug.cpp')
-rw-r--r--src/mame/drivers/binbug.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mame/drivers/binbug.cpp b/src/mame/drivers/binbug.cpp
index 4ae385d6e8b..18dda0e979e 100644
--- a/src/mame/drivers/binbug.cpp
+++ b/src/mame/drivers/binbug.cpp
@@ -89,6 +89,8 @@ public:
required_device<cassette_image_device> m_cass;
void binbug(machine_config &config);
+ void binbug_data(address_map &map);
+ void binbug_mem(address_map &map);
private:
uint8_t m_framecnt;
required_shared_ptr<uint8_t> m_p_videoram;
@@ -111,7 +113,7 @@ WRITE_LINE_MEMBER( binbug_state::binbug_serial_w )
m_cass->output(state ? -1.0 : +1.0);
}
-static ADDRESS_MAP_START(binbug_mem, AS_PROGRAM, 8, binbug_state)
+ADDRESS_MAP_START(binbug_state::binbug_mem)
ADDRESS_MAP_UNMAP_HIGH
AM_RANGE( 0x0000, 0x03ff) AM_ROM
AM_RANGE( 0x0400, 0x77ff) AM_RAM
@@ -119,7 +121,7 @@ static ADDRESS_MAP_START(binbug_mem, AS_PROGRAM, 8, binbug_state)
AM_RANGE( 0x7c00, 0x7fff) AM_RAM AM_SHARE("attribram")
ADDRESS_MAP_END
-static ADDRESS_MAP_START(binbug_data, AS_DATA, 8, binbug_state)
+ADDRESS_MAP_START(binbug_state::binbug_data)
ADDRESS_MAP_UNMAP_HIGH
AM_RANGE(S2650_CTRL_PORT, S2650_CTRL_PORT) AM_WRITE(binbug_ctrl_w)
ADDRESS_MAP_END
@@ -424,6 +426,8 @@ public:
TIMER_DEVICE_CALLBACK_MEMBER(uart_tick);
void dg680(machine_config &config);
+ void dg680_io(address_map &map);
+ void dg680_mem(address_map &map);
private:
uint8_t m_pio_b;
uint8_t m_term_data;
@@ -433,7 +437,7 @@ private:
required_device<z80pio_device> m_pio;
};
-static ADDRESS_MAP_START(dg680_mem, AS_PROGRAM, 8, dg680_state)
+ADDRESS_MAP_START(dg680_state::dg680_mem)
ADDRESS_MAP_UNMAP_HIGH
AM_RANGE( 0x0000, 0xcfff) AM_RAM
AM_RANGE( 0xd000, 0xd7ff) AM_ROM
@@ -442,7 +446,7 @@ static ADDRESS_MAP_START(dg680_mem, AS_PROGRAM, 8, dg680_state)
AM_RANGE( 0xf400, 0xf7ff) AM_RAM AM_SHARE("attribram")
ADDRESS_MAP_END
-static ADDRESS_MAP_START(dg680_io, AS_IO, 8, dg680_state)
+ADDRESS_MAP_START(dg680_state::dg680_io)
ADDRESS_MAP_UNMAP_HIGH
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE(0x00,0x03) AM_DEVREADWRITE("z80pio", z80pio_device, read_alt, write_alt)