Exemplo n.º 1
0
        uint8_t [] m_rom_data;  //std::unique_ptr<uint8_t[]> m_rom_data;


        // construction/destruction
        er2055_device(machine_config mconfig, string tag, device_t owner, uint32_t clock = 0)
            : base(mconfig, ER2055, tag, owner, clock)
        {
            m_class_interfaces.Add(new device_nvram_interface_er2055(mconfig, this));  //device_nvram_interface(mconfig, *this),
            m_default_data  = new optional_region_ptr <byte>(this, DEVICE_SELF, SIZE_DATA);
            m_control_state = 0;
            m_address       = 0;
            m_data          = 0;
        }
Exemplo n.º 2
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_star_ff    = 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_vc17       = 0;
     m_pixelcnt   = 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");
     m_bank1      = new memory_bank_creator(this, "bank1");
     m_bank2      = new memory_bank_creator(this, "bank2");
 }
Exemplo n.º 3
0
        MemoryContainer <int16_t> [] m_waveform = new MemoryContainer <int16_t> [MAX_VOLUME];  //std::unique_ptr<int16_t[]> m_waveform[MAX_VOLUME];


        public namco_audio_device(machine_config mconfig, device_type type, string tag, device_t owner, u32 clock)
            : base(mconfig, type, tag, owner, clock)
        {
            m_class_interfaces.Add(new device_sound_interface_namco_audio(mconfig, this));  //device_sound_interface(mconfig, *this),
            m_disound = GetClassInterface <device_sound_interface_namco_audio>();

            m_wave_ptr     = new optional_region_ptr <uint8_t>(this, DEVICE_SELF);
            m_last_channel = null;
            m_wavedata     = null;
            m_wave_size    = 0;
            m_sound_enable = false;
            m_stream       = null;
            m_namco_clock  = 0;
            m_sample_rate  = 0;
            m_f_fracbits   = 0;
            m_voices       = 0;
            m_stereo       = false;

            for (int i = 0; i < m_channel_list.Length; i++)
            {
                m_channel_list[i] = new sound_channel();
            }
        }