Exemple #1
0
 public taitosj_state(machine_config mconfig, device_type type, string tag)
     : base(mconfig, type, tag)
 {
     m_videoram           = new required_shared_ptr_array <uint8_t, u32_const_3>(this, "videoram_{0}", 1U);
     m_spriteram          = new required_shared_ptr <uint8_t>(this, "spriteram");
     m_paletteram         = new required_shared_ptr <uint8_t>(this, "paletteram");
     m_characterram       = new required_shared_ptr <uint8_t>(this, "characterram");
     m_scroll             = new required_shared_ptr <uint8_t>(this, "scroll");
     m_colscrolly         = new required_shared_ptr <uint8_t>(this, "colscrolly");
     m_gfxpointer         = new required_shared_ptr <uint8_t>(this, "gfxpointer");
     m_colorbank          = new required_shared_ptr <uint8_t>(this, "colorbank");
     m_video_mode         = new required_shared_ptr <uint8_t>(this, "video_mode");
     m_video_priority     = new required_shared_ptr <uint8_t>(this, "video_priority");
     m_collision_reg      = new required_shared_ptr <uint8_t>(this, "collision_reg");
     m_kikstart_scrollram = new optional_shared_ptr <uint8_t>(this, "kikstart_scroll");  //m_kikstart_scrollram = new required_shared_ptr_uint8_t(this, "kikstart_scroll");
     m_gfx       = new required_region_ptr <uint8_t>(this, "gfx");
     m_mainbank  = new required_memory_bank(this, "mainbank");
     m_in2       = new required_ioport(this, "IN2");
     m_gear      = new optional_ioport_array <u32_const_2>(this, "GEARP{0}", 1U);
     m_maincpu   = new required_device <cpu_device>(this, "maincpu");
     m_audiocpu  = new required_device <cpu_device>(this, "audiocpu");
     m_mcu       = new optional_device <taito_sj_security_mcu_device>(this, "bmcu");
     m_soundnmi  = new required_device_array <input_merger_device, u32_const_2>(this, "soundnmi{0}", 1U, (base_, tag_) => { return(new device_finder <input_merger_device, bool_const_true>(base_, tag_)); });
     m_dac       = new required_device <dac_8bit_r2r_device>(this, "dac");
     m_dacvol    = new required_device <discrete_sound_device>(this, "dacvol");
     m_ay        = new required_device_array <ay8910_device, u32_const_4>(this, "ay{0}", 1U, (base_, tag_) => { return(new device_finder <ay8910_device, bool_const_true>(base_, tag_)); });
     m_gfxdecode = new required_device <gfxdecode_device>(this, "gfxdecode");
     m_screen    = new required_device <screen_device>(this, "screen");
     m_palette   = new required_device <palette_device>(this, "palette");
 }
Exemple #2
0
        //std::unique_ptr<u8[]> m_blended_data;


        // construction/destruction
        protected atarigen_state(machine_config mconfig, device_type type, string tag)
            : base(mconfig, type, tag)
        {
            m_maincpu   = new required_device <cpu_device>(this, "maincpu");
            m_gfxdecode = new optional_device <gfxdecode_device>(this, "gfxdecode");
            m_screen    = new optional_device <screen_device>(this, "screen");
        }
Exemple #3
0
 protected avgdvg_device_base(machine_config mconfig, device_type type, string tag, device_t owner, u32 clock)
     : base(mconfig, type, tag, owner, clock)
 {
     m_vector        = new required_device <vector_device>(this, finder_base.DUMMY_TAG);
     m_memspace      = new required_address_space(this, finder_base.DUMMY_TAG, -1);
     m_membase       = 0;
     m_nvect         = 0;
     m_pc            = 0;
     m_sp            = 0;
     m_dvx           = 0;
     m_dvy           = 0;
     m_stack         = new u16 [] { 0, 0, 0, 0 };
     m_data          = 0;
     m_state_latch   = 0;
     m_scale         = 0;
     m_intensity     = 0;
     m_op            = 0;
     m_halt          = 0;
     m_sync_halt     = 0;
     m_xpos          = 0;
     m_ypos          = 0;
     m_prom          = new required_region_ptr <u8>(this, "prom");
     m_vg_run_timer  = null;
     m_vg_halt_timer = null;
 }
