trunk/src/mame/drivers/flicker.c
| r18501 | r18502 | |
| 22 | 22 | #include "machine/nvram.h" |
| 23 | 23 | #include "flicker.lh" |
| 24 | 24 | |
| 25 | | class flicker_state : public driver_device |
| 25 | class flicker_state : public genpin_class |
| 26 | 26 | { |
| 27 | 27 | public: |
| 28 | 28 | flicker_state(const machine_config &mconfig, device_type type, const char *tag) |
| 29 | | : driver_device(mconfig, type, tag), |
| 30 | | m_maincpu(*this, "maincpu"), |
| 31 | | m_samples(*this, "samples") |
| 29 | : genpin_class(mconfig, type, tag), |
| 30 | m_maincpu(*this, "maincpu") |
| 32 | 31 | { } |
| 33 | 32 | |
| 34 | 33 | DECLARE_WRITE8_MEMBER(port00_w); |
| r18501 | r18502 | |
| 40 | 39 | |
| 41 | 40 | // devices |
| 42 | 41 | required_device<cpu_device> m_maincpu; |
| 43 | | required_device<samples_device> m_samples; |
| 44 | 42 | |
| 45 | 43 | private: |
| 46 | 44 | UINT8 m_out_data; |
trunk/src/mame/drivers/g627.c
| r18501 | r18502 | |
| 45 | 45 | #include "g627.lh" |
| 46 | 46 | |
| 47 | 47 | |
| 48 | | class g627_state : public driver_device |
| 48 | class g627_state : public genpin_class |
| 49 | 49 | { |
| 50 | 50 | public: |
| 51 | 51 | g627_state(const machine_config &mconfig, device_type type, const char *tag) |
| 52 | | : driver_device(mconfig, type, tag), |
| 53 | | m_maincpu(*this, "maincpu"), |
| 54 | | m_samples(*this, "samples") |
| 52 | : genpin_class(mconfig, type, tag), |
| 53 | m_maincpu(*this, "maincpu") |
| 55 | 54 | { } |
| 56 | 55 | |
| 57 | 56 | DECLARE_READ8_MEMBER(porta_r); |
| r18501 | r18502 | |
| 64 | 63 | |
| 65 | 64 | // devices |
| 66 | 65 | required_device<cpu_device> m_maincpu; |
| 67 | | required_device<samples_device> m_samples; |
| 68 | 66 | |
| 69 | 67 | private: |
| 70 | 68 | UINT8 m_seg[6]; |
| r18501 | r18502 | |
| 289 | 287 | |
| 290 | 288 | /* Sound */ |
| 291 | 289 | MCFG_FRAGMENT_ADD( genpin_audio ) |
| 290 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 292 | 291 | MCFG_SOUND_ADD("astrocade", ASTROCADE, 14138000/8) // 0066-117XX audio chip |
| 293 | 292 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 294 | 293 | |
trunk/src/mame/drivers/zac_1.c
| r18501 | r18502 | |
| 32 | 32 | #include "machine/nvram.h" |
| 33 | 33 | #include "zac_1.lh" |
| 34 | 34 | |
| 35 | | class zac_1_state : public driver_device |
| 35 | class zac_1_state : public genpin_class |
| 36 | 36 | { |
| 37 | 37 | public: |
| 38 | 38 | zac_1_state(const machine_config &mconfig, device_type type, const char *tag) |
| 39 | | : driver_device(mconfig, type, tag), |
| 39 | : genpin_class(mconfig, type, tag), |
| 40 | 40 | m_maincpu(*this, "maincpu"), |
| 41 | | m_p_ram(*this, "ram"), |
| 42 | | m_samples(*this, "samples") |
| 41 | m_p_ram(*this, "ram") |
| 43 | 42 | { } |
| 44 | 43 | |
| 45 | 44 | DECLARE_READ8_MEMBER(ctrl_r); |
| r18501 | r18502 | |
| 48 | 47 | DECLARE_WRITE8_MEMBER(serial_w); |
| 49 | 48 | DECLARE_READ8_MEMBER(reset_int_r); |
| 50 | 49 | DECLARE_WRITE8_MEMBER(reset_int_w); |
| 51 | | UINT8 m_t_c; |
| 52 | | UINT8 m_out_offs; |
| 53 | | required_device<cpu_device> m_maincpu; |
| 54 | | required_shared_ptr<UINT8> m_p_ram; |
| 55 | | required_device<samples_device> m_samples; |
| 56 | 50 | TIMER_DEVICE_CALLBACK_MEMBER(zac_1_inttimer); |
| 57 | 51 | TIMER_DEVICE_CALLBACK_MEMBER(zac_1_outtimer); |
| 58 | 52 | protected: |
| 59 | 53 | |
| 60 | 54 | // devices |
| 55 | required_device<cpu_device> m_maincpu; |
| 56 | required_shared_ptr<UINT8> m_p_ram; |
| 61 | 57 | |
| 62 | 58 | // driver_device overrides |
| 63 | 59 | virtual void machine_reset(); |
| 64 | 60 | private: |
| 61 | UINT8 m_t_c; |
| 62 | UINT8 m_out_offs; |
| 65 | 63 | UINT8 m_input_line; |
| 66 | 64 | }; |
| 67 | 65 | |
trunk/src/mame/drivers/wico.c
| r18501 | r18502 | |
| 34 | 34 | #include "wico.lh" |
| 35 | 35 | |
| 36 | 36 | |
| 37 | | class wico_state : public driver_device |
| 37 | class wico_state : public genpin_class |
| 38 | 38 | { |
| 39 | 39 | public: |
| 40 | 40 | wico_state(const machine_config &mconfig, device_type type, const char *tag) |
| 41 | | : driver_device(mconfig, type, tag), |
| 41 | : genpin_class(mconfig, type, tag), |
| 42 | 42 | m_ccpu(*this, "ccpu"), |
| 43 | 43 | m_hcpu(*this, "hcpu"), |
| 44 | | m_shared_ram(*this, "sharedram"), |
| 45 | | m_samples(*this, "samples") |
| 44 | m_shared_ram(*this, "sharedram") |
| 46 | 45 | { } |
| 47 | 46 | |
| 48 | 47 | DECLARE_READ8_MEMBER(lampst_r); |
| r18501 | r18502 | |
| 62 | 61 | required_device<cpu_device> m_ccpu; |
| 63 | 62 | required_device<cpu_device> m_hcpu; |
| 64 | 63 | required_shared_ptr<UINT8> m_shared_ram; |
| 65 | | required_device<samples_device> m_samples; |
| 66 | 64 | |
| 67 | 65 | // driver_device overrides |
| 68 | 66 | virtual void machine_reset(); |
| r18501 | r18502 | |
| 421 | 419 | |
| 422 | 420 | /* Sound */ |
| 423 | 421 | MCFG_FRAGMENT_ADD( genpin_audio ) |
| 422 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 424 | 423 | MCFG_SOUND_ADD("sn76494", SN76494, 10000000 / 64) |
| 425 | 424 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) |
| 426 | 425 | MCFG_SOUND_CONFIG(psg_intf) |
trunk/src/mame/drivers/atari_s1.c
| r18501 | r18502 | |
| 46 | 46 | #define NMI_INT DMA_INT / 16 |
| 47 | 47 | //#define BIT6_CLK NMI_INT / 4 |
| 48 | 48 | |
| 49 | | class atari_s1_state : public driver_device |
| 49 | class atari_s1_state : public genpin_class |
| 50 | 50 | { |
| 51 | 51 | public: |
| 52 | 52 | atari_s1_state(const machine_config &mconfig, device_type type, const char *tag) |
| 53 | | : driver_device(mconfig, type, tag), |
| 53 | : genpin_class(mconfig, type, tag), |
| 54 | 54 | m_maincpu(*this, "maincpu"), |
| 55 | | m_p_ram(*this, "ram"), |
| 56 | | m_samples(*this, "samples") |
| 55 | m_p_ram(*this, "ram") |
| 57 | 56 | { } |
| 58 | 57 | |
| 59 | 58 | DECLARE_READ8_MEMBER(switch_r); |
| r18501 | r18502 | |
| 68 | 67 | // devices |
| 69 | 68 | required_device<cpu_device> m_maincpu; |
| 70 | 69 | required_shared_ptr<UINT8> m_p_ram; |
| 71 | | required_device<samples_device> m_samples; |
| 72 | 70 | |
| 73 | 71 | // driver_device overrides |
| 74 | 72 | virtual void machine_reset(); |
trunk/src/mame/drivers/spectra.c
| r18501 | r18502 | |
| 24 | 24 | #include "spectra.lh" |
| 25 | 25 | |
| 26 | 26 | |
| 27 | | class spectra_state : public driver_device |
| 27 | class spectra_state : public genpin_class |
| 28 | 28 | { |
| 29 | 29 | public: |
| 30 | 30 | spectra_state(const machine_config &mconfig, device_type type, const char *tag) |
| 31 | | : driver_device(mconfig, type, tag), |
| 31 | : genpin_class(mconfig, type, tag), |
| 32 | 32 | m_maincpu(*this, "maincpu"), |
| 33 | 33 | m_snsnd(*this, "snsnd"), |
| 34 | | m_p_ram(*this, "ram"), |
| 35 | | m_samples(*this, "samples") |
| 34 | m_p_ram(*this, "ram") |
| 36 | 35 | { } |
| 37 | 36 | |
| 38 | 37 | DECLARE_READ8_MEMBER(porta_r); |
| r18501 | r18502 | |
| 47 | 46 | required_device<cpu_device> m_maincpu; |
| 48 | 47 | required_device<sn76477_device> m_snsnd; |
| 49 | 48 | required_shared_ptr<UINT8> m_p_ram; |
| 50 | | required_device<samples_device> m_samples; |
| 51 | 49 | |
| 52 | 50 | // driver_device overrides |
| 53 | 51 | virtual void machine_reset(); |
| r18501 | r18502 | |
| 252 | 250 | |
| 253 | 251 | /* Sound */ |
| 254 | 252 | MCFG_FRAGMENT_ADD( genpin_audio ) |
| 253 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 255 | 254 | MCFG_SOUND_ADD("snsnd", SN76477, 0) |
| 256 | 255 | MCFG_SOUND_CONFIG(sn76477_intf) |
| 257 | 256 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
trunk/src/mame/drivers/atari_s2.c
| r18501 | r18502 | |
| 17 | 17 | #include "atari_s2.lh" |
| 18 | 18 | |
| 19 | 19 | |
| 20 | | class atari_s2_state : public driver_device |
| 20 | class atari_s2_state : public genpin_class |
| 21 | 21 | { |
| 22 | 22 | public: |
| 23 | 23 | atari_s2_state(const machine_config &mconfig, device_type type, const char *tag) |
| 24 | | : driver_device(mconfig, type, tag), |
| 25 | | m_maincpu(*this, "maincpu"), |
| 26 | | m_samples(*this, "samples") |
| 24 | : genpin_class(mconfig, type, tag), |
| 25 | m_maincpu(*this, "maincpu") |
| 27 | 26 | { } |
| 28 | 27 | |
| 29 | 28 | DECLARE_WRITE8_HANDLER(sound0_w) { }; |
| r18501 | r18502 | |
| 40 | 39 | |
| 41 | 40 | // devices |
| 42 | 41 | required_device<cpu_device> m_maincpu; |
| 43 | | required_device<samples_device> m_samples; |
| 44 | 42 | |
| 45 | 43 | // driver_device overrides |
| 46 | 44 | virtual void machine_reset(); |
trunk/src/mame/machine/genpin.h
| r18501 | r18502 | |
| 30 | 30 | MACHINE_CONFIG_EXTERN( genpin_audio ); |
| 31 | 31 | |
| 32 | 32 | |
| 33 | class genpin_class : public driver_device |
| 34 | { |
| 35 | public: |
| 36 | genpin_class(const machine_config &mconfig, device_type type, const char *tag) |
| 37 | : driver_device(mconfig, type, tag), |
| 38 | m_samples(*this, "samples") |
| 39 | { } |
| 40 | |
| 41 | required_device<samples_device> m_samples; |
| 42 | }; |
| 43 | |
| 44 | |
| 33 | 45 | #endif /* GENPIN_H_ */ |