summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/ccastles.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-04-15 05:44:22 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-04-15 05:44:22 +0000
commit3c0e32112372e880b70e52fbb5ce14b5eef40f1b (patch)
tree0e136f7f1d4f37e9af39f25c6744c497f264a733 /src/mame/includes/ccastles.h
parent933e54c208155a783f26ab6c0ab9fe788e2595d2 (diff)
Remove AM_BASE in favor of AM_SHARED + required_shared_ptr.
This update passes validity checks but will certainly have a number of drivers failing at startup because all pointers are defaulted to required by the automated scripts used. Will fix problems once we get a regression run to find out which drivers need attention.
Diffstat (limited to 'src/mame/includes/ccastles.h')
-rw-r--r--src/mame/includes/ccastles.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/mame/includes/ccastles.h b/src/mame/includes/ccastles.h
index 208894c7572..55248b63bc4 100644
--- a/src/mame/includes/ccastles.h
+++ b/src/mame/includes/ccastles.h
@@ -14,11 +14,17 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_nvram_4b(*this, "nvram_4b"),
- m_nvram_4a(*this, "nvram_4a") { }
+ m_nvram_4a(*this, "nvram_4a") ,
+ m_videoram(*this, "videoram"),
+ m_spriteram(*this, "spriteram"){ }
+ /* devices */
+ required_device<m6502_device> m_maincpu;
+ required_device<x2212_device> m_nvram_4b;
+ required_device<x2212_device> m_nvram_4a;
/* memory pointers */
- UINT8 * m_videoram;
- UINT8 * m_spriteram;
+ required_shared_ptr<UINT8> m_videoram;
+ required_shared_ptr<UINT8> m_spriteram;
/* video-related */
const UINT8 *m_syncprom;
@@ -40,10 +46,6 @@ public:
UINT8 m_irq_state;
UINT8 m_nvram_store[2];
- /* devices */
- required_device<m6502_device> m_maincpu;
- required_device<x2212_device> m_nvram_4b;
- required_device<x2212_device> m_nvram_4a;
DECLARE_WRITE8_MEMBER(irq_ack_w);
DECLARE_WRITE8_MEMBER(led_w);
DECLARE_WRITE8_MEMBER(ccounter_w);