Exemple #4
0
        protected required_device <dac_16bit_r2r_twos_complement_device> m_dac;  //required_device<dac_word_interface> m_dac; /* just to have a sound device */


        protected ttl_mono_state(machine_config mconfig, device_type type, string tag)
            : base(mconfig, type, tag)
        {
            m_maincpu = new required_device <netlist_mame_device>(this, "maincpu");
            m_video   = new required_device <fixedfreq_device>(this, "fixfreq");
            m_dac     = new required_device <dac_16bit_r2r_twos_complement_device>(this, "dac");           /* just to have a sound device */
        }
Exemple #5
0
 public dkong_state(machine_config mconfig, device_type type, string tag)
     : base(mconfig, type, tag)
 {
     m_maincpu    = new required_device <cpu_device>(this, "maincpu");
     m_soundcpu   = new optional_device <mcs48_cpu_device>(this, "soundcpu");
     m_eeprom     = new optional_device <eeprom_serial_93cxx_device>(this, "eeprom");
     m_dev_n2a03a = new optional_device <intref>(this, "n2a03a");
     m_dev_n2a03b = new optional_device <intref>(this, "n2a03b");
     m_dev_vp2    = new optional_device <latch8_device>(this, "virtual_p2");
     m_dev_6h     = new optional_device <latch8_device>(this, "ls259.6h");
     m_ls175_3d   = new optional_device <latch8_device>(this, "ls175.3d");
     m_discrete   = new optional_device <discrete_device>(this, "discrete");
     m_m58817     = new optional_device <intref>(this, "tms");
     m_watchdog   = new optional_device <watchdog_timer_device>(this, "watchdog");
     m_video_ram  = new required_shared_ptr_uint8_t(this, "video_ram");
     m_sprite_ram = new required_shared_ptr_uint8_t(this, "sprite_ram");
     m_snd_rom    = new optional_region_ptr_uint8_t(this, "soundcpu");
     m_vidhw      = DKONG_BOARD;
     m_sig30Hz    = 0;
     m_blue_level = 0;
     m_cv1        = 0;
     m_cv2        = 0;
     m_vg1        = 0;
     m_vg2        = 0;
     m_vg3        = 0;
     m_cv3        = 0;
     m_cv4        = 0;
     m_gfxdecode  = new required_device <gfxdecode_device>(this, "gfxdecode");
     m_screen     = new required_device <screen_device>(this, "screen");
     m_palette    = new required_device <palette_device>(this, "palette");
     m_z80dma     = new optional_device <intref>(this, "z80dma");
     m_dma8257    = new optional_device <i8257_device>(this, "dma8257");
 }
Exemple #6
0
        atari_motion_objects_device(machine_config mconfig, string tag, device_t owner, uint32_t clock)
            : base(mconfig, ATARI_MOTION_OBJECTS, tag, owner)
        {
            m_divideo = new device_video_interface(mconfig, this);  //, device_video_interface(mconfig, *this)


            m_tilewidth     = 0;
            m_tileheight    = 0;
            m_tilexshift    = 0;
            m_tileyshift    = 0;
            m_bitmapwidth   = 0;
            m_bitmapheight  = 0;
            m_bitmapxmask   = 0;
            m_bitmapymask   = 0;
            m_entrycount    = 0;
            m_entrybits     = 0;
            m_spriterammask = 0;
            m_spriteramsize = 0;
            m_slipshift     = 0;
            m_sliprammask   = 0;
            m_slipramsize   = 0;
            m_bank          = 0;
            m_xscroll       = 0;
            m_yscroll       = 0;
            m_slipram       = null;
            m_slipramshare  = new optional_shared_ptr <u16>(this, "slip");
            m_activelast    = null;
            m_last_xpos     = 0;
            m_next_xpos     = 0;
            m_xoffset       = 0;
            m_gfxdecode     = new required_device <gfxdecode_device>(this, finder_base.DUMMY_TAG);
        }
