//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); }
//handler_entry_read_dispatch(address_space *space, memory_view &view); handler_entry_read_dispatch(handler_entry_read_dispatch <int_HighBits, int_Width, int_AddrShift> src) : base(src.m_space, handler_entry.F_DISPATCH) { m_view = null; m_ranges_array.resize(1); m_dispatch_array.resize(1); m_a_ranges = m_ranges_array[0].data(); m_a_dispatch = m_dispatch_array[0].data(); m_u_ranges = m_ranges_array[0].data(); m_u_dispatch = m_dispatch_array[0].data(); for (unsigned i = 0; i != COUNT; i++) { m_u_dispatch[i] = src.m_u_dispatch[i].dup(); m_u_ranges[i] = src.m_u_ranges[i]; } }