Beispiel #1
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");
        }
Beispiel #2
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);
        }
Beispiel #3
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");
 }
Beispiel #4
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");
 }
Beispiel #5
0
        emu_timer m_timer;   // timer for triggering reset


        // construction/destruction
        //-------------------------------------------------
        //  watchdog_timer_device - constructor
        //-------------------------------------------------
        watchdog_timer_device(machine_config mconfig, string tag, device_t owner, uint32_t clock = 0)
            : base(mconfig, WATCHDOG_TIMER, tag, owner, clock)
        {
            m_vblank_count = 0;
            m_time         = attotime.zero;
            m_screen       = new optional_device <screen_device>(this, finder_base.DUMMY_TAG);
        }
Beispiel #6
0
        bool m_decoded;                  // have we processed our decode info yet?


        // construction/destruction
        //-------------------------------------------------
        //  device_gfx_interface - constructor
        //-------------------------------------------------
        public device_gfx_interface(machine_config mconfig, device_t device, gfx_decode_entry [] gfxinfo = null, string palette_tag = finder_base.DUMMY_TAG)
            : base(device, "gfx")
        {
            m_paletteDevice       = new optional_device <palette_device>(this.device(), palette_tag); //m_palette(*this, palette_tag),
            m_gfxdecodeinfo       = gfxinfo;
            m_palette_is_disabled = false;
            m_decoded             = false;
        }
Beispiel #7
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");
 }
Beispiel #8
0
 public xevious_state(machine_config mconfig, device_type type, string tag)
     : base(mconfig, type, tag)
 {
     m_xevious_sr1         = new required_shared_ptr_uint8_t(this, "xevious_sr1");
     m_xevious_sr2         = new required_shared_ptr_uint8_t(this, "xevious_sr2");
     m_xevious_sr3         = new required_shared_ptr_uint8_t(this, "xevious_sr3");
     m_xevious_fg_colorram = new required_shared_ptr_uint8_t(this, "fg_colorram");
     m_xevious_bg_colorram = new required_shared_ptr_uint8_t(this, "bg_colorram");
     m_xevious_fg_videoram = new required_shared_ptr_uint8_t(this, "fg_videoram");
     m_xevious_bg_videoram = new required_shared_ptr_uint8_t(this, "bg_videoram");
     m_samples             = new optional_device <samples_device>(this, "samples");
     m_subcpu3             = new optional_device <cpu_device>(this, "sub3");
 }
Beispiel #9
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_)); });
        }
Beispiel #10
0
        bool m_first_time;       // indicates that the system is starting (scanline timers only)


        // construction/destruction
        //-------------------------------------------------
        //  timer_device - constructor
        //-------------------------------------------------
        timer_device(machine_config mconfig, string tag, device_t owner, u32 clock)
            : base(mconfig, TIMER, tag, owner, clock)
        {
            m_type        = timer_type.TIMER_TYPE_GENERIC;
            m_callback    = null;
            m_ptr         = null;
            m_start_delay = attotime.zero;
            m_period      = attotime.zero;
            m_param       = 0;
            m_screen      = new optional_device <screen_device>(this, finder_base.DUMMY_TAG);
            m_first_vpos  = 0;
            m_increment   = 0;
            m_timer       = null;
            m_first_time  = true;
        }
Beispiel #11
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);
 }
Beispiel #12
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");
 }
Beispiel #13
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");
 }
Beispiel #14
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);
 }
Beispiel #15
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");
 }
Beispiel #16
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"
 }
Beispiel #17
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;
 }
Beispiel #18
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"
 }