Exemple #7
0
        //static const atari_motion_objects_config s_mob_config;


        public atarisy2_state(machine_config mconfig, device_type type, string tag)
            : base(mconfig, type, tag)
        {
            m_maincpu           = new required_device <t11_device>(this, "maincpu");
            m_audiocpu          = new required_device <m6502_device>(this, "audiocpu");
            m_gfxdecode         = new required_device <gfxdecode_device>(this, "gfxdecode");
            m_screen            = new required_device <screen_device>(this, "screen");
            m_mob               = new required_device <atari_motion_objects_device>(this, "mob");
            m_slapstic_region   = new required_region_ptr <uint16_t>(this, "maincpu");
            m_playfield_tilemap = new required_device <tilemap_device>(this, "playfield");
            m_alpha_tilemap     = new required_device <tilemap_device>(this, "alpha");
            m_xscroll           = new required_shared_ptr <uint16_t>(this, "xscroll");
            m_yscroll           = new required_shared_ptr <uint16_t>(this, "yscroll");
            m_soundlatch        = new required_device <generic_latch_8_device>(this, "soundlatch");
            m_mainlatch         = new required_device <generic_latch_8_device>(this, "mainlatch");
            m_ym2151            = new required_device <ym2151_device>(this, "ymsnd");
            m_pokey             = new required_device_array <pokey_device, u32_const_2>(this, "pokey{0}", 1, (base_, tag_) => { return(new device_finder <pokey_device, bool_const_true>(base_, tag_)); });
            m_tms5220           = new optional_device <tms5220c_device>(this, "tms");
            m_rombank           = new required_memory_bank_array <u32_const_2>(this, "rombank{0}", 1);
            m_slapstic          = new required_device <atari_slapstic_device>(this, "slapstic");
            m_vmmu              = new memory_view(this, "vmmu");
            m_playfieldt        = new required_shared_ptr <uint16_t>(this, "playfieldt");
            m_playfieldb        = new required_shared_ptr <uint16_t>(this, "playfieldb");
            m_leds              = new output_finder <u32_const_2>(this, "led{0}", 0);
        }
Exemple #8
0
 namco_50xx_device(machine_config mconfig, string tag, device_t owner, u32 clock)
     : base(mconfig, NAMCO_50XX, tag, owner, clock)
 {
     m_cpu   = new required_device <mb88_cpu_device>(this, "mcu");
     m_rw    = 0;
     m_cmd   = 0;
     m_portO = 0;
 }
Exemple #9
0
 namco_54xx_device(machine_config mconfig, string tag, device_t owner, u32 clock)
     : base(mconfig, NAMCO_54XX, tag, owner, clock)
 {
     m_cpu         = new required_device <mb88_cpu_device>(this, "mcu");
     m_discrete    = new required_device <discrete_device>(this, finder_base.DUMMY_TAG);
     m_basenode    = 0;
     m_latched_cmd = 0;
 }
Exemple #10
0
 invaders_audio_device(machine_config mconfig, string tag, device_t owner, u32 clock = 0)
     : base(mconfig, INVADERS_AUDIO, tag, owner, clock)
 {
     m_sn              = new required_device <sn76477_device>(this, "snsnd");
     m_discrete        = new required_device <discrete_sound_device>(this, "discrete");
     m_flip_screen_out = new devcb_write_line(this);
     m_p2              = 0;
 }
Exemple #11
0
 public digdug_state(machine_config mconfig, device_type type, string tag)
     : base(mconfig, type, tag)
 {
     m_earom         = new required_device <er2055_device>(this, "earom");
     m_digdug_objram = new required_shared_ptr_uint8_t(this, "digdug_objram");
     m_digdug_posram = new required_shared_ptr_uint8_t(this, "digdug_posram");
     m_digdug_flpram = new required_shared_ptr_uint8_t(this, "digdug_flpram");
 }
