mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Updated netlist licenses to CC0. Various minor adjustments based on PR comments.
This commit is contained in:
parent
0aa5aea84f
commit
4954f7bcb4
@ -93,10 +93,11 @@ void sp0250_device::device_start()
|
||||
save_item(NAME(m_rcount));
|
||||
for (int index = 0; index < 6; index++)
|
||||
{
|
||||
save_item(NAME(m_filter[index].F), index);
|
||||
save_item(NAME(m_filter[index].B), index);
|
||||
save_item(NAME(m_filter[index].z1), index);
|
||||
save_item(NAME(m_filter[index].z2), index);
|
||||
auto &filter = m_filter[index];
|
||||
save_item(STRUCT_MEMBER(filter, F), index);
|
||||
save_item(STRUCT_MEMBER(filter, B), index);
|
||||
save_item(STRUCT_MEMBER(filter, z1), index);
|
||||
save_item(STRUCT_MEMBER(filter, z2), index);
|
||||
}
|
||||
|
||||
// FIFO state
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_ARMORA_H
|
||||
#define MAME_AUDIO_NL_ARMORA_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_ASTROB_H
|
||||
#define MAME_AUDIO_NL_ASTROB_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_BARRIER_H
|
||||
#define MAME_AUDIO_NL_BARRIER_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_BOXINGB_H
|
||||
#define MAME_AUDIO_NL_BOXINGB_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//NL_CONTAINS elim zektor
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_ELIM_H
|
||||
#define MAME_AUDIO_NL_ELIM_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_RIPOFF_H
|
||||
#define MAME_AUDIO_NL_RIPOFF_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_SEGASPEECH_H
|
||||
#define MAME_AUDIO_NL_SEGASPEECH_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_SEGAUSB_H
|
||||
#define MAME_AUDIO_NL_SEGAUSB_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_SOLARQ_H
|
||||
#define MAME_AUDIO_NL_SOLARQ_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_SPACEWAR_H
|
||||
#define MAME_AUDIO_NL_SPACEWAR_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_SPACFURY_H
|
||||
#define MAME_AUDIO_NL_SPACFURY_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_SPEEDFRK_H
|
||||
#define MAME_AUDIO_NL_SPEEDFRK_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//NL_CONTAINS starcas wotw
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_STARCAS_H
|
||||
#define MAME_AUDIO_NL_STARCAS_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_STARHAWK_H
|
||||
#define MAME_AUDIO_NL_STARHAWK_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_SUNDANCE_H
|
||||
#define MAME_AUDIO_NL_SUNDANCE_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_TAILG_H
|
||||
#define MAME_AUDIO_NL_TAILG_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
|
||||
//
|
||||
|
@ -1,4 +1,4 @@
|
||||
// license:BSD-3-Clause
|
||||
// license:CC0
|
||||
// copyright-holders:Aaron Giles
|
||||
#ifndef MAME_AUDIO_NL_WARRIOR_H
|
||||
#define MAME_AUDIO_NL_WARRIOR_H
|
||||
|
@ -23,23 +23,21 @@
|
||||
*
|
||||
*************************************/
|
||||
|
||||
segag80_audio_device::segag80_audio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 lomask, u8 himask, bool haspsg, void (*netlist)(netlist::nlparse_t &), double output_scale)
|
||||
: device_t(mconfig, type, tag, owner, clock)
|
||||
, device_mixer_interface(mconfig, *this)
|
||||
, m_lo_input(*this, "sound_nl:lo_%u", 0)
|
||||
, m_hi_input(*this, "sound_nl:hi_%u", 0)
|
||||
, m_psg(*this, "psg")
|
||||
, m_lo_vals(0xff)
|
||||
, m_hi_vals(0xff)
|
||||
, m_lo_mask(lomask)
|
||||
, m_hi_mask(himask)
|
||||
, m_has_psg(haspsg)
|
||||
, m_netlist(netlist)
|
||||
, m_output_scale(output_scale)
|
||||
segag80_audio_device_base::segag80_audio_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 lomask, u8 himask, bool haspsg, netlist_ptr netlist, double output_scale) :
|
||||
device_t(mconfig, type, tag, owner, clock),
|
||||
device_mixer_interface(mconfig, *this),
|
||||
m_lo_input(*this, "sound_nl:lo_%u", 0),
|
||||
m_hi_input(*this, "sound_nl:hi_%u", 0),
|
||||
m_psg(*this, "psg"),
|
||||
m_lo_mask(lomask),
|
||||
m_hi_mask(himask),
|
||||
m_has_psg(haspsg),
|
||||
m_netlist(netlist),
|
||||
m_output_scale(output_scale)
|
||||
{
|
||||
}
|
||||
|
||||
void segag80_audio_device::device_add_mconfig(machine_config &config)
|
||||
void segag80_audio_device_base::device_add_mconfig(machine_config &config)
|
||||
{
|
||||
NETLIST_SOUND(config, "sound_nl", 48000)
|
||||
.set_source(m_netlist)
|
||||
@ -96,29 +94,23 @@ void segag80_audio_device::device_add_mconfig(machine_config &config)
|
||||
NETLIST_STREAM_OUTPUT(config, "sound_nl:cout0", 0, "OUTPUT").set_mult_offset(m_output_scale, 0.0);
|
||||
}
|
||||
|
||||
void segag80_audio_device::device_start()
|
||||
void segag80_audio_device_base::device_start()
|
||||
{
|
||||
}
|
||||
|
||||
void segag80_audio_device::device_stop()
|
||||
{
|
||||
}
|
||||
|
||||
void segag80_audio_device::write(offs_t addr, uint8_t data)
|
||||
void segag80_audio_device_base::write(offs_t addr, uint8_t data)
|
||||
{
|
||||
addr &= 1;
|
||||
|
||||
auto &inputs = (addr == 0) ? m_lo_input : m_hi_input;
|
||||
auto &oldvals = (addr == 0) ? m_lo_vals : m_hi_vals;
|
||||
auto &mask = (addr == 0) ? m_lo_mask : m_hi_mask;
|
||||
|
||||
for (int bit = 0; bit < 8; bit++)
|
||||
if (BIT(mask, bit))
|
||||
inputs[bit]->write_line(BIT(data, bit));
|
||||
oldvals = data;
|
||||
}
|
||||
|
||||
void segag80_audio_device::write_ay(offs_t addr, uint8_t data)
|
||||
void segag80_audio_device_base::write_ay(offs_t addr, uint8_t data)
|
||||
{
|
||||
assert(m_has_psg);
|
||||
m_psg->address_data_w(addr, data);
|
||||
@ -134,8 +126,8 @@ void segag80_audio_device::write_ay(offs_t addr, uint8_t data)
|
||||
|
||||
DEFINE_DEVICE_TYPE(ELIMINATOR_AUDIO, elim_audio_device, "elim_audio", "Eliminator Sound Board")
|
||||
|
||||
elim_audio_device::elim_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
|
||||
: segag80_audio_device(mconfig, ELIMINATOR_AUDIO, tag, owner, clock, 0xfe, 0xff, false, NETLIST_NAME(elim), 5000.0)
|
||||
elim_audio_device::elim_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) :
|
||||
segag80_audio_device_base(mconfig, ELIMINATOR_AUDIO, tag, owner, clock, 0xfe, 0xff, false, NETLIST_NAME(elim), 5000.0)
|
||||
{
|
||||
}
|
||||
|
||||
@ -149,8 +141,8 @@ elim_audio_device::elim_audio_device(const machine_config &mconfig, const char *
|
||||
|
||||
DEFINE_DEVICE_TYPE(ZEKTOR_AUDIO, zektor_audio_device, "zektor_audio", "Zektor Sound Board")
|
||||
|
||||
zektor_audio_device::zektor_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
|
||||
: segag80_audio_device(mconfig, ZEKTOR_AUDIO, tag, owner, clock, 0xfe, 0xff, true, NETLIST_NAME(zektor), 5000.0)
|
||||
zektor_audio_device::zektor_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) :
|
||||
segag80_audio_device_base(mconfig, ZEKTOR_AUDIO, tag, owner, clock, 0xfe, 0xff, true, NETLIST_NAME(zektor), 5000.0)
|
||||
{
|
||||
}
|
||||
|
||||
@ -164,8 +156,8 @@ zektor_audio_device::zektor_audio_device(const machine_config &mconfig, const ch
|
||||
|
||||
DEFINE_DEVICE_TYPE(SPACE_FURY_AUDIO, spacfury_audio_device, "spcfury_audio", "Space Fury Sound Board")
|
||||
|
||||
spacfury_audio_device::spacfury_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
|
||||
: segag80_audio_device(mconfig, SPACE_FURY_AUDIO, tag, owner, clock, 0xc7, 0x3f, false, NETLIST_NAME(spacfury), 60000.0)
|
||||
spacfury_audio_device::spacfury_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) :
|
||||
segag80_audio_device_base(mconfig, SPACE_FURY_AUDIO, tag, owner, clock, 0xc7, 0x3f, false, NETLIST_NAME(spacfury), 60000.0)
|
||||
{
|
||||
}
|
||||
|
||||
@ -179,7 +171,7 @@ spacfury_audio_device::spacfury_audio_device(const machine_config &mconfig, cons
|
||||
|
||||
DEFINE_DEVICE_TYPE(ASTRO_BLASTER_AUDIO, astrob_audio_device, "astrob_audio", "Astro Blaster Sound Board")
|
||||
|
||||
astrob_audio_device::astrob_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
|
||||
: segag80_audio_device(mconfig, ASTRO_BLASTER_AUDIO, tag, owner, clock, 0xff, 0xff, false, NETLIST_NAME(astrob), 25000.0)
|
||||
astrob_audio_device::astrob_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) :
|
||||
segag80_audio_device_base(mconfig, ASTRO_BLASTER_AUDIO, tag, owner, clock, 0xff, 0xff, false, NETLIST_NAME(astrob), 25000.0)
|
||||
{
|
||||
}
|
||||
|
@ -10,56 +10,55 @@
|
||||
#include "sound/ay8910.h"
|
||||
|
||||
|
||||
class segag80_audio_device : public device_t, public device_mixer_interface
|
||||
class segag80_audio_device_base : public device_t, public device_mixer_interface
|
||||
{
|
||||
public:
|
||||
segag80_audio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 lomask, u8 himask, bool haspsg, void (*netlist)(netlist::nlparse_t &), double output_scale);
|
||||
using netlist_ptr = void (*)(netlist::nlparse_t &);
|
||||
|
||||
public:
|
||||
void write(offs_t addr, uint8_t data);
|
||||
void write_ay(offs_t addr, uint8_t data);
|
||||
|
||||
protected:
|
||||
segag80_audio_device_base(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 lomask, u8 himask, bool haspsg, netlist_ptr netlist, double output_scale);
|
||||
|
||||
virtual void device_add_mconfig(machine_config &config) override;
|
||||
virtual void device_start() override;
|
||||
virtual void device_stop() override;
|
||||
|
||||
optional_device_array<netlist_mame_logic_input_device, 8> m_lo_input;
|
||||
optional_device_array<netlist_mame_logic_input_device, 8> m_hi_input;
|
||||
optional_device<ay8912_device> m_psg;
|
||||
|
||||
private:
|
||||
u8 m_lo_vals;
|
||||
u8 m_hi_vals;
|
||||
u8 m_lo_mask;
|
||||
u8 m_hi_mask;
|
||||
bool m_has_psg;
|
||||
void (*m_netlist)(netlist::nlparse_t &) = nullptr;
|
||||
double m_output_scale = 0;
|
||||
u8 const m_lo_mask;
|
||||
u8 const m_hi_mask;
|
||||
bool const m_has_psg;
|
||||
netlist_ptr const m_netlist;
|
||||
double const m_output_scale;
|
||||
};
|
||||
|
||||
|
||||
class elim_audio_device : public segag80_audio_device
|
||||
class elim_audio_device : public segag80_audio_device_base
|
||||
{
|
||||
public:
|
||||
elim_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
|
||||
};
|
||||
|
||||
|
||||
class zektor_audio_device : public segag80_audio_device
|
||||
class zektor_audio_device : public segag80_audio_device_base
|
||||
{
|
||||
public:
|
||||
zektor_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
|
||||
};
|
||||
|
||||
|
||||
class spacfury_audio_device : public segag80_audio_device
|
||||
class spacfury_audio_device : public segag80_audio_device_base
|
||||
{
|
||||
public:
|
||||
spacfury_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
|
||||
};
|
||||
|
||||
|
||||
class astrob_audio_device : public segag80_audio_device
|
||||
class astrob_audio_device : public segag80_audio_device_base
|
||||
{
|
||||
public:
|
||||
astrob_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
|
||||
|
@ -19,6 +19,8 @@
|
||||
#define VERBOSE 0
|
||||
#include "logmacro.h"
|
||||
|
||||
#define ENABLE_NETLIST_FILTERING (0)
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
CONSTANTS
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define ENABLE_NETLIST_FILTERING (0)
|
||||
|
||||
#include "cpu/mcs48/mcs48.h"
|
||||
#include "machine/netlist.h"
|
||||
#include "machine/timer.h"
|
||||
|
@ -12,9 +12,6 @@
|
||||
#include "segausb.h"
|
||||
#include "nl_segausb.h"
|
||||
|
||||
#include "includes/segag80r.h"
|
||||
#include "includes/segag80v.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
||||
@ -139,24 +136,24 @@ void usb_sound_device::device_start()
|
||||
for (int tchan = 0; tchan < 3; tchan++)
|
||||
{
|
||||
timer8253::channel &channel = group.chan[tchan];
|
||||
save_item(NAME(channel.holding), tgroup * 3 + tchan);
|
||||
save_item(NAME(channel.latchmode), tgroup * 3 + tchan);
|
||||
save_item(NAME(channel.latchtoggle), tgroup * 3 + tchan);
|
||||
save_item(NAME(channel.clockmode), tgroup * 3 + tchan);
|
||||
save_item(NAME(channel.bcdmode), tgroup * 3 + tchan);
|
||||
save_item(NAME(channel.output), tgroup * 3 + tchan);
|
||||
save_item(NAME(channel.lastgate), tgroup * 3 + tchan);
|
||||
save_item(NAME(channel.gate), tgroup * 3 + tchan);
|
||||
save_item(NAME(channel.subcount), tgroup * 3 + tchan);
|
||||
save_item(NAME(channel.count), tgroup * 3 + tchan);
|
||||
save_item(NAME(channel.remain), tgroup * 3 + tchan);
|
||||
save_item(STRUCT_MEMBER(channel, holding), tgroup * 3 + tchan);
|
||||
save_item(STRUCT_MEMBER(channel, latchmode), tgroup * 3 + tchan);
|
||||
save_item(STRUCT_MEMBER(channel, latchtoggle), tgroup * 3 + tchan);
|
||||
save_item(STRUCT_MEMBER(channel, clockmode), tgroup * 3 + tchan);
|
||||
save_item(STRUCT_MEMBER(channel, bcdmode), tgroup * 3 + tchan);
|
||||
save_item(STRUCT_MEMBER(channel, output), tgroup * 3 + tchan);
|
||||
save_item(STRUCT_MEMBER(channel, lastgate), tgroup * 3 + tchan);
|
||||
save_item(STRUCT_MEMBER(channel, gate), tgroup * 3 + tchan);
|
||||
save_item(STRUCT_MEMBER(channel, subcount), tgroup * 3 + tchan);
|
||||
save_item(STRUCT_MEMBER(channel, count), tgroup * 3 + tchan);
|
||||
save_item(STRUCT_MEMBER(channel, remain), tgroup * 3 + tchan);
|
||||
}
|
||||
save_item(NAME(group.env), tgroup);
|
||||
save_item(NAME(group.chan_filter[0].capval), tgroup);
|
||||
save_item(NAME(group.chan_filter[1].capval), tgroup);
|
||||
save_item(NAME(group.gate1.capval), tgroup);
|
||||
save_item(NAME(group.gate2.capval), tgroup);
|
||||
save_item(NAME(group.config), tgroup);
|
||||
save_item(STRUCT_MEMBER(group, env), tgroup);
|
||||
save_item(STRUCT_MEMBER(group.chan_filter[0], capval), tgroup);
|
||||
save_item(STRUCT_MEMBER(group.chan_filter[1], capval), tgroup);
|
||||
save_item(STRUCT_MEMBER(group.gate1, capval), tgroup);
|
||||
save_item(STRUCT_MEMBER(group.gate2, capval), tgroup);
|
||||
save_item(STRUCT_MEMBER(group, config), tgroup);
|
||||
}
|
||||
|
||||
save_item(NAME(m_timer_mode));
|
||||
@ -212,7 +209,8 @@ u8 usb_sound_device::status_r()
|
||||
{
|
||||
LOG("%s:usb_data_r = %02X\n", machine().describe_context(), (m_out_latch & 0x81) | (m_in_latch & 0x7e));
|
||||
|
||||
m_maincpu->adjust_icount(-200);
|
||||
if (!machine().side_effects_disabled())
|
||||
m_maincpu->adjust_icount(-200);
|
||||
|
||||
// only bits 0 and 7 are controlled by the I8035; the remaining
|
||||
// bits 1-6 reflect the current input latch values
|
||||
|
@ -1586,7 +1586,7 @@ void segag80r_state::init_astrob()
|
||||
iospace.install_write_handler(0x3b, 0x3b, write8smo_delegate(*m_speech, FUNC(sega_speech_device::control_w)));
|
||||
|
||||
/* install Astro Blaster sound board */
|
||||
iospace.install_write_handler(0x3e, 0x3f, write8sm_delegate(*m_g80_audio, FUNC(segag80_audio_device::write)));
|
||||
iospace.install_write_handler(0x3e, 0x3f, write8sm_delegate(*m_g80_audio, FUNC(astrob_audio_device::write)));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1321,7 +1321,7 @@ void segag80v_state::init_elim2()
|
||||
m_decrypt = segag80_security(70);
|
||||
|
||||
// configure sound
|
||||
iospace.install_write_handler(0x3e, 0x3f, write8sm_delegate(*m_g80_audio, FUNC(segag80_audio_device::write)));
|
||||
iospace.install_write_handler(0x3e, 0x3f, write8sm_delegate(*m_g80_audio, FUNC(elim_audio_device::write)));
|
||||
}
|
||||
|
||||
|
||||
@ -1335,7 +1335,7 @@ void segag80v_state::init_elim4()
|
||||
m_decrypt = segag80_security(76);
|
||||
|
||||
// configure sound
|
||||
iospace.install_write_handler(0x3e, 0x3f, write8sm_delegate(*m_g80_audio, FUNC(segag80_audio_device::write)));
|
||||
iospace.install_write_handler(0x3e, 0x3f, write8sm_delegate(*m_g80_audio, FUNC(elim_audio_device::write)));
|
||||
|
||||
// configure inputs
|
||||
iospace.install_write_handler(0xf8, 0xf8, write8smo_delegate(*this, FUNC(segag80v_state::spinner_select_w)));
|
||||
@ -1355,7 +1355,7 @@ void segag80v_state::init_spacfury()
|
||||
// configure sound
|
||||
iospace.install_write_handler(0x38, 0x38, write8smo_delegate(*m_speech, FUNC(sega_speech_device::data_w)));
|
||||
iospace.install_write_handler(0x3b, 0x3b, write8smo_delegate(*m_speech, FUNC(sega_speech_device::control_w)));
|
||||
iospace.install_write_handler(0x3e, 0x3f, write8sm_delegate(*m_g80_audio, FUNC(segag80_audio_device::write)));
|
||||
iospace.install_write_handler(0x3e, 0x3f, write8sm_delegate(*m_g80_audio, FUNC(spacfury_audio_device::write)));
|
||||
}
|
||||
|
||||
|
||||
@ -1371,8 +1371,8 @@ void segag80v_state::init_zektor()
|
||||
// configure sound
|
||||
iospace.install_write_handler(0x38, 0x38, write8smo_delegate(*m_speech, FUNC(sega_speech_device::data_w)));
|
||||
iospace.install_write_handler(0x3b, 0x3b, write8smo_delegate(*m_speech, FUNC(sega_speech_device::control_w)));
|
||||
iospace.install_write_handler(0x3c, 0x3d, write8sm_delegate(*m_g80_audio, FUNC(segag80_audio_device::write_ay)));
|
||||
iospace.install_write_handler(0x3e, 0x3f, write8sm_delegate(*m_g80_audio, FUNC(segag80_audio_device::write)));
|
||||
iospace.install_write_handler(0x3c, 0x3d, write8sm_delegate(*m_g80_audio, FUNC(zektor_audio_device::write_ay)));
|
||||
iospace.install_write_handler(0x3e, 0x3f, write8sm_delegate(*m_g80_audio, FUNC(zektor_audio_device::write)));
|
||||
|
||||
// configure inputs
|
||||
iospace.install_write_handler(0xf8, 0xf8, write8smo_delegate(*this, FUNC(segag80v_state::spinner_select_w)));
|
||||
|
@ -95,7 +95,7 @@ private:
|
||||
optional_device<monsterb_sound_device> m_soundbrd;
|
||||
optional_device<samples_device> m_samples;
|
||||
optional_device<sega_speech_device> m_speech;
|
||||
optional_device<segag80_audio_device> m_g80_audio;
|
||||
optional_device<segag80_audio_device_base> m_g80_audio;
|
||||
optional_device<usb_sound_device> m_usbsnd;
|
||||
optional_device<sega005_sound_device> m_005snd;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
|
@ -105,7 +105,7 @@ private:
|
||||
optional_device<samples_device> m_samples;
|
||||
optional_device<sega_speech_device> m_speech;
|
||||
optional_device<usb_sound_device> m_usb;
|
||||
optional_device<segag80_audio_device> m_g80_audio;
|
||||
optional_device<segag80_audio_device_base> m_g80_audio;
|
||||
optional_device<ay8912_device> m_aysnd;
|
||||
required_device<vector_device> m_vector;
|
||||
required_device<screen_device> m_screen;
|
||||
|
Loading…
Reference in New Issue
Block a user