Previous 199869 Revisions Next

r17858 Thursday 13th September, 2012 at 07:50:33 UTC by Miodrag Milanović
moved constructor of state classes into .h file (no whatsnew)
[src/mess/includes]coco.h coco12.h coco3.h dgnalpha.h dragon.h rm380z.h
[src/mess/machine]coco.c coco12.c coco3.c dgnalpha.c dragon.c

trunk/src/mess/machine/dgnalpha.c
r17857r17858
6868#include "sound/ay8910.h"
6969#include "imagedev/flopdrv.h"
7070
71
7271//-------------------------------------------------
73//  ctor
74//-------------------------------------------------
75
76dragon_alpha_state::dragon_alpha_state(const machine_config &mconfig, device_type type, const char *tag)
77   : dragon64_state(mconfig, type, tag),
78     m_pia_2(*this, PIA2_TAG),
79     m_ay8912(*this, AY8912_TAG),
80     m_fdc(*this, WD2797_TAG)
81{
82}
83
84
85//-------------------------------------------------
8672//  device_start
8773//-------------------------------------------------
8874
trunk/src/mess/machine/coco.c
r17857r17858
7575//**************************************************************************
7676
7777//-------------------------------------------------
78//  ctor
79//-------------------------------------------------
80
81coco_state::coco_state(const machine_config &mconfig, device_type type, const char *tag)
82   : driver_device(mconfig, type, tag),
83     m_maincpu(*this, MAINCPU_TAG),
84     m_pia_0(*this, PIA0_TAG),
85     m_pia_1(*this, PIA1_TAG),
86     m_dac(*this, DAC_TAG),
87     m_wave(*this, WAVE_TAG),
88     m_cococart(*this, CARTRIDGE_TAG),
89     m_ram(*this, RAM_TAG),
90     m_cassette(*this, CASSETTE_TAG),
91     m_bitbanger(*this, BITBANGER_TAG),
92     m_vhd_0(*this, VHD0_TAG),
93     m_vhd_1(*this, VHD1_TAG)
94{
95}
96
97
98
99//-------------------------------------------------
10078//  analog_port_start
10179//-------------------------------------------------
10280
trunk/src/mess/machine/coco12.c
r17857r17858
99#include "includes/coco12.h"
1010
1111//-------------------------------------------------
12//  ctor
13//-------------------------------------------------
14
15coco12_state::coco12_state(const machine_config &mconfig, device_type type, const char *tag)
16   : coco_state(mconfig, type, tag),
17     m_sam(*this, SAM_TAG),
18     m_vdg(*this, VDG_TAG)
19{
20}
21
22
23
24//-------------------------------------------------
2512//  device_start
2613//-------------------------------------------------
2714
trunk/src/mess/machine/dragon.c
r17857r17858
4343***************************************************************************/
4444
4545//-------------------------------------------------
46//  ctor
47//-------------------------------------------------
48
49dragon_state::dragon_state(const machine_config &mconfig, device_type type, const char *tag)
50   : coco12_state(mconfig, type, tag),
51     m_printer(*this, PRINTER_TAG)
52{
53}
54
55
56
57//-------------------------------------------------
5846//  pia1_pa_changed - called when PIA1 PA changes
5947//-------------------------------------------------
6048
r17857r17858
7765***************************************************************************/
7866
7967//-------------------------------------------------
80//  ctor
81//-------------------------------------------------
82
83dragon64_state::dragon64_state(const machine_config &mconfig, device_type type, const char *tag)
84   : dragon_state(mconfig, type, tag),
85     m_acia(*this, ACIA_TAG)
86{
87}
88
89
90
91//-------------------------------------------------
9268//  ff00_read
9369//-------------------------------------------------
9470
trunk/src/mess/machine/coco3.c
r17857r17858
4343
4444#include "includes/coco3.h"
4545
46
47
4846//-------------------------------------------------
49//  ctor
50//-------------------------------------------------
51
52coco3_state::coco3_state(const machine_config &mconfig, device_type type, const char *tag)
53   : coco_state(mconfig, type, tag),
54     m_gime(*this, GIME_TAG)
55{
56}
57
58
59
60//-------------------------------------------------
6147//  ff20_write
6248//-------------------------------------------------
6349
trunk/src/mess/includes/dragon.h
r17857r17858
3434class dragon_state : public coco12_state
3535{
3636public:
37   dragon_state(const machine_config &mconfig, device_type type, const char *tag);
37   dragon_state(const machine_config &mconfig, device_type type, const char *tag)
38   : coco12_state(mconfig, type, tag),
39     m_printer(*this, PRINTER_TAG)
40   {
41   }
3842
3943   required_device<printer_image_device> m_printer;
4044
r17857r17858
4751class dragon64_state : public dragon_state
4852{
4953public:
50   dragon64_state(const machine_config &mconfig, device_type type, const char *tag);
54   dragon64_state(const machine_config &mconfig, device_type type, const char *tag)
55   : dragon_state(mconfig, type, tag),
56     m_acia(*this, ACIA_TAG)
57   {
58   }
5159
5260   required_device<acia6551_device> m_acia;
5361
trunk/src/mess/includes/rm380z.h
r17857r17858
8989   required_device<ram_device> m_messram;
9090   optional_device<device_t> m_fdc;
9191
92   rm380z_state(const machine_config &mconfig, device_type type, const char *tag): driver_device(mconfig, type, tag),
92   rm380z_state(const machine_config &mconfig, device_type type, const char *tag)
93     : driver_device(mconfig, type, tag),
9394      m_maincpu(*this, RM380Z_MAINCPU_TAG),
9495      m_messram(*this, RAM_TAG),
9596      m_fdc(*this, "wd1771")
trunk/src/mess/includes/coco.h
r17857r17858
8181class coco_state : public driver_device
8282{
8383public:
84   coco_state(const machine_config &mconfig, device_type type, const char *tag);
84   coco_state(const machine_config &mconfig, device_type type, const char *tag)
85   : driver_device(mconfig, type, tag),
86     m_maincpu(*this, MAINCPU_TAG),
87     m_pia_0(*this, PIA0_TAG),
88     m_pia_1(*this, PIA1_TAG),
89     m_dac(*this, DAC_TAG),
90     m_wave(*this, WAVE_TAG),
91     m_cococart(*this, CARTRIDGE_TAG),
92     m_ram(*this, RAM_TAG),
93     m_cassette(*this, CASSETTE_TAG),
94     m_bitbanger(*this, BITBANGER_TAG),
95     m_vhd_0(*this, VHD0_TAG),
96     m_vhd_1(*this, VHD1_TAG)
97   {
98   }
8599
86100   required_device<cpu_device> m_maincpu;
87101   required_device<pia6821_device> m_pia_0;
trunk/src/mess/includes/coco12.h
r17857r17858
3434class coco12_state : public coco_state
3535{
3636public:
37   coco12_state(const machine_config &mconfig, device_type type, const char *tag);
37   coco12_state(const machine_config &mconfig, device_type type, const char *tag)
38   : coco_state(mconfig, type, tag),
39     m_sam(*this, SAM_TAG),
40     m_vdg(*this, VDG_TAG)
41   {
42   }
3843
44
3945   required_device<sam6883_device> m_sam;
4046   required_device<mc6847_base_device> m_vdg;
4147
trunk/src/mess/includes/coco3.h
r17857r17858
3535class coco3_state : public coco_state
3636{
3737public:
38   coco3_state(const machine_config &mconfig, device_type type, const char *tag);
38   coco3_state(const machine_config &mconfig, device_type type, const char *tag)
39   : coco_state(mconfig, type, tag),
40     m_gime(*this, GIME_TAG) { }
3941
4042   required_device<gime_base_device> m_gime;
4143
trunk/src/mess/includes/dgnalpha.h
r17857r17858
3636class dragon_alpha_state : public dragon64_state
3737{
3838public:
39   dragon_alpha_state(const machine_config &mconfig, device_type type, const char *tag);
39   dragon_alpha_state(const machine_config &mconfig, device_type type, const char *tag)
40   : dragon64_state(mconfig, type, tag),
41     m_pia_2(*this, PIA2_TAG),
42     m_ay8912(*this, AY8912_TAG),
43     m_fdc(*this, WD2797_TAG)
44   {
45   }
4046
4147   required_device<pia6821_device> m_pia_2;
4248   required_device<device_t> m_ay8912;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team