Exemple #12
0
 gunfight_audio_device(machine_config mconfig, string tag, device_t owner, u32 clock = 0) :
     base(mconfig, GUNFIGHT_AUDIO, tag, owner, clock)
 {
     m_left_shot  = new required_device <netlist_mame_logic_input_device>(this, "sound_nl:left_shot");
     m_right_shot = new required_device <netlist_mame_logic_input_device>(this, "sound_nl:right_shot");
     m_left_hit   = new required_device <netlist_mame_logic_input_device>(this, "sound_nl:left_hit");
     m_right_hit  = new required_device <netlist_mame_logic_input_device>(this, "sound_nl:right_hit");
 }
Exemple #13
0
        galaxian_sound_device(machine_config mconfig, string tag, device_t owner, u32 clock)
            : base(mconfig, GALAXIAN, tag, owner, clock)
        {
            m_class_interfaces.Add(new device_sound_interface_galaxian_sound(mconfig, this));  // device_sound_interface(mconfig, *this);


            m_lfo_val  = 0;
            m_discrete = new required_device <discrete_device>(this, "^" + galaxian_state.GAL_AUDIO);
        }
Exemple #14
0
 namco_53xx_device(machine_config mconfig, string tag, device_t owner, u32 clock)
     : base(mconfig, NAMCO_53XX, tag, owner, clock)
 {
     m_cpu   = new required_device <mb88_cpu_device>(this, "mcu");
     m_portO = 0;
     m_k     = new devcb_read8(this);
     m_in    = new devcb_read8.array <u64_const_4>(this, () => { return(new devcb_read8(this)); });
     m_p     = new devcb_write8(this);
 }
Exemple #15
0
 public mw8080bw_state(machine_config mconfig, device_type type, string tag) :
     base(mconfig, type, tag)
 {
     m_maincpu  = new required_device <i8080_cpu_device>(this, "maincpu");
     m_mb14241  = new optional_device <mb14241_device>(this, "mb14241");
     m_watchdog = new optional_device <watchdog_timer_device>(this, "watchdog");
     m_main_ram = new required_shared_ptr <uint8_t>(this, "main_ram");
     m_discrete = new optional_device <discrete_sound_device>(this, "discrete");
     m_screen   = new required_device <screen_device>(this, "screen");
 }
Exemple #16
0
 namco_53xx_device(machine_config mconfig, string tag, device_t owner, u32 clock)
     : base(mconfig, NAMCO_53XX, tag, owner, clock)
 {
     m_cpu   = new required_device <mb88_cpu_device>(this, "mcu");
     m_portO = 0;
     m_k     = new devcb_read8(this);
     for (int i = 0; i < 4; i++)
     {
         m_in[i] = new devcb_read8(this);
     }
     m_p = new devcb_write8(this);
 }
Exemple #17
0
 public _1942_state(machine_config mconfig, device_type type, string tag)
     : base(mconfig, type, tag)
 {
     m_spriteram   = new required_shared_ptr_uint8_t(this, "spriteram");
     m_fg_videoram = new required_shared_ptr_uint8_t(this, "fg_videoram");
     m_bg_videoram = new required_shared_ptr_uint8_t(this, "bg_videoram");
     m_audiocpu    = new required_device <cpu_device>(this, "audiocpu");
     m_maincpu     = new required_device <cpu_device>(this, "maincpu");
     m_gfxdecode   = new required_device <gfxdecode_device>(this, "gfxdecode");
     m_palette     = new required_device <palette_device>(this, "palette");
     m_soundlatch  = new required_device <generic_latch_8_device>(this, "soundlatch");
 }
