summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/includes
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-09-13 07:50:33 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-09-13 07:50:33 +0000
commitaf9a5e817d3eefdda79e801056b29167ecbcdef9 (patch)
tree3478327edb721e5adcd1a9965fea7b353bf72427 /src/mess/includes
parentf2a79b9dca3c9b09abaf7d741d211161c5bc20e6 (diff)
moved constructor of state classes into .h file (no whatsnew)
Diffstat (limited to 'src/mess/includes')
-rw-r--r--src/mess/includes/coco.h16
-rw-r--r--src/mess/includes/coco12.h8
-rw-r--r--src/mess/includes/coco3.h4
-rw-r--r--src/mess/includes/dgnalpha.h8
-rw-r--r--src/mess/includes/dragon.h12
-rw-r--r--src/mess/includes/rm380z.h3
6 files changed, 44 insertions, 7 deletions
diff --git a/src/mess/includes/coco.h b/src/mess/includes/coco.h
index 3b44f435314..6e8ff9f80b2 100644
--- a/src/mess/includes/coco.h
+++ b/src/mess/includes/coco.h
@@ -81,7 +81,21 @@ MACHINE_CONFIG_EXTERN( coco_sound );
class coco_state : public driver_device
{
public:
- coco_state(const machine_config &mconfig, device_type type, const char *tag);
+ coco_state(const machine_config &mconfig, device_type type, const char *tag)
+ : driver_device(mconfig, type, tag),
+ m_maincpu(*this, MAINCPU_TAG),
+ m_pia_0(*this, PIA0_TAG),
+ m_pia_1(*this, PIA1_TAG),
+ m_dac(*this, DAC_TAG),
+ m_wave(*this, WAVE_TAG),
+ m_cococart(*this, CARTRIDGE_TAG),
+ m_ram(*this, RAM_TAG),
+ m_cassette(*this, CASSETTE_TAG),
+ m_bitbanger(*this, BITBANGER_TAG),
+ m_vhd_0(*this, VHD0_TAG),
+ m_vhd_1(*this, VHD1_TAG)
+ {
+ }
required_device<cpu_device> m_maincpu;
required_device<pia6821_device> m_pia_0;
diff --git a/src/mess/includes/coco12.h b/src/mess/includes/coco12.h
index 3b02ac5f03d..6c5a59efcde 100644
--- a/src/mess/includes/coco12.h
+++ b/src/mess/includes/coco12.h
@@ -34,7 +34,13 @@
class coco12_state : public coco_state
{
public:
- coco12_state(const machine_config &mconfig, device_type type, const char *tag);
+ coco12_state(const machine_config &mconfig, device_type type, const char *tag)
+ : coco_state(mconfig, type, tag),
+ m_sam(*this, SAM_TAG),
+ m_vdg(*this, VDG_TAG)
+ {
+ }
+
required_device<sam6883_device> m_sam;
required_device<mc6847_base_device> m_vdg;
diff --git a/src/mess/includes/coco3.h b/src/mess/includes/coco3.h
index beeae2cc990..4ebf789aaf8 100644
--- a/src/mess/includes/coco3.h
+++ b/src/mess/includes/coco3.h
@@ -35,7 +35,9 @@
class coco3_state : public coco_state
{
public:
- coco3_state(const machine_config &mconfig, device_type type, const char *tag);
+ coco3_state(const machine_config &mconfig, device_type type, const char *tag)
+ : coco_state(mconfig, type, tag),
+ m_gime(*this, GIME_TAG) { }
required_device<gime_base_device> m_gime;
diff --git a/src/mess/includes/dgnalpha.h b/src/mess/includes/dgnalpha.h
index 4c044c9646a..637ba0a6e0f 100644
--- a/src/mess/includes/dgnalpha.h
+++ b/src/mess/includes/dgnalpha.h
@@ -36,7 +36,13 @@
class dragon_alpha_state : public dragon64_state
{
public:
- dragon_alpha_state(const machine_config &mconfig, device_type type, const char *tag);
+ dragon_alpha_state(const machine_config &mconfig, device_type type, const char *tag)
+ : dragon64_state(mconfig, type, tag),
+ m_pia_2(*this, PIA2_TAG),
+ m_ay8912(*this, AY8912_TAG),
+ m_fdc(*this, WD2797_TAG)
+ {
+ }
required_device<pia6821_device> m_pia_2;
required_device<device_t> m_ay8912;
diff --git a/src/mess/includes/dragon.h b/src/mess/includes/dragon.h
index 849bf87dbeb..fda08caebb8 100644
--- a/src/mess/includes/dragon.h
+++ b/src/mess/includes/dragon.h
@@ -34,7 +34,11 @@
class dragon_state : public coco12_state
{
public:
- dragon_state(const machine_config &mconfig, device_type type, const char *tag);
+ dragon_state(const machine_config &mconfig, device_type type, const char *tag)
+ : coco12_state(mconfig, type, tag),
+ m_printer(*this, PRINTER_TAG)
+ {
+ }
required_device<printer_image_device> m_printer;
@@ -47,7 +51,11 @@ protected:
class dragon64_state : public dragon_state
{
public:
- dragon64_state(const machine_config &mconfig, device_type type, const char *tag);
+ dragon64_state(const machine_config &mconfig, device_type type, const char *tag)
+ : dragon_state(mconfig, type, tag),
+ m_acia(*this, ACIA_TAG)
+ {
+ }
required_device<acia6551_device> m_acia;
diff --git a/src/mess/includes/rm380z.h b/src/mess/includes/rm380z.h
index aed486ec141..add77a280a0 100644
--- a/src/mess/includes/rm380z.h
+++ b/src/mess/includes/rm380z.h
@@ -89,7 +89,8 @@ public:
required_device<ram_device> m_messram;
optional_device<device_t> m_fdc;
- rm380z_state(const machine_config &mconfig, device_type type, const char *tag): driver_device(mconfig, type, tag),
+ rm380z_state(const machine_config &mconfig, device_type type, const char *tag)
+ : driver_device(mconfig, type, tag),
m_maincpu(*this, RM380Z_MAINCPU_TAG),
m_messram(*this, RAM_TAG),
m_fdc(*this, "wd1771")