diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2012-04-11 14:10:06 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2012-04-11 14:10:06 +0000 |
commit | 83f070ea3b3f354577f5fc2e54ca6196249eb477 (patch) | |
tree | 00d278b578e8f4cc3debe2203a92f96470e7066b /src/mame/drivers/magicfly.c | |
parent | a1ee0822d64c54a810231c19cd21bf2046cf5b88 (diff) |
AM_BASE and AM_BASE_SIZE to AM_SHARE by request from Aaron (no whatsnew)
Diffstat (limited to 'src/mame/drivers/magicfly.c')
-rw-r--r-- | src/mame/drivers/magicfly.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mame/drivers/magicfly.c b/src/mame/drivers/magicfly.c index 3d43c8d68de..d0605fab00d 100644 --- a/src/mame/drivers/magicfly.c +++ b/src/mame/drivers/magicfly.c @@ -421,10 +421,12 @@ class magicfly_state : public driver_device { public: magicfly_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag) { } + : driver_device(mconfig, type, tag) , + m_videoram(*this, "videoram"), + m_colorram(*this, "colorram"){ } - UINT8 *m_videoram; - UINT8 *m_colorram; + required_shared_ptr<UINT8> m_videoram; + required_shared_ptr<UINT8> m_colorram; tilemap_t *m_bg_tilemap; int m_input_selector; DECLARE_WRITE8_MEMBER(magicfly_videoram_w); @@ -597,8 +599,8 @@ static ADDRESS_MAP_START( magicfly_map, AS_PROGRAM, 8, magicfly_state ) AM_RANGE(0x0000, 0x07ff) AM_RAM AM_SHARE("nvram") /* MK48Z02B NVRAM */ AM_RANGE(0x0800, 0x0800) AM_DEVWRITE("crtc", mc6845_device, address_w) AM_RANGE(0x0801, 0x0801) AM_DEVREADWRITE("crtc", mc6845_device, register_r, register_w) - AM_RANGE(0x1000, 0x13ff) AM_RAM_WRITE(magicfly_videoram_w) AM_BASE(m_videoram) /* HM6116LP #1 (2K x 8) RAM (only 1st half used) */ - AM_RANGE(0x1800, 0x1bff) AM_RAM_WRITE(magicfly_colorram_w) AM_BASE(m_colorram) /* HM6116LP #2 (2K x 8) RAM (only 1st half used) */ + AM_RANGE(0x1000, 0x13ff) AM_RAM_WRITE(magicfly_videoram_w) AM_SHARE("videoram") /* HM6116LP #1 (2K x 8) RAM (only 1st half used) */ + AM_RANGE(0x1800, 0x1bff) AM_RAM_WRITE(magicfly_colorram_w) AM_SHARE("colorram") /* HM6116LP #2 (2K x 8) RAM (only 1st half used) */ AM_RANGE(0x2800, 0x2800) AM_READ(mux_port_r) /* multiplexed input port */ AM_RANGE(0x3000, 0x3000) AM_WRITE(mux_port_w) /* output port */ AM_RANGE(0xc000, 0xffff) AM_ROM /* ROM space */ |