Exemple #18
0
        optional_device_array <pia6821_device, u32_const_4> m_pia;  //optional_device_array<pia6821_device, 4> m_pia;


        protected williams_state(machine_config mconfig, device_type type, string tag) :
            base(mconfig, type, tag)
        {
            m_nvram      = new required_shared_ptr <uint8_t>(this, "nvram");
            m_videoram   = new required_shared_ptr <uint8_t>(this, "videoram");
            m_mainbank   = new optional_memory_bank(this, "mainbank");
            m_maincpu    = new required_device <mc6809e_device>(this, "maincpu");
            m_soundcpu   = new required_device <m6808_cpu_device>(this, "soundcpu");
            m_watchdog   = new required_device <watchdog_timer_device>(this, "watchdog");
            m_screen     = new required_device <screen_device>(this, "screen");
            m_palette    = new optional_device <palette_device>(this, "palette");
            m_paletteram = new optional_shared_ptr <uint8_t>(this, "paletteram");
            m_pia        = new optional_device_array <pia6821_device, u32_const_4>(this, "pia_{0}", 0U, (base_, tag_) => { return(new device_finder <pia6821_device, bool_const_false>(base_, tag_)); });
        }
Exemple #19
0
 namco_06xx_device(machine_config mconfig, string tag, device_t owner, u32 clock)
     : base(mconfig, NAMCO_06XX, tag, owner, clock)
 {
     m_control          = 0;
     m_next_timer_state = false;
     m_nmi_stretch      = false;
     m_rw_stretch       = false;
     m_rw_change        = false;
     m_nmicpu           = new required_device <cpu_device>(this, finder_base.DUMMY_TAG);
     m_chipsel          = new devcb_write_line.array <u64_const_4>(this, () => { return(new devcb_write_line(this)); });
     m_rw    = new devcb_write_line.array <u64_const_4>(this, () => { return(new devcb_write_line(this)); });
     m_read  = new devcb_read8.array <u64_const_4>(this, () => { return(new devcb_read8(this)); });
     m_write = new devcb_write8.array <u64_const_4>(this, () => { return(new devcb_write8(this)); });
 }
Exemple #20
0
 public m52_state(machine_config mconfig, device_type type, string tag)
     : base(mconfig, type, tag)
 {
     m_maincpu      = new required_device <cpu_device>(this, "maincpu");
     m_screen       = new required_device <screen_device>(this, "screen");
     m_videoram     = new required_shared_ptr <uint8_t>(this, "videoram");
     m_colorram     = new required_shared_ptr <uint8_t>(this, "colorram");
     m_spriteram    = new optional_shared_ptr <uint8_t>(this, "spriteram");
     m_sp_gfxdecode = new required_device <gfxdecode_device>(this, "sp_gfxdecode");
     m_tx_gfxdecode = new required_device <gfxdecode_device>(this, "tx_gfxdecode");
     m_bg_gfxdecode = new required_device <gfxdecode_device>(this, "bg_gfxdecode");
     m_sp_palette   = new required_device <palette_device>(this, "sp_palette");
     m_tx_palette   = new required_device <palette_device>(this, "tx_palette");
     m_bg_palette   = new required_device <palette_device>(this, "bg_palette");
 }
Exemple #21
0
 public asteroid_state(machine_config mconfig, device_type type, string tag) :
     base(mconfig, type, tag)
 {
     m_maincpu  = new required_device <m6502_device>(this, "maincpu");
     m_dvg      = new required_device <dvg_device>(this, "dvg");
     m_earom    = new optional_device <er2055_device>(this, "earom");
     m_discrete = new required_device <discrete_sound_device>(this, "discrete");
     m_dsw1     = new required_ioport(this, "DSW1");
     m_dsw_sel  = new required_device <ttl153_device>(this, "dsw_sel");
     m_cocktail = new optional_ioport(this, "COCKTAIL");
     m_ram1     = new optional_memory_bank(this, "ram1");
     m_ram2     = new optional_memory_bank(this, "ram2");
     m_sram1    = new memory_share_creator <u8>(this, "ram1", 0x100, ENDIANNESS_LITTLE);
     m_sram2    = new memory_share_creator <u8>(this, "ram2", 0x100, ENDIANNESS_LITTLE);
 }
Exemple #22
0
 public centiped_state(machine_config mconfig, device_type type, string tag)
     : base(mconfig, type, tag)
 {
     m_maincpu                = new required_device <m6502_device>(this, "maincpu");
     m_rambase                = new optional_shared_ptr <uint8_t>(this, "rambase");
     m_videoram               = new required_shared_ptr <uint8_t>(this, "videoram");
     m_spriteram              = new required_shared_ptr <uint8_t>(this, "spriteram");
     m_paletteram             = new optional_shared_ptr <uint8_t>(this, "paletteram");
     m_bullsdrt_tiles_bankram = new optional_shared_ptr <uint8_t>(this, "bullsdrt_bank");
     m_outlatch               = new required_device <ls259_device>(this, "outlatch");
     m_earom     = new optional_device <er2055_device>(this, "earom");
     m_gfxdecode = new required_device <gfxdecode_device>(this, "gfxdecode");
     m_screen    = new required_device <screen_device>(this, "screen");
     m_palette   = new required_device <palette_device>(this, "palette");
     m_aysnd     = new optional_device <ay8910_device>(this, "aysnd");
 }
Exemple #23
0
 protected irem_audio_device(machine_config mconfig, device_type type, string tag, device_t owner, uint32_t clock)
     : base(mconfig, type, tag, owner, clock)
 {
     m_cpu        = new required_device <cpu_device>(this, "iremsound");
     m_adpcm1     = new required_device <msm5205_device>(this, "msm1");
     m_adpcm2     = new optional_device <msm5205_device>(this, "msm2");
     m_ay_45L     = new required_device <ay8910_device>(this, "ay_45l");
     m_ay_45M     = new required_device <ay8910_device>(this, "ay_45m");
     m_port1      = 0;
     m_port2      = 0;
     m_soundlatch = 0;
     m_audio_BD   = new optional_device <netlist_mame_logic_input_device>(this, "snd_nl:ibd");
     m_audio_SD   = new optional_device <netlist_mame_logic_input_device>(this, "snd_nl:isd");
     m_audio_OH   = new optional_device <netlist_mame_logic_input_device>(this, "snd_nl:ioh");
     m_audio_CH   = new optional_device <netlist_mame_logic_input_device>(this, "snd_nl:ich");
 }
Exemple #24
0
 public pacman_state(machine_config mconfig, device_type type, string tag)
     : base(mconfig, type, tag)
 {
     m_maincpu            = new required_device <cpu_device>(this, "maincpu");
     m_mainlatch          = new optional_device <ls259_device>(this, "mainlatch");
     m_namco_sound        = new optional_device <namco_device>(this, "namco");
     m_watchdog           = new required_device <watchdog_timer_device>(this, "watchdog");
     m_spriteram          = new optional_shared_ptr_uint8_t(this, "spriteram");
     m_spriteram2         = new optional_shared_ptr_uint8_t(this, "spriteram2");
     m_s2650_spriteram    = new optional_shared_ptr_uint8_t(this, "s2650_spriteram");
     m_videoram           = new required_shared_ptr_uint8_t(this, "videoram");
     m_colorram           = new optional_shared_ptr_uint8_t(this, "colorram");
     m_s2650games_tileram = new optional_shared_ptr_uint8_t(this, "s2650_tileram");
     m_rocktrv2_prot_data = new optional_shared_ptr_uint8_t(this, "rocktrv2_prot");
     m_gfxdecode          = new required_device <gfxdecode_device>(this, "gfxdecode");
     m_palette            = new required_device <palette_device>(this, "palette");
 }
Exemple #25
0
 public galaga_state(machine_config mconfig, device_type type, string tag)
     : base(mconfig, type, tag)
 {
     m_videoram    = new optional_shared_ptr_uint8_t(this, "videoram");
     m_galaga_ram1 = new optional_shared_ptr_uint8_t(this, "galaga_ram1");
     m_galaga_ram2 = new optional_shared_ptr_uint8_t(this, "galaga_ram2");
     m_galaga_ram3 = new optional_shared_ptr_uint8_t(this, "galaga_ram3");
     m_videolatch  = new optional_device <ls259_device>(this, "videolatch");
     m_maincpu     = new required_device <cpu_device>(this, "maincpu");
     m_subcpu      = new required_device <cpu_device>(this, "sub");
     m_subcpu2     = new required_device <cpu_device>(this, "sub2");
     m_namco_sound = new required_device <namco_device>(this, "namco");
     m_gfxdecode   = new required_device <gfxdecode_device>(this, "gfxdecode");
     m_screen      = new required_device <screen_device>(this, "screen");
     m_palette     = new required_device <palette_device>(this, "palette");
     m_leds        = new output_manager.output_finder(2, this, "led{0}", 0U);
 }
Exemple #26
0
 public galaxian_state(machine_config mconfig, device_type type, string tag)
     : base(mconfig, type, tag)
 {
     m_maincpu           = new required_device <cpu_device>(this, "maincpu");
     m_audiocpu          = new optional_device <cpu_device>(this, "audiocpu");
     m_ay8910            = new optional_device_array <ay8910_device, u32_const_3>(this, "8910.{0}", 0, (base_, tag_) => { return(new device_finder <ay8910_device, bool_const_false>(base_, tag_)); });  // "8910.%u"
     m_ay8910_cclimber   = new optional_device <ay8910_device>(this, "cclimber_audio:aysnd");
     m_ppi8255           = new optional_device_array <i8255_device, u32_const_3>(this, "ppi8255_{0}", 0, (base_, tag_) => { return(new device_finder <i8255_device, bool_const_false>(base_, tag_)); }); // ppi8255_%u
     m_gfxdecode         = new required_device <gfxdecode_device>(this, "gfxdecode");
     m_screen            = new required_device <screen_device>(this, "screen");
     m_palette           = new required_device <palette_device>(this, "palette");
     m_soundlatch        = new optional_device <generic_latch_8_device>(this, "soundlatch");
     m_netlist           = new optional_device <netlist_mame_sound_device>(this, "konami");
     m_filter_ctl        = new optional_device_array <netlist_mame_logic_input_device, u32_const_12>(this, "konami:ctl{0}", 0, (base_, tag_) => { return(new device_finder <netlist_mame_logic_input_device, bool_const_false>(base_, tag_)); });
     m_ckong_coinage     = new optional_ioport(this, "COINAGE");
     m_spriteram         = new required_shared_ptr <uint8_t>(this, "spriteram");
     m_videoram          = new required_shared_ptr <uint8_t>(this, "videoram");
     m_decrypted_opcodes = new optional_shared_ptr <uint8_t>(this, "decrypted_opcodes");
     m_lamps             = new output_finder <u32_const_2>(this, "lamp{0}", 0U); //"lamp%u"
 }
Exemple #27
0
        namco_06xx_device(machine_config mconfig, string tag, device_t owner, u32 clock)
            : base(mconfig, NAMCO_06XX, tag, owner, clock)
        {
            m_control = 0;
            m_nmicpu  = new required_device <cpu_device>(this, finder_base.DUMMY_TAG);

            for (int i = 0; i < 4; i++)
            {
                m_read[i] = new devcb_read8(this);
            }

            for (int i = 0; i < 4; i++)
            {
                m_readreq[i] = new devcb_write_line(this);
            }

            for (int i = 0; i < 4; i++)
            {
                m_write[i] = new devcb_write8(this);
            }
        }
Exemple #28
0
        namco_51xx_device(machine_config mconfig, string tag, device_t owner, u32 clock)
            : base(mconfig, NAMCO_51XX, tag, owner, clock)
        {
            m_cpu    = new required_device <mb88_cpu_device>(this, "mcu");
            m_screen = new required_device <screen_device>(this, finder_base.DUMMY_TAG);

            for (int i = 0; i < 4; i++)
            {
                m_in[i] = new devcb_read8(this);
            }

            for (int i = 0; i < 2; i++)
            {
                m_out[i] = new devcb_write8(this);
            }

            m_lastcoins     = 0;
            m_lastbuttons   = 0;
            m_mode          = 0;
            m_coincred_mode = 0;
            m_remap_joy     = 0;
        }
Exemple #29
0
 public galaga_state(machine_config mconfig, device_type type, string tag)
     : base(mconfig, type, tag)
 {
     m_videoram       = new optional_shared_ptr <uint8_t>(this, "videoram");
     m_galaga_ram1    = new optional_shared_ptr <uint8_t>(this, "galaga_ram1");
     m_galaga_ram2    = new optional_shared_ptr <uint8_t>(this, "galaga_ram2");
     m_galaga_ram3    = new optional_shared_ptr <uint8_t>(this, "galaga_ram3");
     m_videolatch     = new optional_device <ls259_device>(this, "videolatch");
     m_maincpu        = new required_device <cpu_device>(this, "maincpu");
     m_subcpu         = new required_device <cpu_device>(this, "sub");
     m_subcpu2        = new required_device <cpu_device>(this, "sub2");
     m_namco_sound    = new required_device <namco_device>(this, "namco");
     m_gfxdecode      = new required_device <gfxdecode_device>(this, "gfxdecode");
     m_screen         = new required_device <screen_device>(this, "screen");
     m_palette        = new required_device <palette_device>(this, "palette");
     m_leds           = new output_finder <u32_const_2>(this, "led{0}", 0U);
     m_starfield      = new optional_device <starfield_05xx_device>(this, "starfield");
     m_galaga_gfxbank = 0;
     m_main_irq_mask  = 0;
     m_sub_irq_mask   = 0;
     m_sub2_nmi_mask  = 0;
 }
Exemple #30
0
 public galaxian_state(machine_config mconfig, device_type type, string tag)
     : base(mconfig, type, tag)
 {
     m_maincpu           = new required_device <cpu_device>(this, "maincpu");
     m_audiocpu          = new optional_device <cpu_device>(this, "audiocpu");
     m_audio2            = new optional_device <cpu_device>(this, "audio2");
     m_dac               = new optional_device <dac_byte_interface>(this, "dac");
     m_ay8910            = new optional_device_array_ay8910_device(3, this, "8910.{0}", 0); // "8910.%u"
     m_ay8910_cclimber   = new optional_device <ay8910_device>(this, "cclimber_audio:aysnd");
     m_digitalker        = new optional_device <digitalker_device>(this, "digitalker");
     m_ppi8255           = new optional_device_array_i8255_device(3, this, "ppi8255_{0}", 0); // ppi8255_%u
     m_gfxdecode         = new required_device <gfxdecode_device>(this, "gfxdecode");
     m_screen            = new required_device <screen_device>(this, "screen");
     m_palette           = new required_device <palette_device>(this, "palette");
     m_soundlatch        = new optional_device <generic_latch_8_device>(this, "soundlatch");
     m_discrete          = new optional_device <discrete_device>(this, "konami");
     m_fake_select       = new optional_ioport(this, "FAKE_SELECT");
     m_tenspot_game_dsw  = new optional_ioport_array(10, this, "IN2_GAME{0}", 0); //{"IN2_GAME0", "IN2_GAME1", "IN2_GAME2", "IN2_GAME3", "IN2_GAME4", "IN2_GAME5", "IN2_GAME6", "IN2_GAME7", "IN2_GAME8", "IN2_GAME9"});
     m_spriteram         = new required_shared_ptr_uint8_t(this, "spriteram");
     m_videoram          = new required_shared_ptr_uint8_t(this, "videoram");
     m_decrypted_opcodes = new optional_shared_ptr_uint8_t(this, "decrypted_opcodes");
     m_lamps             = new output_manager.output_finder(2, this, "lamp{0}", 0U); //"lamp%u"
 }