mirror of
https://github.com/holub/mame
synced 2025-06-22 20:38:50 +03:00
misc MCFG and MACHINE_CONFIG macro removal (nw)
This commit is contained in:
parent
29fa02b16e
commit
088c214cf7
@ -23,7 +23,7 @@ DEFINE_DEVICE_TYPE(CPC_AMDRUM, cpc_amdrum_device, "cpc_amdrum", "Amdrum")
|
|||||||
void cpc_amdrum_device::device_add_mconfig(machine_config &config)
|
void cpc_amdrum_device::device_add_mconfig(machine_config &config)
|
||||||
{
|
{
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
ZN428E(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -32,23 +32,6 @@
|
|||||||
|
|
||||||
#define PC1512_MOUSE_PORT_TAG "mous"
|
#define PC1512_MOUSE_PORT_TAG "mous"
|
||||||
|
|
||||||
#define MCFG_PC1512_MOUSE_PORT_ADD(_tag, _slot_intf, _def_slot) \
|
|
||||||
MCFG_DEVICE_ADD(_tag, PC1512_MOUSE_PORT, 0) \
|
|
||||||
MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false)
|
|
||||||
|
|
||||||
#define MCFG_PC1512_MOUSE_PORT_X_CB(_write) \
|
|
||||||
downcast<pc1512_mouse_port_device &>(*device).set_x_wr_callback(DEVCB_##_write);
|
|
||||||
|
|
||||||
#define MCFG_PC1512_MOUSE_PORT_Y_CB(_write) \
|
|
||||||
downcast<pc1512_mouse_port_device &>(*device).set_y_wr_callback(DEVCB_##_write);
|
|
||||||
|
|
||||||
#define MCFG_PC1512_MOUSE_PORT_M1_CB(_write) \
|
|
||||||
downcast<pc1512_mouse_port_device &>(*device).set_m1_wr_callback(DEVCB_##_write);
|
|
||||||
|
|
||||||
#define MCFG_PC1512_MOUSE_PORT_M2_CB(_write) \
|
|
||||||
downcast<pc1512_mouse_port_device &>(*device).set_m2_wr_callback(DEVCB_##_write);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//**************************************************************************
|
//**************************************************************************
|
||||||
// TYPE DEFINITIONS
|
// TYPE DEFINITIONS
|
||||||
|
@ -43,15 +43,15 @@ protected:
|
|||||||
// MACHINE DRIVERS
|
// MACHINE DRIVERS
|
||||||
//**************************************************************************
|
//**************************************************************************
|
||||||
|
|
||||||
MACHINE_CONFIG_START( empty_state::___empty )
|
void empty_state::___empty(machine_config &config)
|
||||||
|
{
|
||||||
// video hardware
|
// video hardware
|
||||||
MCFG_SCREEN_ADD("screen", RASTER)
|
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
|
||||||
MCFG_SCREEN_UPDATE_DRIVER(empty_state, screen_update)
|
screen.set_screen_update(FUNC(empty_state::screen_update));
|
||||||
MCFG_SCREEN_SIZE(640,480)
|
screen.set_size(640, 480);
|
||||||
MCFG_SCREEN_VISIBLE_AREA(0,639, 0,479)
|
screen.set_visarea(0, 639, 0, 479);
|
||||||
MCFG_SCREEN_REFRESH_RATE(30)
|
screen.set_refresh_hz(30);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -162,9 +162,10 @@ WRITE8_MEMBER(astrof_state::spfghmk2_audio_w)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(astrof_state::spfghmk2_audio)
|
void astrof_state::spfghmk2_audio(machine_config &config)
|
||||||
|
{
|
||||||
/* nothing yet */
|
/* nothing yet */
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -698,8 +698,8 @@ WRITE8_MEMBER( atari_jsa_i_device::pokey_w )
|
|||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
// Fully populated JSA-I, not used by anyone
|
// Fully populated JSA-I, not used by anyone
|
||||||
MACHINE_CONFIG_START(atari_jsa_i_device::device_add_mconfig)
|
void atari_jsa_i_device::device_add_mconfig(machine_config &config)
|
||||||
|
{
|
||||||
// basic machine hardware
|
// basic machine hardware
|
||||||
M6502(config, m_jsacpu, JSA_MASTER_CLOCK/2);
|
M6502(config, m_jsacpu, JSA_MASTER_CLOCK/2);
|
||||||
m_jsacpu->set_addrmap(AS_PROGRAM, &atari_jsa_i_device::atarijsa1_map);
|
m_jsacpu->set_addrmap(AS_PROGRAM, &atari_jsa_i_device::atarijsa1_map);
|
||||||
@ -715,14 +715,14 @@ MACHINE_CONFIG_START(atari_jsa_i_device::device_add_mconfig)
|
|||||||
m_ym2151->add_route(0, *this, 0.60, AUTO_ALLOC_INPUT, 0);
|
m_ym2151->add_route(0, *this, 0.60, AUTO_ALLOC_INPUT, 0);
|
||||||
m_ym2151->add_route(1, *this, 0.60, AUTO_ALLOC_INPUT, 1);
|
m_ym2151->add_route(1, *this, 0.60, AUTO_ALLOC_INPUT, 1);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("pokey", POKEY, JSA_MASTER_CLOCK/2)
|
POKEY(config, m_pokey, JSA_MASTER_CLOCK/2);
|
||||||
MCFG_MIXER_ROUTE(ALL_OUTPUTS, *this, 0.40, 0)
|
m_pokey->add_route(ALL_OUTPUTS, *this, 0.40, AUTO_ALLOC_INPUT, 0);
|
||||||
MCFG_MIXER_ROUTE(ALL_OUTPUTS, *this, 0.40, 1)
|
m_pokey->add_route(ALL_OUTPUTS, *this, 0.40, AUTO_ALLOC_INPUT, 1);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("tms", TMS5220C, JSA_MASTER_CLOCK*2/11) // potentially JSA_MASTER_CLOCK/9 as well
|
TMS5220C(config, m_tms5220, JSA_MASTER_CLOCK*2/11); // potentially JSA_MASTER_CLOCK/9 as well
|
||||||
MCFG_MIXER_ROUTE(ALL_OUTPUTS, *this, 1.0, 0)
|
m_tms5220->add_route(ALL_OUTPUTS, *this, 1.0, AUTO_ALLOC_INPUT, 0);
|
||||||
MCFG_MIXER_ROUTE(ALL_OUTPUTS, *this, 1.0, 1)
|
m_tms5220->add_route(ALL_OUTPUTS, *this, 1.0, AUTO_ALLOC_INPUT, 1);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
@ -102,25 +102,27 @@ static DISCRETE_SOUND_START(avalnche_discrete)
|
|||||||
DISCRETE_SOUND_END
|
DISCRETE_SOUND_END
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(avalnche_state::avalnche_sound)
|
void avalnche_state::avalnche_sound(machine_config &config)
|
||||||
|
{
|
||||||
SPEAKER(config, "mono").front_center();
|
SPEAKER(config, "mono").front_center();
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("discrete", DISCRETE, avalnche_discrete)
|
DISCRETE(config, m_discrete, avalnche_discrete).add_route(ALL_OUTPUTS, "mono", 1.0);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
|
||||||
|
|
||||||
m_latch->q_out_cb<1>().set("discrete", FUNC(discrete_device::write_line<AVALNCHE_ATTRACT_EN>));
|
m_latch->q_out_cb<1>().set(m_discrete, FUNC(discrete_device::write_line<AVALNCHE_ATTRACT_EN>));
|
||||||
m_latch->q_out_cb<4>().set("discrete", FUNC(discrete_device::write_line<AVALNCHE_AUD0_EN>));
|
m_latch->q_out_cb<4>().set(m_discrete, FUNC(discrete_device::write_line<AVALNCHE_AUD0_EN>));
|
||||||
m_latch->q_out_cb<5>().set("discrete", FUNC(discrete_device::write_line<AVALNCHE_AUD1_EN>));
|
m_latch->q_out_cb<5>().set(m_discrete, FUNC(discrete_device::write_line<AVALNCHE_AUD1_EN>));
|
||||||
m_latch->q_out_cb<6>().set("discrete", FUNC(discrete_device::write_line<AVALNCHE_AUD2_EN>));
|
m_latch->q_out_cb<6>().set(m_discrete, FUNC(discrete_device::write_line<AVALNCHE_AUD2_EN>));
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(avalnche_state::acatch_sound) // just a stub here...
|
void avalnche_state::acatch_sound(machine_config &config)
|
||||||
|
{
|
||||||
|
// just a stub here...
|
||||||
m_latch->q_out_cb<1>().set_nop(); // It is attract_enable just like avalnche, but not hooked up yet.
|
m_latch->q_out_cb<1>().set_nop(); // It is attract_enable just like avalnche, but not hooked up yet.
|
||||||
m_latch->q_out_cb<4>().set(FUNC(avalnche_state::catch_aud0_w));
|
m_latch->q_out_cb<4>().set(FUNC(avalnche_state::catch_aud0_w));
|
||||||
m_latch->q_out_cb<5>().set(FUNC(avalnche_state::catch_aud1_w));
|
m_latch->q_out_cb<5>().set(FUNC(avalnche_state::catch_aud1_w));
|
||||||
m_latch->q_out_cb<6>().set(FUNC(avalnche_state::catch_aud2_w));
|
m_latch->q_out_cb<6>().set(FUNC(avalnche_state::catch_aud2_w));
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
|
@ -750,9 +750,10 @@ void venture_sound_device::venture_audio_map(address_map &map)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(venture_sound_device::device_add_mconfig)
|
void venture_sound_device::device_add_mconfig(machine_config &config)
|
||||||
MCFG_DEVICE_ADD("audiocpu", M6502, 3579545/4)
|
{
|
||||||
MCFG_DEVICE_PROGRAM_MAP(venture_audio_map)
|
m6502_device &audiocpu(M6502(config, "audiocpu", 3579545/4));
|
||||||
|
audiocpu.set_addrmap(AS_PROGRAM, &venture_sound_device::venture_audio_map);
|
||||||
|
|
||||||
RIOT6532(config, m_riot, SH6532_CLOCK);
|
RIOT6532(config, m_riot, SH6532_CLOCK);
|
||||||
m_riot->in_pa_callback().set(FUNC(venture_sound_device::r6532_porta_r));
|
m_riot->in_pa_callback().set(FUNC(venture_sound_device::r6532_porta_r));
|
||||||
@ -772,9 +773,8 @@ MACHINE_CONFIG_START(venture_sound_device::device_add_mconfig)
|
|||||||
|
|
||||||
SPEAKER(config, "mono").front_center();
|
SPEAKER(config, "mono").front_center();
|
||||||
|
|
||||||
MCFG_DEVICE_MODIFY(DEVICE_SELF)
|
this->add_route(ALL_OUTPUTS, "mono", 0.50);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -833,17 +833,17 @@ void mtrap_sound_device::cvsd_iomap(address_map &map)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(mtrap_sound_device::device_add_mconfig)
|
void mtrap_sound_device::device_add_mconfig(machine_config &config)
|
||||||
|
{
|
||||||
venture_sound_device::device_add_mconfig(config);
|
venture_sound_device::device_add_mconfig(config);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("cvsdcpu", Z80, CVSD_Z80_CLOCK)
|
Z80(config, m_cvsdcpu, CVSD_Z80_CLOCK);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(cvsd_map)
|
m_cvsdcpu->set_addrmap(AS_PROGRAM, &mtrap_sound_device::cvsd_map);
|
||||||
MCFG_DEVICE_IO_MAP(cvsd_iomap)
|
m_cvsdcpu->set_addrmap(AS_IO, &mtrap_sound_device::cvsd_iomap);
|
||||||
|
|
||||||
/* audio hardware */
|
/* audio hardware */
|
||||||
MCFG_DEVICE_ADD("cvsd", MC3417, CVSD_CLOCK)
|
MC3417(config, m_cvsd, CVSD_CLOCK).add_route(ALL_OUTPUTS, "mono", 0.80);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
|
|
||||||
/*************************************
|
/*************************************
|
||||||
@ -980,9 +980,10 @@ void victory_sound_device::victory_audio_map(address_map &map)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(victory_sound_device::device_add_mconfig)
|
void victory_sound_device::device_add_mconfig(machine_config &config)
|
||||||
MCFG_DEVICE_ADD("audiocpu", M6502, VICTORY_AUDIO_CPU_CLOCK)
|
{
|
||||||
MCFG_DEVICE_PROGRAM_MAP(victory_audio_map)
|
m6502_device &audiocpu(M6502(config, "audiocpu", VICTORY_AUDIO_CPU_CLOCK));
|
||||||
|
audiocpu.set_addrmap(AS_PROGRAM, &victory_sound_device::victory_audio_map);
|
||||||
|
|
||||||
RIOT6532(config, m_riot, SH6532_CLOCK);
|
RIOT6532(config, m_riot, SH6532_CLOCK);
|
||||||
m_riot->in_pa_callback().set(FUNC(victory_sound_device::r6532_porta_r));
|
m_riot->in_pa_callback().set(FUNC(victory_sound_device::r6532_porta_r));
|
||||||
@ -1000,9 +1001,7 @@ MACHINE_CONFIG_START(victory_sound_device::device_add_mconfig)
|
|||||||
|
|
||||||
SPEAKER(config, "mono").front_center();
|
SPEAKER(config, "mono").front_center();
|
||||||
|
|
||||||
MCFG_DEVICE_MODIFY(DEVICE_SELF)
|
this->add_route(ALL_OUTPUTS, "mono", 1.0);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("tms", TMS5220, 640000)
|
TMS5220(config, m_tms, 640000).add_route(ALL_OUTPUTS, "mono", 1.0);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
@ -98,22 +98,19 @@ exidy440_sound_device::exidy440_sound_device(const machine_config &mconfig, cons
|
|||||||
// device_add_mconfig - add device configuration
|
// device_add_mconfig - add device configuration
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
MACHINE_CONFIG_START(exidy440_sound_device::device_add_mconfig)
|
void exidy440_sound_device::device_add_mconfig(machine_config &config)
|
||||||
MCFG_DEVICE_ADD("audiocpu", MC6809, EXIDY440_AUDIO_CLOCK)
|
{
|
||||||
MCFG_DEVICE_PROGRAM_MAP(exidy440_audio_map)
|
MC6809(config, m_audiocpu, EXIDY440_AUDIO_CLOCK);
|
||||||
|
m_audiocpu->set_addrmap(AS_PROGRAM, &exidy440_sound_device::exidy440_audio_map);
|
||||||
|
|
||||||
// MCFG_DEVICE_ADD("cvsd1", MC3418, EXIDY440_MC3418_CLOCK)
|
// MC3418(config, "cvsd1", EXIDY440_MC3418_CLOCK).add_route(ALL_OUTPUTS, "lspeaker", 1.0);
|
||||||
// MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0)
|
|
||||||
|
|
||||||
// MCFG_DEVICE_ADD("cvsd2", MC3418, EXIDY440_MC3418_CLOCK)
|
// MC3418(config, "cvsd2", EXIDY440_MC3418_CLOCK).add_route(ALL_OUTPUTS, "rspeaker", 1.0);
|
||||||
// MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0)
|
|
||||||
|
|
||||||
// MCFG_DEVICE_ADD("cvsd3", MC3417, EXIDY440_MC3417_CLOCK)
|
// MC3417(config, "cvsd3", EXIDY440_MC3417_CLOCK).add_route(ALL_OUTPUTS, "lspeaker", 1.0);
|
||||||
// MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0)
|
|
||||||
|
|
||||||
// MCFG_DEVICE_ADD("cvsd4", MC3417, EXIDY440_MC3417_CLOCK)
|
// MC3417(config, "cvsd4", EXIDY440_MC3417_CLOCK).add_route(ALL_OUTPUTS, "rspeaker", 1.0);
|
||||||
// MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
// device_start - device-specific startup
|
// device_start - device-specific startup
|
||||||
|
@ -657,18 +657,18 @@ INPUT_PORTS_END
|
|||||||
// device_add_mconfig - add device configuration
|
// device_add_mconfig - add device configuration
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
MACHINE_CONFIG_START(gottlieb_sound_r2_device::device_add_mconfig)
|
void gottlieb_sound_r2_device::device_add_mconfig(machine_config &config)
|
||||||
|
{
|
||||||
// audio CPUs
|
// audio CPUs
|
||||||
MCFG_DEVICE_ADD("audiocpu", M6502, SOUND2_CLOCK/4)
|
M6502(config, m_audiocpu, SOUND2_CLOCK/4);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(gottlieb_sound_r2_map)
|
m_audiocpu->set_addrmap(AS_PROGRAM, &gottlieb_sound_r2_device::gottlieb_sound_r2_map);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("speechcpu", M6502, SOUND2_CLOCK/4)
|
M6502(config, m_speechcpu, SOUND2_CLOCK/4);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(gottlieb_speech_r2_map)
|
m_speechcpu->set_addrmap(AS_PROGRAM, &gottlieb_sound_r2_device::gottlieb_speech_r2_map);
|
||||||
|
|
||||||
// sound hardware
|
// sound hardware
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 0.075) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, *this, 0.075); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("dacvol", DAC_8BIT_R2R, 0) // unknown DAC
|
DAC_8BIT_R2R(config, "dacvol", 0).add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); // unknown DAC
|
||||||
MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT)
|
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dacvol", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dacvol", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -677,9 +677,8 @@ MACHINE_CONFIG_START(gottlieb_sound_r2_device::device_add_mconfig)
|
|||||||
|
|
||||||
AY8913(config, m_ay2, SOUND2_CLOCK/2).add_route(ALL_OUTPUTS, *this, 0.15);
|
AY8913(config, m_ay2, SOUND2_CLOCK/2).add_route(ALL_OUTPUTS, *this, 0.15);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("spsnd", SP0250, SOUND2_SPEECH_CLOCK)
|
SP0250(config, m_sp0250, SOUND2_SPEECH_CLOCK).add_route(ALL_OUTPUTS, *this, 1.0);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 1.0)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
@ -98,9 +98,9 @@ WRITE8_MEMBER(asteroid_state::llander_sounds_w)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(asteroid_state::llander_sound)
|
void asteroid_state::llander_sound(machine_config &config)
|
||||||
|
{
|
||||||
SPEAKER(config, "mono").front_center();
|
SPEAKER(config, "mono").front_center();
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("discrete", DISCRETE, llander_discrete)
|
DISCRETE(config, m_discrete, llander_discrete).add_route(ALL_OUTPUTS, "mono", 1.0);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
@ -955,9 +955,10 @@ void midway_squawk_n_talk_device::squawkntalk_alt_map(address_map &map)
|
|||||||
// device_add_mconfig - add device configuration
|
// device_add_mconfig - add device configuration
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
MACHINE_CONFIG_START(midway_squawk_n_talk_device::device_add_mconfig)
|
void midway_squawk_n_talk_device::device_add_mconfig(machine_config &config)
|
||||||
MCFG_DEVICE_ADD("cpu", M6802, DERIVED_CLOCK(1, 1))
|
{
|
||||||
MCFG_DEVICE_PROGRAM_MAP(squawkntalk_map)
|
M6802(config, m_cpu, DERIVED_CLOCK(1, 1));
|
||||||
|
m_cpu->set_addrmap(AS_PROGRAM, &midway_squawk_n_talk_device::squawkntalk_map);
|
||||||
|
|
||||||
PIA6821(config, m_pia0, 0);
|
PIA6821(config, m_pia0, 0);
|
||||||
m_pia0->writepa_handler().set(FUNC(midway_squawk_n_talk_device::porta1_w));
|
m_pia0->writepa_handler().set(FUNC(midway_squawk_n_talk_device::porta1_w));
|
||||||
@ -971,12 +972,11 @@ MACHINE_CONFIG_START(midway_squawk_n_talk_device::device_add_mconfig)
|
|||||||
m_pia1->irqb_handler().set(FUNC(midway_squawk_n_talk_device::irq_w));
|
m_pia1->irqb_handler().set(FUNC(midway_squawk_n_talk_device::irq_w));
|
||||||
|
|
||||||
// only used on Discs of Tron, which is stereo
|
// only used on Discs of Tron, which is stereo
|
||||||
MCFG_DEVICE_ADD("tms5200", TMS5200, 640000)
|
TMS5200(config, m_tms5200, 640000).add_route(ALL_OUTPUTS, *this, 0.60);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 0.60)
|
|
||||||
|
|
||||||
// the board also supports an AY-8912 and/or an 8-bit DAC, neither of
|
// the board also supports an AY-8912 and/or an 8-bit DAC, neither of
|
||||||
// which are populated on the Discs of Tron board
|
// which are populated on the Discs of Tron board
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
@ -204,9 +204,8 @@ WRITE8_MEMBER(spiders_state::spiders_audio_ctrl_w)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(spiders_state::spiders_audio)
|
void spiders_state::spiders_audio(machine_config &config)
|
||||||
|
{
|
||||||
SPEAKER(config, "mono").front_center();
|
SPEAKER(config, "mono").front_center();
|
||||||
MCFG_DEVICE_ADD("discrete", DISCRETE, spiders_discrete)
|
DISCRETE(config, m_discrete, spiders_discrete).add_route(ALL_OUTPUTS, "mono", 1.0);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
@ -296,7 +296,8 @@ DISCRETE_SOUND_START( sprint8_discrete )
|
|||||||
DISCRETE_TASK_END()
|
DISCRETE_TASK_END()
|
||||||
DISCRETE_SOUND_END
|
DISCRETE_SOUND_END
|
||||||
|
|
||||||
MACHINE_CONFIG_START(sprint8_state::sprint8_audio)
|
void sprint8_state::sprint8_audio(machine_config &config)
|
||||||
|
{
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
/* the proper way is to hook up 4 speakers, but they are not really
|
/* the proper way is to hook up 4 speakers, but they are not really
|
||||||
* F/R/L/R speakers. Though you can pretend the 1-2 mix is the front. */
|
* F/R/L/R speakers. Though you can pretend the 1-2 mix is the front. */
|
||||||
@ -305,30 +306,30 @@ MACHINE_CONFIG_START(sprint8_state::sprint8_audio)
|
|||||||
SPEAKER(config, "speaker_5_6", 0.0, 0.0, -0.5); // back
|
SPEAKER(config, "speaker_5_6", 0.0, 0.0, -0.5); // back
|
||||||
SPEAKER(config, "speaker_4_8", 0.2, 0.0, 1.0); // right
|
SPEAKER(config, "speaker_4_8", 0.2, 0.0, 1.0); // right
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("discrete", DISCRETE, sprint8_discrete)
|
DISCRETE(config, m_discrete, sprint8_discrete);
|
||||||
MCFG_SOUND_ROUTE(0, "speaker_1_2", 1.0)
|
m_discrete->add_route(0, "speaker_1_2", 1.0);
|
||||||
/* volumes on other channels defaulted to off, */
|
/* volumes on other channels defaulted to off, */
|
||||||
/* user can turn them up if needed. */
|
/* user can turn them up if needed. */
|
||||||
/* The game does not sound good with all channels mixed to stereo. */
|
/* The game does not sound good with all channels mixed to stereo. */
|
||||||
MCFG_SOUND_ROUTE(1, "speaker_3_7", 0.0)
|
m_discrete->add_route(1, "speaker_3_7", 0.0);
|
||||||
MCFG_SOUND_ROUTE(2, "speaker_5_6", 0.0)
|
m_discrete->add_route(2, "speaker_5_6", 0.0);
|
||||||
MCFG_SOUND_ROUTE(3, "speaker_4_8", 0.0)
|
m_discrete->add_route(3, "speaker_4_8", 0.0);
|
||||||
|
|
||||||
f9334_device &latch(F9334(config, "latch"));
|
f9334_device &latch(F9334(config, "latch"));
|
||||||
latch.q_out_cb<0>().set(FUNC(sprint8_state::int_reset_w));
|
latch.q_out_cb<0>().set(FUNC(sprint8_state::int_reset_w));
|
||||||
latch.q_out_cb<1>().set("discrete", FUNC(discrete_device::write_line<SPRINT8_CRASH_EN>));
|
latch.q_out_cb<1>().set(m_discrete, FUNC(discrete_device::write_line<SPRINT8_CRASH_EN>));
|
||||||
latch.q_out_cb<2>().set("discrete", FUNC(discrete_device::write_line<SPRINT8_SCREECH_EN>));
|
latch.q_out_cb<2>().set(m_discrete, FUNC(discrete_device::write_line<SPRINT8_SCREECH_EN>));
|
||||||
latch.q_out_cb<5>().set(FUNC(sprint8_state::team_w));
|
latch.q_out_cb<5>().set(FUNC(sprint8_state::team_w));
|
||||||
latch.q_out_cb<6>().set("discrete", FUNC(discrete_device::write_line<SPRINT8_ATTRACT_EN>));
|
latch.q_out_cb<6>().set(m_discrete, FUNC(discrete_device::write_line<SPRINT8_ATTRACT_EN>));
|
||||||
|
|
||||||
f9334_device &motor(F9334(config, "motor"));
|
f9334_device &motor(F9334(config, "motor"));
|
||||||
motor.q_out_cb<0>().set("discrete", FUNC(discrete_device::write_line<SPRINT8_MOTOR1_EN>));
|
motor.q_out_cb<0>().set(m_discrete, FUNC(discrete_device::write_line<SPRINT8_MOTOR1_EN>));
|
||||||
motor.q_out_cb<1>().set("discrete", FUNC(discrete_device::write_line<SPRINT8_MOTOR2_EN>));
|
motor.q_out_cb<1>().set(m_discrete, FUNC(discrete_device::write_line<SPRINT8_MOTOR2_EN>));
|
||||||
motor.q_out_cb<2>().set("discrete", FUNC(discrete_device::write_line<SPRINT8_MOTOR3_EN>));
|
motor.q_out_cb<2>().set(m_discrete, FUNC(discrete_device::write_line<SPRINT8_MOTOR3_EN>));
|
||||||
motor.q_out_cb<3>().set("discrete", FUNC(discrete_device::write_line<SPRINT8_MOTOR4_EN>));
|
motor.q_out_cb<3>().set(m_discrete, FUNC(discrete_device::write_line<SPRINT8_MOTOR4_EN>));
|
||||||
motor.q_out_cb<4>().set("discrete", FUNC(discrete_device::write_line<SPRINT8_MOTOR5_EN>));
|
motor.q_out_cb<4>().set(m_discrete, FUNC(discrete_device::write_line<SPRINT8_MOTOR5_EN>));
|
||||||
motor.q_out_cb<5>().set("discrete", FUNC(discrete_device::write_line<SPRINT8_MOTOR6_EN>));
|
motor.q_out_cb<5>().set(m_discrete, FUNC(discrete_device::write_line<SPRINT8_MOTOR6_EN>));
|
||||||
motor.q_out_cb<6>().set("discrete", FUNC(discrete_device::write_line<SPRINT8_MOTOR7_EN>));
|
motor.q_out_cb<6>().set(m_discrete, FUNC(discrete_device::write_line<SPRINT8_MOTOR7_EN>));
|
||||||
motor.q_out_cb<7>().set("discrete", FUNC(discrete_device::write_line<SPRINT8_MOTOR8_EN>));
|
motor.q_out_cb<7>().set(m_discrete, FUNC(discrete_device::write_line<SPRINT8_MOTOR8_EN>));
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
;
|
;
|
||||||
|
@ -371,9 +371,9 @@ void t5182_device::t5182_io(address_map &map)
|
|||||||
// device_add_mconfig - add device configuration
|
// device_add_mconfig - add device configuration
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
MACHINE_CONFIG_START(t5182_device::device_add_mconfig)
|
void t5182_device::device_add_mconfig(machine_config &config)
|
||||||
MCFG_DEVICE_ADD("t5182_z80", Z80, T5182_CLOCK)
|
{
|
||||||
MCFG_DEVICE_PROGRAM_MAP(t5182_map)
|
Z80(config, m_ourcpu, T5182_CLOCK);
|
||||||
MCFG_DEVICE_IO_MAP(t5182_io)
|
m_ourcpu->set_addrmap(AS_PROGRAM, &t5182_device::t5182_map);
|
||||||
|
m_ourcpu->set_addrmap(AS_IO, &t5182_device::t5182_io);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
@ -219,13 +219,13 @@ void timeplt_audio_device::device_add_mconfig(machine_config &config)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(locomotn_audio_device::device_add_mconfig)
|
void locomotn_audio_device::device_add_mconfig(machine_config &config)
|
||||||
|
{
|
||||||
timeplt_audio_device::device_add_mconfig(config);
|
timeplt_audio_device::device_add_mconfig(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_MODIFY("tpsound")
|
m_soundcpu->set_addrmap(AS_PROGRAM, &locomotn_audio_device::locomotn_sound_map);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(locomotn_sound_map)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
// sound_stream_update - handle a stream update
|
// sound_stream_update - handle a stream update
|
||||||
|
@ -34,9 +34,10 @@ protected:
|
|||||||
|
|
||||||
void timeplt_sound_map(address_map &map);
|
void timeplt_sound_map(address_map &map);
|
||||||
|
|
||||||
|
required_device<cpu_device> m_soundcpu;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// internal state
|
// internal state
|
||||||
required_device<cpu_device> m_soundcpu;
|
|
||||||
required_device<generic_latch_8_device> m_soundlatch;
|
required_device<generic_latch_8_device> m_soundlatch;
|
||||||
required_device_array<filter_rc_device, 3> m_filter_0;
|
required_device_array<filter_rc_device, 3> m_filter_0;
|
||||||
required_device_array<filter_rc_device, 3> m_filter_1;
|
required_device_array<filter_rc_device, 3> m_filter_1;
|
||||||
|
@ -552,7 +552,8 @@ ioport_constructor tx1j_sound_device::device_input_ports() const
|
|||||||
return INPUT_PORTS_NAME(tx1j_inputs);
|
return INPUT_PORTS_NAME(tx1j_inputs);
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(tx1_sound_device::device_add_mconfig)
|
void tx1_sound_device::device_add_mconfig(machine_config &config)
|
||||||
|
{
|
||||||
Z80(config, m_audiocpu, TX1_PIXEL_CLOCK / 2);
|
Z80(config, m_audiocpu, TX1_PIXEL_CLOCK / 2);
|
||||||
m_audiocpu->set_addrmap(AS_PROGRAM, &tx1_sound_device::tx1_sound_prg);
|
m_audiocpu->set_addrmap(AS_PROGRAM, &tx1_sound_device::tx1_sound_prg);
|
||||||
m_audiocpu->set_addrmap(AS_IO, &tx1_sound_device::tx1_sound_io);
|
m_audiocpu->set_addrmap(AS_IO, &tx1_sound_device::tx1_sound_io);
|
||||||
@ -575,10 +576,9 @@ MACHINE_CONFIG_START(tx1_sound_device::device_add_mconfig)
|
|||||||
aysnd.add_route(ALL_OUTPUTS, "frontleft", 0.1);
|
aysnd.add_route(ALL_OUTPUTS, "frontleft", 0.1);
|
||||||
aysnd.add_route(ALL_OUTPUTS, "frontright", 0.1);
|
aysnd.add_route(ALL_OUTPUTS, "frontright", 0.1);
|
||||||
|
|
||||||
MCFG_DEVICE_MODIFY(DEVICE_SELF)
|
this->add_route(0, "frontleft", 0.2);
|
||||||
MCFG_SOUND_ROUTE(0, "frontleft", 0.2)
|
this->add_route(1, "frontright", 0.2);
|
||||||
MCFG_SOUND_ROUTE(1, "frontright", 0.2)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
/*************************************
|
/*************************************
|
||||||
*
|
*
|
||||||
@ -1059,7 +1059,8 @@ ioport_constructor buggyboyjr_sound_device::device_input_ports() const
|
|||||||
return INPUT_PORTS_NAME(buggyboyjr_inputs);
|
return INPUT_PORTS_NAME(buggyboyjr_inputs);
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(buggyboy_sound_device::device_add_mconfig)
|
void buggyboy_sound_device::device_add_mconfig(machine_config &config)
|
||||||
|
{
|
||||||
Z80(config, m_audiocpu, BUGGYBOY_ZCLK / 2);
|
Z80(config, m_audiocpu, BUGGYBOY_ZCLK / 2);
|
||||||
m_audiocpu->set_addrmap(AS_PROGRAM, &buggyboy_sound_device::buggyboy_sound_prg);
|
m_audiocpu->set_addrmap(AS_PROGRAM, &buggyboy_sound_device::buggyboy_sound_prg);
|
||||||
m_audiocpu->set_addrmap(AS_IO, &buggyboy_sound_device::buggyboy_sound_io);
|
m_audiocpu->set_addrmap(AS_IO, &buggyboy_sound_device::buggyboy_sound_io);
|
||||||
@ -1085,12 +1086,12 @@ MACHINE_CONFIG_START(buggyboy_sound_device::device_add_mconfig)
|
|||||||
m_ym[1]->port_b_write_callback().set(FUNC(buggyboy_sound_device::ym2_b_w));
|
m_ym[1]->port_b_write_callback().set(FUNC(buggyboy_sound_device::ym2_b_w));
|
||||||
m_ym[1]->add_route(ALL_OUTPUTS, "frontright", 0.15);
|
m_ym[1]->add_route(ALL_OUTPUTS, "frontright", 0.15);
|
||||||
|
|
||||||
MCFG_DEVICE_MODIFY(DEVICE_SELF)
|
this->add_route(0, "frontleft", 0.2);
|
||||||
MCFG_SOUND_ROUTE(0, "frontleft", 0.2)
|
this->add_route(1, "frontright", 0.2);
|
||||||
MCFG_SOUND_ROUTE(1, "frontright", 0.2)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(buggyboyjr_sound_device::device_add_mconfig)
|
void buggyboyjr_sound_device::device_add_mconfig(machine_config &config)
|
||||||
|
{
|
||||||
Z80(config, m_audiocpu, BUGGYBOY_ZCLK / 2);
|
Z80(config, m_audiocpu, BUGGYBOY_ZCLK / 2);
|
||||||
m_audiocpu->set_addrmap(AS_PROGRAM, &buggyboyjr_sound_device::buggybjr_sound_prg);
|
m_audiocpu->set_addrmap(AS_PROGRAM, &buggyboyjr_sound_device::buggybjr_sound_prg);
|
||||||
m_audiocpu->set_addrmap(AS_IO, &buggyboyjr_sound_device::buggyboy_sound_io);
|
m_audiocpu->set_addrmap(AS_IO, &buggyboyjr_sound_device::buggyboy_sound_io);
|
||||||
@ -1111,7 +1112,6 @@ MACHINE_CONFIG_START(buggyboyjr_sound_device::device_add_mconfig)
|
|||||||
m_ym[1]->port_b_write_callback().set(FUNC(buggyboy_sound_device::ym2_b_w));
|
m_ym[1]->port_b_write_callback().set(FUNC(buggyboy_sound_device::ym2_b_w));
|
||||||
m_ym[1]->add_route(ALL_OUTPUTS, "frontright", 0.15);
|
m_ym[1]->add_route(ALL_OUTPUTS, "frontright", 0.15);
|
||||||
|
|
||||||
MCFG_DEVICE_MODIFY(DEVICE_SELF)
|
this->add_route(0, "frontleft", 0.2);
|
||||||
MCFG_SOUND_ROUTE(0, "frontleft", 0.2)
|
this->add_route(1, "frontright", 0.2);
|
||||||
MCFG_SOUND_ROUTE(1, "frontright", 0.2)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
@ -500,27 +500,27 @@ void williams_narc_sound_device::williams_narc_slave_map(address_map &map)
|
|||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(williams_narc_sound_device::device_add_mconfig)
|
void williams_narc_sound_device::device_add_mconfig(machine_config &config)
|
||||||
MCFG_DEVICE_ADD("cpu0", MC6809E, NARC_MASTER_CLOCK / 4)
|
{
|
||||||
MCFG_DEVICE_PROGRAM_MAP(williams_narc_master_map)
|
MC6809E(config, m_cpu[0], NARC_MASTER_CLOCK / 4);
|
||||||
|
m_cpu[0]->set_addrmap(AS_PROGRAM, &williams_narc_sound_device::williams_narc_master_map);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("cpu1", MC6809E, NARC_MASTER_CLOCK / 4)
|
MC6809E(config, m_cpu[1], NARC_MASTER_CLOCK / 4);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(williams_narc_slave_map)
|
m_cpu[1]->set_addrmap(AS_PROGRAM, &williams_narc_sound_device::williams_narc_slave_map);
|
||||||
|
|
||||||
ym2151_device &ym2151(YM2151(config, "ym2151", NARC_FM_CLOCK));
|
ym2151_device &ym2151(YM2151(config, "ym2151", NARC_FM_CLOCK));
|
||||||
ym2151.irq_handler().set_inputline("cpu0", M6809_FIRQ_LINE);
|
ym2151.irq_handler().set_inputline("cpu0", M6809_FIRQ_LINE);
|
||||||
ym2151.add_route(ALL_OUTPUTS, *this, 0.10);
|
ym2151.add_route(ALL_OUTPUTS, *this, 0.10);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", AD7224, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 0.25)
|
AD7224(config, "dac1", 0).add_route(ALL_OUTPUTS, *this, 0.25);
|
||||||
MCFG_DEVICE_ADD("dac2", AD7224, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 0.25)
|
AD7224(config, "dac2", 0).add_route(ALL_OUTPUTS, *this, 0.25);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("cvsd", HC55516, 0)
|
HC55516(config, m_hc55516, 0).add_route(ALL_OUTPUTS, *this, 0.60);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 0.60)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
@ -758,24 +758,25 @@ void williams_adpcm_sound_device::williams_adpcm_oki_map(address_map &map)
|
|||||||
// device_add_mconfig - add device configuration
|
// device_add_mconfig - add device configuration
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
MACHINE_CONFIG_START(williams_adpcm_sound_device::device_add_mconfig)
|
void williams_adpcm_sound_device::device_add_mconfig(machine_config &config)
|
||||||
MCFG_DEVICE_ADD("cpu", MC6809E, ADPCM_MASTER_CLOCK / 4)
|
{
|
||||||
MCFG_DEVICE_PROGRAM_MAP(williams_adpcm_map)
|
MC6809E(config, m_cpu, ADPCM_MASTER_CLOCK / 4);
|
||||||
|
m_cpu->set_addrmap(AS_PROGRAM, &williams_adpcm_sound_device::williams_adpcm_map);
|
||||||
|
|
||||||
ym2151_device &ym2151(YM2151(config, "ym2151", ADPCM_FM_CLOCK));
|
ym2151_device &ym2151(YM2151(config, "ym2151", ADPCM_FM_CLOCK));
|
||||||
ym2151.irq_handler().set_inputline("cpu", M6809_FIRQ_LINE);
|
ym2151.irq_handler().set_inputline("cpu", M6809_FIRQ_LINE);
|
||||||
ym2151.add_route(ALL_OUTPUTS, *this, 0.10);
|
ym2151.add_route(ALL_OUTPUTS, *this, 0.10);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", AD7524, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 0.10)
|
AD7524(config, "dac", 0).add_route(ALL_OUTPUTS, *this, 0.10);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("oki", OKIM6295, ADPCM_MASTER_CLOCK/8, okim6295_device::PIN7_HIGH) // clock frequency & pin 7 not verified
|
okim6295_device &oki(OKIM6295(config, "oki", ADPCM_MASTER_CLOCK/8, okim6295_device::PIN7_HIGH)); // clock frequency & pin 7 not verified
|
||||||
MCFG_DEVICE_ADDRESS_MAP(0, williams_adpcm_oki_map)
|
oki.set_addrmap(0, &williams_adpcm_sound_device::williams_adpcm_oki_map);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 0.15)
|
oki.add_route(ALL_OUTPUTS, *this, 0.15);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
@ -69,24 +69,24 @@ uint8_t wpcsnd_device::data_r()
|
|||||||
return m_reply;
|
return m_reply;
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(wpcsnd_device::device_add_mconfig)
|
void wpcsnd_device::device_add_mconfig(machine_config &config)
|
||||||
MCFG_DEVICE_ADD("bgcpu", MC6809E, XTAL(8'000'000) / 4) // MC68B09E
|
{
|
||||||
MCFG_DEVICE_PROGRAM_MAP(wpcsnd_map)
|
MC6809E(config, m_cpu, XTAL(8'000'000) / 4); // MC68B09E
|
||||||
|
m_cpu->set_addrmap(AS_PROGRAM, &wpcsnd_device::wpcsnd_map);
|
||||||
config.m_minimum_quantum = attotime::from_hz(50);
|
config.m_minimum_quantum = attotime::from_hz(50);
|
||||||
|
|
||||||
YM2151(config, m_ym2151, 3580000);
|
YM2151(config, m_ym2151, 3580000);
|
||||||
m_ym2151->irq_handler().set(FUNC(wpcsnd_device::ym2151_irq_w));
|
m_ym2151->irq_handler().set(FUNC(wpcsnd_device::ym2151_irq_w));
|
||||||
m_ym2151->add_route(ALL_OUTPUTS, *this, 0.25);
|
m_ym2151->add_route(ALL_OUTPUTS, *this, 0.25);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", AD7524, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 0.25)
|
AD7524(config, "dac", 0).add_route(ALL_OUTPUTS, *this, 0.25);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("hc55516", HC55516, 0)
|
HC55516(config, m_hc55516, 0).add_route(ALL_OUTPUTS, *this, 0.5);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 0.5)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
|
|
||||||
void wpcsnd_device::device_start()
|
void wpcsnd_device::device_start()
|
||||||
|
@ -878,8 +878,8 @@ MACHINE_CONFIG_START(applix_state::applix)
|
|||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "lspeaker").front_left();
|
SPEAKER(config, "lspeaker").front_left();
|
||||||
SPEAKER(config, "rspeaker").front_right();
|
SPEAKER(config, "rspeaker").front_right();
|
||||||
MCFG_DEVICE_ADD("ldac", DAC0800, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) // 74ls374.u20 + dac0800.u21 + 4052.u23
|
DAC0800(config, "ldac", 0).add_route(ALL_OUTPUTS, "lspeaker", 1.0); // 74ls374.u20 + dac0800.u21 + 4052.u23
|
||||||
MCFG_DEVICE_ADD("rdac", DAC0800, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) // 74ls374.u20 + dac0800.u21 + 4052.u23
|
DAC0800(config, "rdac", 0).add_route(ALL_OUTPUTS, "rspeaker", 1.0); // 74ls374.u20 + dac0800.u21 + 4052.u23
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
@ -1251,26 +1251,26 @@ void armedf_state::machine_reset()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(armedf_state::terraf_sound)
|
void armedf_state::terraf_sound(machine_config &config)
|
||||||
MCFG_DEVICE_ADD("audiocpu", Z80, XTAL(24'000'000)/6) // 4mhz
|
{
|
||||||
MCFG_DEVICE_PROGRAM_MAP(sound_map)
|
z80_device &audiocpu(Z80(config, "audiocpu", XTAL(24'000'000)/6)); // 4mhz
|
||||||
MCFG_DEVICE_IO_MAP(sound_portmap)
|
audiocpu.set_addrmap(AS_PROGRAM, &armedf_state::sound_map);
|
||||||
MCFG_DEVICE_PERIODIC_INT_DRIVER(armedf_state, irq0_line_hold, XTAL(8'000'000)/2/512) // ?
|
audiocpu.set_addrmap(AS_IO, &armedf_state::sound_portmap);
|
||||||
|
audiocpu.set_periodic_int(FUNC(armedf_state::irq0_line_hold), attotime::from_hz(XTAL(8'000'000)/2/512)); // ?
|
||||||
|
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
|
|
||||||
GENERIC_LATCH_8(config, m_soundlatch);
|
GENERIC_LATCH_8(config, m_soundlatch);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(24'000'000)/6) // 4mhz
|
YM3812(config, "ymsnd", XTAL(24'000'000)/6).add_route(ALL_OUTPUTS, "speaker", 0.5); // 4mhz
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.8) // 10-pin SIP with 74HC374P latch
|
DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.8); // 10-pin SIP with 74HC374P latch
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.8) // 10-pin SIP with 74HC374P latch
|
DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.8); // 10-pin SIP with 74HC374P latch
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(armedf_state::terraf)
|
MACHINE_CONFIG_START(armedf_state::terraf)
|
||||||
|
|
||||||
@ -1343,8 +1343,8 @@ MACHINE_CONFIG_START(armedf_state::terrafjb)
|
|||||||
MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(24'000'000)/6) // 4mhz
|
MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(24'000'000)/6) // 4mhz
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.8) // unknown DAC
|
DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.8); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.8) // unknown DAC
|
DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.8); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
@ -1424,8 +1424,8 @@ MACHINE_CONFIG_START(armedf_state::armedf)
|
|||||||
MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(24'000'000)/6) // 4mhz
|
MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(24'000'000)/6) // 4mhz
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC
|
DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC
|
DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
@ -1471,8 +1471,8 @@ MACHINE_CONFIG_START(armedf_state::cclimbr2)
|
|||||||
MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(24'000'000)/6) // or YM3526?
|
MCFG_DEVICE_ADD("ymsnd", YM3812, XTAL(24'000'000)/6) // or YM3526?
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.4) // unknown DAC
|
DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.4) // unknown DAC
|
DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
@ -1510,8 +1510,8 @@ MACHINE_CONFIG_START(armedf_state::legion_common)
|
|||||||
|
|
||||||
GENERIC_LATCH_8(config, m_soundlatch);
|
GENERIC_LATCH_8(config, m_soundlatch);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.4) // 10-pin SIP with 74HC374P latch
|
DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // 10-pin SIP with 74HC374P latch
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.4) // 10-pin SIP with 74HC374P latch
|
DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // 10-pin SIP with 74HC374P latch
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
@ -479,10 +479,11 @@ void atari_s2_state::machine_reset()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(atari_s2_state::atari_s2)
|
void atari_s2_state::atari_s2(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("maincpu", M6800, XTAL(4'000'000) / 4)
|
M6800(config, m_maincpu, XTAL(4'000'000) / 4);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(atari_s2_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &atari_s2_state::atari_s2_map);
|
||||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||||
WATCHDOG_TIMER(config, "watchdog");
|
WATCHDOG_TIMER(config, "watchdog");
|
||||||
|
|
||||||
@ -490,8 +491,8 @@ MACHINE_CONFIG_START(atari_s2_state::atari_s2)
|
|||||||
genpin_audio(config);
|
genpin_audio(config);
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_4BIT_BINARY_WEIGHTED, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.15) // r23-r26 (68k,33k,18k,8.2k)
|
DAC_4BIT_BINARY_WEIGHTED(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.15); // r23-r26 (68k,33k,18k,8.2k)
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_3BIT_BINARY_WEIGHTED, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.15) // r18-r20 (100k,47k,100k)
|
DAC_3BIT_BINARY_WEIGHTED(config, m_dac1, 0).add_route(ALL_OUTPUTS, "speaker", 0.15); // r18-r20 (100k,47k,100k)
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
@ -502,13 +503,13 @@ MACHINE_CONFIG_START(atari_s2_state::atari_s2)
|
|||||||
|
|
||||||
TIMER(config, "irq").configure_periodic(FUNC(atari_s2_state::irq), attotime::from_hz(XTAL(4'000'000) / 8192));
|
TIMER(config, "irq").configure_periodic(FUNC(atari_s2_state::irq), attotime::from_hz(XTAL(4'000'000) / 8192));
|
||||||
TIMER(config, "timer_s").configure_periodic(FUNC(atari_s2_state::timer_s), attotime::from_hz(150000));
|
TIMER(config, "timer_s").configure_periodic(FUNC(atari_s2_state::timer_s), attotime::from_hz(150000));
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(atari_s2_state::atari_s3)
|
void atari_s2_state::atari_s3(machine_config &config)
|
||||||
|
{
|
||||||
atari_s2(config);
|
atari_s2(config);
|
||||||
MCFG_DEVICE_MODIFY("maincpu")
|
m_maincpu->set_addrmap(AS_PROGRAM, &atari_s2_state::atari_s3_map);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(atari_s3_map)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
|
|
||||||
/*-------------------------------------------------------------------
|
/*-------------------------------------------------------------------
|
||||||
|
@ -434,7 +434,7 @@ MACHINE_CONFIG_START(bking_state::bking)
|
|||||||
ay2.port_b_write_callback().set(FUNC(bking_state::port_b_w));
|
ay2.port_b_write_callback().set(FUNC(bking_state::port_b_w));
|
||||||
ay2.add_route(ALL_OUTPUTS, "speaker", 0.25);
|
ay2.add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -549,11 +549,12 @@ GFXDECODE_END
|
|||||||
|
|
||||||
|
|
||||||
/* Machine Driver */
|
/* Machine Driver */
|
||||||
MACHINE_CONFIG_START(bw12_state::common)
|
void bw12_state::common(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD(Z80_TAG, Z80, XTAL(16'000'000)/4)
|
Z80(config, m_maincpu, XTAL(16'000'000)/4);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(bw12_mem)
|
m_maincpu->set_addrmap(AS_PROGRAM, &bw12_state::bw12_mem);
|
||||||
MCFG_DEVICE_IO_MAP(bw12_io)
|
m_maincpu->set_addrmap(AS_IO, &bw12_state::bw12_io);
|
||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
screen_device &screen(SCREEN(config, SCREEN_TAG, SCREEN_TYPE_RASTER, rgb_t::amber()));
|
screen_device &screen(SCREEN(config, SCREEN_TAG, SCREEN_TYPE_RASTER, rgb_t::amber()));
|
||||||
@ -574,7 +575,7 @@ MACHINE_CONFIG_START(bw12_state::common)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.125) // ls273.ic5 + mc1408.ic4
|
MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.125); // ls273.ic5 + mc1408.ic4
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -642,7 +643,7 @@ MACHINE_CONFIG_START(bw12_state::common)
|
|||||||
|
|
||||||
output_latch_device ¢_data_out(OUTPUT_LATCH(config, "cent_data_out"));
|
output_latch_device ¢_data_out(OUTPUT_LATCH(config, "cent_data_out"));
|
||||||
m_centronics->set_output_latch(cent_data_out);
|
m_centronics->set_output_latch(cent_data_out);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
void bw12_state::bw12(machine_config &config)
|
void bw12_state::bw12(machine_config &config)
|
||||||
{
|
{
|
||||||
|
@ -404,7 +404,7 @@ MACHINE_CONFIG_START(bwing_state::bwing)
|
|||||||
|
|
||||||
AY8912(config, "ay2", XTAL(24'000'000) / 2 / 8).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
AY8912(config, "ay2", XTAL(24'000'000) / 2 / 8).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC08, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.1)
|
DAC08(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.1);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -746,13 +746,14 @@ uint32_t by133_state::screen_update_granny(screen_device &screen, bitmap_rgb32 &
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(by133_state::babypac)
|
void by133_state::babypac(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("maincpu", M6800, XTAL(3'579'545)/4) // no xtal, just 2 chips
|
M6800(config, m_maincpu, XTAL(3'579'545)/4); // no xtal, just 2 chips
|
||||||
MCFG_DEVICE_PROGRAM_MAP(main_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &by133_state::main_map);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("videocpu", MC6809, XTAL(3'579'545))
|
MC6809(config, m_videocpu, XTAL(3'579'545));
|
||||||
MCFG_DEVICE_PROGRAM_MAP(video_map)
|
m_videocpu->set_addrmap(AS_PROGRAM, &by133_state::video_map);
|
||||||
|
|
||||||
M6803(config, m_audiocpu, XTAL(3'579'545));
|
M6803(config, m_audiocpu, XTAL(3'579'545));
|
||||||
m_audiocpu->set_addrmap(AS_PROGRAM, &by133_state::sound_map);
|
m_audiocpu->set_addrmap(AS_PROGRAM, &by133_state::sound_map);
|
||||||
@ -802,30 +803,29 @@ MACHINE_CONFIG_START(by133_state::babypac)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", ZN429E, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // U32 (Vidiot) or U6 (Cheap Squeak)
|
ZN429E(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // U32 (Vidiot) or U6 (Cheap Squeak)
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
|
||||||
SPEAKER(config, "beee").front_center();
|
SPEAKER(config, "beee").front_center();
|
||||||
MCFG_DEVICE_ADD("beeper", BEEP, 600)
|
BEEP(config, m_beep, 600).add_route(ALL_OUTPUTS, "beee", 0.10);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "beee", 0.10)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(by133_state::granny)
|
void by133_state::granny(machine_config &config)
|
||||||
|
{
|
||||||
babypac(config);
|
babypac(config);
|
||||||
config.device_remove("videocpu");
|
|
||||||
MCFG_DEVICE_ADD("videocpu", MC6809, XTAL(8'000'000)) // MC68B09P (XTAL value hard to read)
|
MC6809(config.replace(), m_videocpu, XTAL(8'000'000)); // MC68B09P (XTAL value hard to read)
|
||||||
MCFG_DEVICE_PROGRAM_MAP(granny_map)
|
m_videocpu->set_addrmap(AS_PROGRAM, &by133_state::granny_map);
|
||||||
|
|
||||||
TMS9928A(config, m_crtc2, XTAL(10'738'635)).set_screen("screen");
|
TMS9928A(config, m_crtc2, XTAL(10'738'635)).set_screen("screen");
|
||||||
m_crtc2->set_vram_size(0x4000);
|
m_crtc2->set_vram_size(0x4000);
|
||||||
m_crtc2->int_callback().set_inputline(m_videocpu, M6809_IRQ_LINE);
|
m_crtc2->int_callback().set_inputline(m_videocpu, M6809_IRQ_LINE);
|
||||||
|
|
||||||
MCFG_DEVICE_MODIFY("screen")
|
subdevice<screen_device>("screen")->set_screen_update(FUNC(by133_state::screen_update_granny));
|
||||||
MCFG_SCREEN_UPDATE_DRIVER(by133_state, screen_update_granny)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
|
|
||||||
/*-----------------------------------------------------
|
/*-----------------------------------------------------
|
||||||
|
@ -702,8 +702,8 @@ MACHINE_CONFIG_START(calchase_state::calchase)
|
|||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "lspeaker").front_left();
|
SPEAKER(config, "lspeaker").front_left();
|
||||||
SPEAKER(config, "rspeaker").front_right();
|
SPEAKER(config, "rspeaker").front_right();
|
||||||
MCFG_DEVICE_ADD("ldac", DAC_12BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) // unknown DAC
|
DAC_12BIT_R2R(config, "ldac", 0).add_route(ALL_OUTPUTS, "lspeaker", 0.25); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("rdac", DAC_12BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25) // unknown DAC
|
DAC_12BIT_R2R(config, "rdac", 0).add_route(ALL_OUTPUTS, "rspeaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
@ -731,8 +731,8 @@ MACHINE_CONFIG_START(calchase_state::hostinv)
|
|||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "lspeaker").front_left();
|
SPEAKER(config, "lspeaker").front_left();
|
||||||
SPEAKER(config, "rspeaker").front_right();
|
SPEAKER(config, "rspeaker").front_right();
|
||||||
MCFG_DEVICE_ADD("ldac", DAC_12BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) // unknown DAC
|
DAC_12BIT_R2R(config, "ldac", 0).add_route(ALL_OUTPUTS, "lspeaker", 0.25); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("rdac", DAC_12BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25) // unknown DAC
|
DAC_12BIT_R2R(config, "rdac", 0).add_route(ALL_OUTPUTS, "rspeaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
@ -615,7 +615,7 @@ MACHINE_CONFIG_START(cc40_state::cc40)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25)
|
DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -146,11 +146,11 @@ static const z80_daisy_config daisy_chain[] =
|
|||||||
*
|
*
|
||||||
*************************************/
|
*************************************/
|
||||||
|
|
||||||
MACHINE_CONFIG_START(cchasm_state::cchasm)
|
void cchasm_state::cchasm(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("maincpu", M68000, CCHASM_68K_CLOCK) /* 8 MHz (from schematics) */
|
M68000(config, m_maincpu, CCHASM_68K_CLOCK); /* 8 MHz (from schematics) */
|
||||||
MCFG_DEVICE_PROGRAM_MAP(memmap)
|
m_maincpu->set_addrmap(AS_PROGRAM, &cchasm_state::memmap);
|
||||||
|
|
||||||
Z80(config, m_audiocpu, 3584229); /* 3.58 MHz (from schematics) */
|
Z80(config, m_audiocpu, 3584229); /* 3.58 MHz (from schematics) */
|
||||||
m_audiocpu->set_daisy_config(daisy_chain);
|
m_audiocpu->set_daisy_config(daisy_chain);
|
||||||
@ -166,11 +166,11 @@ MACHINE_CONFIG_START(cchasm_state::cchasm)
|
|||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
VECTOR(config, m_vector, 0);
|
VECTOR(config, m_vector, 0);
|
||||||
MCFG_SCREEN_ADD("screen", VECTOR)
|
SCREEN(config, m_screen, SCREEN_TYPE_VECTOR);
|
||||||
MCFG_SCREEN_REFRESH_RATE(40)
|
m_screen->set_refresh_hz(40);
|
||||||
MCFG_SCREEN_SIZE(400, 300)
|
m_screen->set_size(400, 300);
|
||||||
MCFG_SCREEN_VISIBLE_AREA(0, 1024-1, 0, 768-1)
|
m_screen->set_visarea(0, 1024-1, 0, 768-1);
|
||||||
MCFG_SCREEN_UPDATE_DEVICE("vector", vector_device, screen_update)
|
m_screen->set_screen_update("vector", FUNC(vector_device::screen_update));
|
||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
@ -184,8 +184,8 @@ MACHINE_CONFIG_START(cchasm_state::cchasm)
|
|||||||
|
|
||||||
AY8910(config, "ay2", 1818182).add_route(ALL_OUTPUTS, "speaker", 0.2);
|
AY8910(config, "ay2", 1818182).add_route(ALL_OUTPUTS, "speaker", 0.2);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
DAC_1BIT(config, m_dac1, 0).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
DAC_1BIT(config, m_dac2, 0).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -195,7 +195,7 @@ MACHINE_CONFIG_START(cchasm_state::cchasm)
|
|||||||
ptm6840_device &ptm(PTM6840(config, "6840ptm", CCHASM_68K_CLOCK/10));
|
ptm6840_device &ptm(PTM6840(config, "6840ptm", CCHASM_68K_CLOCK/10));
|
||||||
ptm.set_external_clocks(0, (CCHASM_68K_CLOCK / 10).value(), 0);
|
ptm.set_external_clocks(0, (CCHASM_68K_CLOCK / 10).value(), 0);
|
||||||
ptm.irq_callback().set_inputline("maincpu", 4);
|
ptm.irq_callback().set_inputline("maincpu", 4);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -608,7 +608,7 @@ MACHINE_CONFIG_START(champbas_state::champbas)
|
|||||||
|
|
||||||
AY8910(config, "ay1", XTAL(18'432'000)/12).add_route(ALL_OUTPUTS, "speaker", 0.3);
|
AY8910(config, "ay1", XTAL(18'432'000)/12).add_route(ALL_OUTPUTS, "speaker", 0.3);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_6BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.7) // unknown DAC
|
DAC_6BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.7); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -727,8 +727,8 @@ MACHINE_CONFIG_START(exctsccr_state::exctsccr)
|
|||||||
|
|
||||||
AY8910(config, "ay4", XTAL(14'318'181)/8).add_route(ALL_OUTPUTS, "speaker", 0.08);
|
AY8910(config, "ay4", XTAL(14'318'181)/8).add_route(ALL_OUTPUTS, "speaker", 0.08);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_6BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.3) // unknown DAC
|
DAC_6BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.3); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_6BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.3) // unknown DAC
|
DAC_6BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.3); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
@ -779,7 +779,7 @@ MACHINE_CONFIG_START(exctsccr_state::exctsccrb)
|
|||||||
|
|
||||||
AY8910(config, "ay1", XTAL(18'432'000)/12).add_route(ALL_OUTPUTS, "speaker", 0.3);
|
AY8910(config, "ay1", XTAL(18'432'000)/12).add_route(ALL_OUTPUTS, "speaker", 0.3);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_6BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.7) // unknown DAC
|
DAC_6BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.7); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -392,7 +392,7 @@ MACHINE_CONFIG_START(chsuper_state::chsuper)
|
|||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -387,7 +387,7 @@ MACHINE_CONFIG_START(circusc_state::circusc)
|
|||||||
MCFG_DEVICE_ADD("sn2", SN76496, XTAL(14'318'181)/8)
|
MCFG_DEVICE_ADD("sn2", SN76496, XTAL(14'318'181)/8)
|
||||||
MCFG_SOUND_ROUTE(0, "fltdisc", 1.0, 1)
|
MCFG_SOUND_ROUTE(0, "fltdisc", 1.0, 1)
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(0, "fltdisc", 1.0, 2) // ls374.7g + r44+r45+r47+r48+r50+r56+r57+r58+r59 (20k) + r46+r49+r51+r52+r53+r54+r55 (10k) + upc324.3h
|
DAC_8BIT_R2R(config, "dac", 0).add_route(0, "fltdisc", 1.0, 2); // ls374.7g + r44+r45+r47+r48+r50+r56+r57+r58+r59 (20k) + r46+r49+r51+r52+r53+r54+r55 (10k) + upc324.3h
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -967,7 +967,7 @@ MACHINE_CONFIG_START(cntsteer_state::cntsteer)
|
|||||||
|
|
||||||
AY8910(config, "ay2", 1500000).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
AY8910(config, "ay2", 1500000).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -710,8 +710,8 @@ INPUT_PORTS_END
|
|||||||
*
|
*
|
||||||
*************************************/
|
*************************************/
|
||||||
|
|
||||||
MACHINE_CONFIG_START(coolpool_state::amerdart)
|
void coolpool_state::amerdart(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
TMS34010(config, m_maincpu, XTAL(40'000'000));
|
TMS34010(config, m_maincpu, XTAL(40'000'000));
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &coolpool_state::amerdart_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &coolpool_state::amerdart_map);
|
||||||
@ -740,22 +740,22 @@ MACHINE_CONFIG_START(coolpool_state::amerdart)
|
|||||||
TIMER(config, m_nvram_timer).configure_generic(FUNC(coolpool_state::nvram_write_timeout));
|
TIMER(config, m_nvram_timer).configure_generic(FUNC(coolpool_state::nvram_write_timeout));
|
||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
MCFG_SCREEN_ADD("screen", RASTER)
|
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
|
||||||
MCFG_SCREEN_RAW_PARAMS(XTAL(40'000'000)/6, 212*2, 0, 161*2, 262, 0, 241)
|
screen.set_raw(XTAL(40'000'000)/6, 212*2, 0, 161*2, 262, 0, 241);
|
||||||
MCFG_SCREEN_UPDATE_DEVICE("maincpu", tms34010_device, tms340x0_rgb32)
|
screen.set_screen_update("maincpu", FUNC(tms34010_device::tms340x0_rgb32));
|
||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", MP1210, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0)
|
MP1210(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 1.0);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(coolpool_state::coolpool)
|
void coolpool_state::coolpool(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
TMS34010(config, m_maincpu, XTAL(40'000'000));
|
TMS34010(config, m_maincpu, XTAL(40'000'000));
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &coolpool_state::coolpool_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &coolpool_state::coolpool_map);
|
||||||
@ -789,18 +789,18 @@ MACHINE_CONFIG_START(coolpool_state::coolpool)
|
|||||||
/* video hardware */
|
/* video hardware */
|
||||||
TLC34076(config, m_tlc34076, tlc34076_device::TLC34076_6_BIT);
|
TLC34076(config, m_tlc34076, tlc34076_device::TLC34076_6_BIT);
|
||||||
|
|
||||||
MCFG_SCREEN_ADD("screen", RASTER)
|
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
|
||||||
MCFG_SCREEN_RAW_PARAMS(XTAL(40'000'000)/6, 424, 0, 320, 262, 0, 240)
|
screen.set_raw(XTAL(40'000'000)/6, 424, 0, 320, 262, 0, 240);
|
||||||
MCFG_SCREEN_UPDATE_DEVICE("maincpu", tms34010_device, tms340x0_rgb32)
|
screen.set_screen_update("maincpu", FUNC(tms34010_device::tms340x0_rgb32));
|
||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", MP1210, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0)
|
MP1210(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 1.0);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
void coolpool_state::_9ballsht(machine_config &config)
|
void coolpool_state::_9ballsht(machine_config &config)
|
||||||
|
@ -518,8 +518,7 @@ MACHINE_CONFIG_START(mightguy_state::mightguy)
|
|||||||
MCFG_DEVICE_ADD("ymsnd", YM3526, AUDIOCPU_CLOCK/2) /* unknown divider */
|
MCFG_DEVICE_ADD("ymsnd", YM3526, AUDIOCPU_CLOCK/2) /* unknown divider */
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "mono", 0.5); // unknown DAC
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5)
|
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -369,8 +369,8 @@ INPUT_PORTS_END
|
|||||||
*
|
*
|
||||||
*************************************/
|
*************************************/
|
||||||
|
|
||||||
MACHINE_CONFIG_START(exterm_state::exterm)
|
void exterm_state::exterm(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
TMS34010(config, m_maincpu, 40000000);
|
TMS34010(config, m_maincpu, 40000000);
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &exterm_state::master_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &exterm_state::master_map);
|
||||||
@ -406,24 +406,23 @@ MACHINE_CONFIG_START(exterm_state::exterm)
|
|||||||
/* video hardware */
|
/* video hardware */
|
||||||
PALETTE(config, "palette", FUNC(exterm_state::exterm_palette)).set_format(palette_device::xRGB_555, 2048+32768);
|
PALETTE(config, "palette", FUNC(exterm_state::exterm_palette)).set_format(palette_device::xRGB_555, 2048+32768);
|
||||||
|
|
||||||
MCFG_SCREEN_ADD("screen", RASTER)
|
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
|
||||||
MCFG_SCREEN_RAW_PARAMS(40000000/8, 318, 0, 256, 264, 0, 240)
|
screen.set_raw(40000000/8, 318, 0, 256, 264, 0, 240);
|
||||||
MCFG_SCREEN_UPDATE_DEVICE("maincpu", tms34010_device, tms340x0_ind16)
|
screen.set_screen_update("maincpu", FUNC(tms34010_device::tms340x0_ind16));
|
||||||
MCFG_SCREEN_PALETTE("palette")
|
screen.set_palette("palette");
|
||||||
|
|
||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", AD7528, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.4) // ad7528j.e2
|
AD7528(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // ad7528j.e2
|
||||||
MCFG_DEVICE_ADD("dacvol", AD7528, 0) // ad7528j.e2
|
AD7528(config, "dacvol", 0).add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT).add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); // ad7528j.e2
|
||||||
MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT)
|
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dacvol", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dacvol", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
|
||||||
YM2151(config, m_ym2151, 4000000).add_route(ALL_OUTPUTS, "speaker", 1.0);
|
YM2151(config, m_ym2151, 4000000).add_route(ALL_OUTPUTS, "speaker", 1.0);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -842,7 +842,7 @@ MACHINE_CONFIG_START(fantland_state::fantland)
|
|||||||
|
|
||||||
YM2151(config, "ymsnd", 3000000).add_route(0, "speaker", 0.35).add_route(1, "speaker", 0.35);
|
YM2151(config, "ymsnd", 3000000).add_route(0, "speaker", 0.35).add_route(1, "speaker", 0.35);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -568,11 +568,11 @@ INPUT_PORTS_END
|
|||||||
Machine Drivers
|
Machine Drivers
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
MACHINE_CONFIG_START(fidel68k_state::fex68k)
|
void fidel68k_state::fex68k(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("maincpu", M68000, 12_MHz_XTAL) // HD68HC000P12
|
M68000(config, m_maincpu, 12_MHz_XTAL); // HD68HC000P12
|
||||||
MCFG_DEVICE_PROGRAM_MAP(fex68k_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &fidel68k_state::fex68k_map);
|
||||||
|
|
||||||
const attotime irq_period = attotime::from_hz(618); // theoretical frequency from 556 timer (22nF, 91K + 20K POT @ 14.8K, 0.1K), measurement was 580Hz
|
const attotime irq_period = attotime::from_hz(618); // theoretical frequency from 556 timer (22nF, 91K + 20K POT @ 14.8K, 0.1K), measurement was 580Hz
|
||||||
TIMER(config, m_irq_on).configure_periodic(FUNC(fidel68k_state::irq_on<M68K_IRQ_2>), irq_period);
|
TIMER(config, m_irq_on).configure_periodic(FUNC(fidel68k_state::irq_on<M68K_IRQ_2>), irq_period);
|
||||||
@ -584,34 +584,34 @@ MACHINE_CONFIG_START(fidel68k_state::fex68k)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25)
|
DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(fidel68k_state::fex68km2)
|
void fidel68k_state::fex68km2(machine_config &config)
|
||||||
|
{
|
||||||
fex68k(config);
|
fex68k(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_MODIFY("maincpu")
|
m_maincpu->set_addrmap(AS_PROGRAM, &fidel68k_state::fex68km2_map);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(fex68km2_map)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(fidel68k_state::fex68km3)
|
void fidel68k_state::fex68km3(machine_config &config)
|
||||||
|
{
|
||||||
fex68k(config);
|
fex68k(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_MODIFY("maincpu")
|
m_maincpu->set_clock(16_MHz_XTAL); // factory overclock
|
||||||
MCFG_DEVICE_CLOCK(16_MHz_XTAL) // factory overclock
|
m_maincpu->set_addrmap(AS_PROGRAM, &fidel68k_state::fex68km3_map);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(fex68km3_map)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(fidel68k_state::fdes2265)
|
|
||||||
|
|
||||||
|
void fidel68k_state::fdes2265(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("maincpu", M68000, 16_MHz_XTAL) // MC68HC000P12F
|
M68000(config, m_maincpu, 16_MHz_XTAL); // MC68HC000P12F
|
||||||
MCFG_DEVICE_PROGRAM_MAP(fdes2265_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &fidel68k_state::fdes2265_map);
|
||||||
|
|
||||||
const attotime irq_period = attotime::from_hz(597); // from 555 timer, measured
|
const attotime irq_period = attotime::from_hz(597); // from 555 timer, measured
|
||||||
TIMER(config, m_irq_on).configure_periodic(FUNC(fidel68k_state::irq_on<M68K_IRQ_4>), irq_period);
|
TIMER(config, m_irq_on).configure_periodic(FUNC(fidel68k_state::irq_on<M68K_IRQ_4>), irq_period);
|
||||||
@ -623,27 +623,27 @@ MACHINE_CONFIG_START(fidel68k_state::fdes2265)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25)
|
DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(fidel68k_state::fdes2325)
|
void fidel68k_state::fdes2325(machine_config &config)
|
||||||
|
{
|
||||||
fdes2265(config);
|
fdes2265(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_REPLACE("maincpu", M68EC020, 20_MHz_XTAL) // MC68EC020RP25
|
M68EC020(config.replace(), m_maincpu, 20_MHz_XTAL); // MC68EC020RP25
|
||||||
MCFG_DEVICE_PROGRAM_MAP(fdes2325_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &fidel68k_state::fdes2325_map);
|
||||||
|
|
||||||
config.set_default_layout(layout_fidel_desdis_68kg);
|
config.set_default_layout(layout_fidel_desdis_68kg);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(fidel68k_state::eag_base)
|
MACHINE_CONFIG_START(fidel68k_state::eag_base)
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("maincpu", M68000, 16_MHz_XTAL)
|
M68000(config, m_maincpu, 16_MHz_XTAL);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(eag_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &fidel68k_state::eag_map);
|
||||||
|
|
||||||
const attotime irq_period = attotime::from_hz(4.9152_MHz_XTAL/0x2000); // 600Hz
|
const attotime irq_period = attotime::from_hz(4.9152_MHz_XTAL/0x2000); // 600Hz
|
||||||
TIMER(config, m_irq_on).configure_periodic(FUNC(fidel68k_state::irq_on<M68K_IRQ_2>), irq_period);
|
TIMER(config, m_irq_on).configure_periodic(FUNC(fidel68k_state::irq_on<M68K_IRQ_2>), irq_period);
|
||||||
@ -657,7 +657,7 @@ MACHINE_CONFIG_START(fidel68k_state::eag_base)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25)
|
DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -675,51 +675,56 @@ void fidel68k_state::eag(machine_config &config)
|
|||||||
RAM(config, m_ram).set_default_size("1M").set_extra_options("128K, 512K, 1M");
|
RAM(config, m_ram).set_default_size("1M").set_extra_options("128K, 512K, 1M");
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(fidel68k_state::eagv5)
|
void fidel68k_state::eagv5(machine_config &config)
|
||||||
|
{
|
||||||
eag(config);
|
eag(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_ram->set_default_size("128K");
|
m_ram->set_default_size("128K");
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("subcpu", M68000, 16_MHz_XTAL)
|
m68000_device &subcpu(M68000(config, "subcpu", 16_MHz_XTAL));
|
||||||
MCFG_DEVICE_PROGRAM_MAP(eagv5_slave_map)
|
subcpu.set_addrmap(AS_PROGRAM, &fidel68k_state::eagv5_slave_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(fidel68k_state::eagv7)
|
void fidel68k_state::eagv7(machine_config &config)
|
||||||
|
{
|
||||||
eag_base(config);
|
eag_base(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_REPLACE("maincpu", M68020, 20_MHz_XTAL)
|
M68020(config.replace(), m_maincpu, 20_MHz_XTAL);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(eagv7_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &fidel68k_state::eagv7_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(fidel68k_state::eagv9)
|
void fidel68k_state::eagv9(machine_config &config)
|
||||||
|
{
|
||||||
eagv7(config);
|
eagv7(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_REPLACE("maincpu", M68030, 32_MHz_XTAL)
|
M68030(config.replace(), m_maincpu, 32_MHz_XTAL);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(eagv7_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &fidel68k_state::eagv7_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(fidel68k_state::eagv10)
|
void fidel68k_state::eagv10(machine_config &config)
|
||||||
|
{
|
||||||
eagv7(config);
|
eagv7(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_REPLACE("maincpu", M68040, 25_MHz_XTAL)
|
M68040(config.replace(), m_maincpu, 25_MHz_XTAL);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(eagv11_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &fidel68k_state::eagv11_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(fidel68k_state::eagv11)
|
void fidel68k_state::eagv11(machine_config &config)
|
||||||
|
{
|
||||||
eagv7(config);
|
eagv7(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_REPLACE("maincpu", M68EC040, 36_MHz_XTAL*2*2) // wrong! should be M68EC060 @ 72MHz
|
M68EC040(config.replace(), m_maincpu, 36_MHz_XTAL*2*2); // wrong! should be M68EC060 @ 72MHz
|
||||||
MCFG_DEVICE_PROGRAM_MAP(eagv11_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &fidel68k_state::eagv11_map);
|
||||||
|
m_maincpu->set_periodic_int(FUNC(fidel68k_state::irq2_line_hold), attotime::from_hz(600));
|
||||||
|
|
||||||
MCFG_DEVICE_PERIODIC_INT_DRIVER(fidel68k_state, irq2_line_hold, 600)
|
|
||||||
config.device_remove("irq_on"); // 8.25us is too long
|
config.device_remove("irq_on"); // 8.25us is too long
|
||||||
config.device_remove("irq_off");
|
config.device_remove("irq_off");
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -298,7 +298,7 @@ MACHINE_CONFIG_START(finalizr_state::finalizr)
|
|||||||
MCFG_DEVICE_ADD("snsnd", SN76489A, XTAL(18'432'000)/12)
|
MCFG_DEVICE_ADD("snsnd", SN76489A, XTAL(18'432'000)/12)
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.75)
|
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.75)
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.325) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.325); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -6348,23 +6348,24 @@ void galaxian_state::mshuttle(machine_config &config)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(galaxian_state::kingball)
|
void galaxian_state::kingball(machine_config &config)
|
||||||
|
{
|
||||||
mooncrst(config);
|
mooncrst(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("audiocpu", Z80,5000000/2)
|
Z80(config, m_audiocpu, 5000000/2);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(kingball_sound_map)
|
m_audiocpu->set_addrmap(AS_PROGRAM, &galaxian_state::kingball_sound_map);
|
||||||
MCFG_DEVICE_IO_MAP(kingball_sound_portmap)
|
m_audiocpu->set_addrmap(AS_IO, &galaxian_state::kingball_sound_portmap);
|
||||||
|
|
||||||
GENERIC_LATCH_8(config, m_soundlatch);
|
GENERIC_LATCH_8(config, m_soundlatch);
|
||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
MCFG_DEVICE_ADD("dac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.53) // unknown DAC
|
DAC_4BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.53); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
void galaxian_state::frogger(machine_config &config)
|
void galaxian_state::frogger(machine_config &config)
|
||||||
@ -6559,7 +6560,8 @@ MACHINE_CONFIG_START(galaxian_state::scorpion)
|
|||||||
MACHINE_CONFIG_END
|
MACHINE_CONFIG_END
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(galaxian_state::sfx)
|
void galaxian_state::sfx(machine_config &config)
|
||||||
|
{
|
||||||
scramble_base(config);
|
scramble_base(config);
|
||||||
|
|
||||||
config.device_remove("watchdog");
|
config.device_remove("watchdog");
|
||||||
@ -6568,9 +6570,9 @@ MACHINE_CONFIG_START(galaxian_state::sfx)
|
|||||||
m_maincpu->set_addrmap(AS_PROGRAM, &galaxian_state::sfx_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &galaxian_state::sfx_map);
|
||||||
|
|
||||||
/* 3rd CPU for the sample player */
|
/* 3rd CPU for the sample player */
|
||||||
MCFG_DEVICE_ADD("audio2", Z80, KONAMI_SOUND_CLOCK/8)
|
Z80(config, m_audio2, KONAMI_SOUND_CLOCK/8);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(sfx_sample_map)
|
m_audio2->set_addrmap(AS_PROGRAM, &galaxian_state::sfx_sample_map);
|
||||||
MCFG_DEVICE_IO_MAP(sfx_sample_portmap)
|
m_audio2->set_addrmap(AS_IO, &galaxian_state::sfx_sample_portmap);
|
||||||
|
|
||||||
I8255A(config, m_ppi8255[2]);
|
I8255A(config, m_ppi8255[2]);
|
||||||
m_ppi8255[2]->in_pa_callback().set("soundlatch2", FUNC(generic_latch_8_device::read));
|
m_ppi8255[2]->in_pa_callback().set("soundlatch2", FUNC(generic_latch_8_device::read));
|
||||||
@ -6582,12 +6584,12 @@ MACHINE_CONFIG_START(galaxian_state::sfx)
|
|||||||
m_ay8910[1]->port_b_write_callback().set(FUNC(galaxian_state::sfx_sample_control_w));
|
m_ay8910[1]->port_b_write_callback().set(FUNC(galaxian_state::sfx_sample_control_w));
|
||||||
|
|
||||||
/* DAC for the sample player */
|
/* DAC for the sample player */
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // 16-pin IC (not identified by schematics)
|
DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // 16-pin IC (not identified by schematics)
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
void galaxian_state::monsterz(machine_config &config)
|
void galaxian_state::monsterz(machine_config &config)
|
||||||
|
@ -164,19 +164,20 @@ static INPUT_PORTS_START( galeb )
|
|||||||
INPUT_PORTS_END
|
INPUT_PORTS_END
|
||||||
|
|
||||||
/* Machine driver */
|
/* Machine driver */
|
||||||
MACHINE_CONFIG_START(galeb_state::galeb)
|
void galeb_state::galeb(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("maincpu", M6502, 1000000)
|
M6502(config, m_maincpu, 1000000);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(galeb_mem)
|
m_maincpu->set_addrmap(AS_PROGRAM, &galeb_state::galeb_mem);
|
||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
MCFG_SCREEN_ADD("screen", RASTER)
|
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
|
||||||
MCFG_SCREEN_REFRESH_RATE(50)
|
screen.set_refresh_hz(50);
|
||||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
|
screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500)); /* not accurate */
|
||||||
MCFG_SCREEN_SIZE(48*8, 16*8)
|
screen.set_size(48*8, 16*8);
|
||||||
MCFG_SCREEN_VISIBLE_AREA(0, 48*8-1, 0, 16*8-1)
|
screen.set_visarea(0, 48*8-1, 0, 16*8-1);
|
||||||
MCFG_SCREEN_UPDATE_DRIVER(galeb_state, screen_update_galeb)
|
screen.set_screen_update(FUNC(galeb_state::screen_update_galeb));
|
||||||
MCFG_SCREEN_PALETTE(m_palette)
|
screen.set_palette(m_palette);
|
||||||
|
|
||||||
GFXDECODE(config, m_gfxdecode, m_palette, gfx_galeb);
|
GFXDECODE(config, m_gfxdecode, m_palette, gfx_galeb);
|
||||||
|
|
||||||
@ -185,11 +186,11 @@ MACHINE_CONFIG_START(galeb_state::galeb)
|
|||||||
|
|
||||||
/* audio hardware */
|
/* audio hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.0625) // unknown DAC
|
DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.0625); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
/* ROM definition */
|
/* ROM definition */
|
||||||
ROM_START( galeb )
|
ROM_START( galeb )
|
||||||
|
@ -470,8 +470,8 @@ MACHINE_CONFIG_START(galivan_state::galivan)
|
|||||||
MCFG_DEVICE_ADD("ymsnd", YM3526, XTAL(8'000'000)/2)
|
MCFG_DEVICE_ADD("ymsnd", YM3526, XTAL(8'000'000)/2)
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0)
|
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0)
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
@ -529,8 +529,8 @@ MACHINE_CONFIG_START(galivan_state::ninjemak)
|
|||||||
MCFG_DEVICE_ADD("ymsnd", YM3526, XTAL(8'000'000)/2)
|
MCFG_DEVICE_ADD("ymsnd", YM3526, XTAL(8'000'000)/2)
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0)
|
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0)
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
@ -282,9 +282,9 @@ MACHINE_CONFIG_START(gamecom_state::gamecom)
|
|||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
/* TODO: much more complex than this */
|
/* TODO: much more complex than this */
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC (Digital audio)
|
DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC (Digital audio)
|
||||||
MCFG_DEVICE_ADD("dac0", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.05) // unknown DAC (Frequency modulation)
|
DAC_4BIT_R2R(config, m_dac0, 0).add_route(ALL_OUTPUTS, "speaker", 0.05); // unknown DAC (Frequency modulation)
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.05) // unknown DAC (Frequency modulation)
|
DAC_4BIT_R2R(config, m_dac1, 0).add_route(ALL_OUTPUTS, "speaker", 0.05); // unknown DAC (Frequency modulation)
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
@ -1430,10 +1430,10 @@ static void gba_cart(device_slot_interface &device)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(gba_state::gbadv)
|
void gba_state::gbadv(machine_config &config)
|
||||||
|
{
|
||||||
MCFG_DEVICE_ADD("maincpu", ARM7, XTAL(16'777'216))
|
ARM7(config, m_maincpu, XTAL(16'777'216));
|
||||||
MCFG_DEVICE_PROGRAM_MAP(gba_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &gba_state::gba_map);
|
||||||
|
|
||||||
gba_lcd_device &lcd(GBA_LCD(config, "lcd", 0));
|
gba_lcd_device &lcd(GBA_LCD(config, "lcd", 0));
|
||||||
lcd.int_hblank_callback().set(FUNC(gba_state::int_hblank_callback));
|
lcd.int_hblank_callback().set(FUNC(gba_state::int_hblank_callback));
|
||||||
@ -1444,14 +1444,14 @@ MACHINE_CONFIG_START(gba_state::gbadv)
|
|||||||
|
|
||||||
SPEAKER(config, "lspeaker").front_left();
|
SPEAKER(config, "lspeaker").front_left();
|
||||||
SPEAKER(config, "rspeaker").front_right();
|
SPEAKER(config, "rspeaker").front_right();
|
||||||
MCFG_DEVICE_ADD("custom", CGB04_APU, XTAL(16'777'216)/4)
|
CGB04_APU(config, m_gbsound, XTAL(16'777'216)/4);
|
||||||
MCFG_SOUND_ROUTE(0, "lspeaker", 0.5)
|
m_gbsound->add_route(0, "lspeaker", 0.5);
|
||||||
MCFG_SOUND_ROUTE(1, "rspeaker", 0.5)
|
m_gbsound->add_route(1, "rspeaker", 0.5);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("ldaca", DAC_8BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.5) // unknown DAC
|
DAC_8BIT_R2R_TWOS_COMPLEMENT(config, m_ldaca, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("rdaca", DAC_8BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.5) // unknown DAC
|
DAC_8BIT_R2R_TWOS_COMPLEMENT(config, m_rdaca, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("ldacb", DAC_8BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.5) // unknown DAC
|
DAC_8BIT_R2R_TWOS_COMPLEMENT(config, m_ldacb, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("rdacb", DAC_8BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.5) // unknown DAC
|
DAC_8BIT_R2R_TWOS_COMPLEMENT(config, m_rdacb, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "ldaca", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldaca", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "ldaca", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldaca", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
@ -1461,7 +1461,7 @@ MACHINE_CONFIG_START(gba_state::gbadv)
|
|||||||
|
|
||||||
GBA_CART_SLOT(config, m_cart, gba_cart, nullptr);
|
GBA_CART_SLOT(config, m_cart, gba_cart, nullptr);
|
||||||
SOFTWARE_LIST(config, "cart_list").set_original("gba");
|
SOFTWARE_LIST(config, "cart_list").set_original("gba");
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
ROM_START( gba )
|
ROM_START( gba )
|
||||||
|
@ -1010,7 +1010,7 @@ MACHINE_CONFIG_START(gei_state::getrivia)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99)
|
DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.99);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -371,7 +371,7 @@ MACHINE_CONFIG_START(go2000_state::go2000)
|
|||||||
GENERIC_LATCH_8(config, m_soundlatch);
|
GENERIC_LATCH_8(config, m_soundlatch);
|
||||||
|
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(0, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(0, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -1688,8 +1688,8 @@ MACHINE_CONFIG_START(gp32_state::gp32)
|
|||||||
|
|
||||||
SPEAKER(config, "lspeaker").front_left();
|
SPEAKER(config, "lspeaker").front_left();
|
||||||
SPEAKER(config, "rspeaker").front_right();
|
SPEAKER(config, "rspeaker").front_right();
|
||||||
MCFG_DEVICE_ADD("ldac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) // unknown DAC
|
DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 1.0); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("rdac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) // unknown DAC
|
DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 1.0); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
@ -472,13 +472,14 @@ WRITE_LINE_MEMBER( hankin_state::ic2_cb2_w )
|
|||||||
m_ic2_cb2 = state;
|
m_ic2_cb2 = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(hankin_state::hankin)
|
void hankin_state::hankin(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("maincpu", M6802, 3276800)
|
M6802(config, m_maincpu, 3276800);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(hankin_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &hankin_state::hankin_map);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("audiocpu", M6802, 3276800) // guess, xtal value not shown
|
M6802(config, m_audiocpu, 3276800); // guess, xtal value not shown
|
||||||
MCFG_DEVICE_PROGRAM_MAP(hankin_sub_map)
|
m_audiocpu->set_addrmap(AS_PROGRAM, &hankin_state::hankin_sub_map);
|
||||||
|
|
||||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||||
|
|
||||||
@ -489,7 +490,7 @@ MACHINE_CONFIG_START(hankin_state::hankin)
|
|||||||
genpin_audio(config);
|
genpin_audio(config);
|
||||||
|
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC
|
DAC_4BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -528,7 +529,7 @@ MACHINE_CONFIG_START(hankin_state::hankin)
|
|||||||
|
|
||||||
TIMER(config, "timer_x").configure_periodic(FUNC(hankin_state::timer_x), attotime::from_hz(120)); // mains freq*2
|
TIMER(config, "timer_x").configure_periodic(FUNC(hankin_state::timer_x), attotime::from_hz(120)); // mains freq*2
|
||||||
TIMER(config, "timer_s").configure_periodic(FUNC(hankin_state::timer_s), attotime::from_hz(94000)); // 555 on sound board*2
|
TIMER(config, "timer_s").configure_periodic(FUNC(hankin_state::timer_s), attotime::from_hz(94000)); // 555 on sound board*2
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
/*--------------------------------
|
/*--------------------------------
|
||||||
/ FJ Holden
|
/ FJ Holden
|
||||||
|
@ -257,8 +257,8 @@ MACHINE_CONFIG_START(hapyfish_state::hapyfish)
|
|||||||
|
|
||||||
SPEAKER(config, "lspeaker").front_left();
|
SPEAKER(config, "lspeaker").front_left();
|
||||||
SPEAKER(config, "rspeaker").front_right();
|
SPEAKER(config, "rspeaker").front_right();
|
||||||
MCFG_DEVICE_ADD("ldac", UDA1341TS, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) // uda1341ts.u12
|
UDA1341TS(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 1.0); // uda1341ts.u12
|
||||||
MCFG_DEVICE_ADD("rdac", UDA1341TS, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) // uda1341ts.u12
|
UDA1341TS(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 1.0); // uda1341ts.u12
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
@ -772,7 +772,7 @@ MACHINE_CONFIG_START(homelab_state::homelab)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -806,7 +806,7 @@ MACHINE_CONFIG_START(homelab_state::homelab3)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -840,7 +840,7 @@ MACHINE_CONFIG_START(homelab_state::brailab4)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -1355,13 +1355,11 @@ MACHINE_CONFIG_START(hp85_state::hp85)
|
|||||||
|
|
||||||
// Beeper
|
// Beeper
|
||||||
SPEAKER(config, "mono").front_center();
|
SPEAKER(config, "mono").front_center();
|
||||||
MCFG_DEVICE_ADD("dac" , DAC_1BIT , 0)
|
DAC_1BIT(config, m_dac , 0).add_route(ALL_OUTPUTS, "mono", 0.5, AUTO_ALLOC_INPUT, 0);
|
||||||
MCFG_MIXER_ROUTE(ALL_OUTPUTS , "mono" , 0.5 , 0)
|
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
MCFG_DEVICE_ADD("beeper" , BEEP , MASTER_CLOCK / 8192)
|
BEEP(config, m_beep, MASTER_CLOCK / 8192).add_route(ALL_OUTPUTS, "mono", 0.5, AUTO_ALLOC_INPUT, 0);
|
||||||
MCFG_MIXER_ROUTE(ALL_OUTPUTS , "mono" , 0.5 , 0)
|
|
||||||
|
|
||||||
// Tape drive
|
// Tape drive
|
||||||
MCFG_DEVICE_ADD("tape" , HP_1MA6 , 0)
|
MCFG_DEVICE_ADD("tape" , HP_1MA6 , 0)
|
||||||
|
@ -254,7 +254,7 @@ MACHINE_CONFIG_START(hyhoo_state::hyhoo)
|
|||||||
aysnd.port_b_read_callback().set_ioport("DSWB");
|
aysnd.port_b_read_callback().set_ioport("DSWB");
|
||||||
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.35);
|
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.35);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -126,26 +126,27 @@ void instantm_state::machine_reset()
|
|||||||
|
|
||||||
// OSC1 = XTAL(3'579'545)
|
// OSC1 = XTAL(3'579'545)
|
||||||
|
|
||||||
MACHINE_CONFIG_START(instantm_state::instantm)
|
void instantm_state::instantm(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("maincpu", Z80, XTAL(3'579'545))
|
Z80(config, m_maincpu, XTAL(3'579'545));
|
||||||
MCFG_DEVICE_PROGRAM_MAP(main_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &instantm_state::main_map);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("subcpu", Z80, XTAL(3'579'545))
|
z80_device &subcpu(Z80(config, "subcpu", XTAL(3'579'545)));
|
||||||
MCFG_DEVICE_PROGRAM_MAP(sub_map)
|
subcpu.set_addrmap(AS_PROGRAM, &instantm_state::sub_map);
|
||||||
MCFG_DEVICE_IO_MAP(sub_io)
|
subcpu.set_addrmap(AS_IO, &instantm_state::sub_io);
|
||||||
|
|
||||||
// all guesswork
|
// all guesswork
|
||||||
clock_device &voice_clock(CLOCK(config, "voice_clock", 24000));
|
clock_device &voice_clock(CLOCK(config, "voice_clock", 24000));
|
||||||
voice_clock.signal_handler().set(FUNC(instantm_state::clock_w));
|
voice_clock.signal_handler().set(FUNC(instantm_state::clock_w));
|
||||||
|
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -323,7 +323,7 @@ MACHINE_CONFIG_START(juicebox_state::juicebox)
|
|||||||
MCFG_SCREEN_UPDATE_DEVICE("s3c44b0", s3c44b0_device, video_update)
|
MCFG_SCREEN_UPDATE_DEVICE("s3c44b0", s3c44b0_device, video_update)
|
||||||
|
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0) // unknown DAC
|
DAC_16BIT_R2R_TWOS_COMPLEMENT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 1.0); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -511,7 +511,7 @@ MACHINE_CONFIG_START(kingofb_state::kingofb)
|
|||||||
aysnd.port_a_read_callback().set(m_soundlatch, FUNC(generic_latch_8_device::read));
|
aysnd.port_a_read_callback().set(m_soundlatch, FUNC(generic_latch_8_device::read));
|
||||||
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.25);
|
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.125) // 100K (R30-44 even)/200K (R31-45 odd) ladder network
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.125); // 100K (R30-44 even)/200K (R31-45 odd) ladder network
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -569,7 +569,7 @@ MACHINE_CONFIG_START(kingofb_state::ringking)
|
|||||||
aysnd.port_a_read_callback().set(m_soundlatch, FUNC(generic_latch_8_device::read));
|
aysnd.port_a_read_callback().set(m_soundlatch, FUNC(generic_latch_8_device::read));
|
||||||
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.25);
|
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.125) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.125); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -299,7 +299,7 @@ MACHINE_CONFIG_START(ksayakyu_state::ksayakyu)
|
|||||||
ay2.port_b_write_callback().set(FUNC(ksayakyu_state::dummy3_w));
|
ay2.port_b_write_callback().set(FUNC(ksayakyu_state::dummy3_w));
|
||||||
ay2.add_route(ALL_OUTPUTS, "speaker", 0.25);
|
ay2.add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_6BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_6BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -368,11 +368,11 @@ INPUT_PORTS_END
|
|||||||
#define CLOCK 16680000
|
#define CLOCK 16680000
|
||||||
#define PIT_CLOCK (CLOCK/16) // 12 divider ?
|
#define PIT_CLOCK (CLOCK/16) // 12 divider ?
|
||||||
|
|
||||||
MACHINE_CONFIG_START(laserbas_state::laserbas)
|
void laserbas_state::laserbas(machine_config &config)
|
||||||
|
{
|
||||||
MCFG_DEVICE_ADD("maincpu", Z80, CLOCK / 4)
|
Z80(config, m_maincpu, CLOCK / 4);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(laserbas_memory)
|
m_maincpu->set_addrmap(AS_PROGRAM, &laserbas_state::laserbas_memory);
|
||||||
MCFG_DEVICE_IO_MAP(laserbas_io)
|
m_maincpu->set_addrmap(AS_IO, &laserbas_state::laserbas_io);
|
||||||
TIMER(config, "scantimer").configure_scanline(FUNC(laserbas_state::laserbas_scanline), "screen", 0, 1);
|
TIMER(config, "scantimer").configure_scanline(FUNC(laserbas_state::laserbas_scanline), "screen", 0, 1);
|
||||||
|
|
||||||
/* TODO: clocks aren't known */
|
/* TODO: clocks aren't known */
|
||||||
@ -392,9 +392,9 @@ MACHINE_CONFIG_START(laserbas_state::laserbas)
|
|||||||
pit1.out_handler<1>().set(FUNC(laserbas_state::pit_out_w<4>));
|
pit1.out_handler<1>().set(FUNC(laserbas_state::pit_out_w<4>));
|
||||||
pit1.out_handler<2>().set(FUNC(laserbas_state::pit_out_w<5>));
|
pit1.out_handler<2>().set(FUNC(laserbas_state::pit_out_w<5>));
|
||||||
|
|
||||||
MCFG_SCREEN_ADD("screen", RASTER)
|
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
|
||||||
MCFG_SCREEN_RAW_PARAMS(4000000, 256, 0, 256, 256, 0, 256) /* temporary, CRTC will configure screen */
|
screen.set_raw(4000000, 256, 0, 256, 256, 0, 256); /* temporary, CRTC will configure screen */
|
||||||
MCFG_SCREEN_UPDATE_DEVICE("crtc", mc6845_device, screen_update)
|
screen.set_screen_update("crtc", FUNC(mc6845_device::screen_update));
|
||||||
|
|
||||||
h46505_device &crtc(H46505(config, "crtc", 3000000/4)); /* unknown clock, hand tuned to get ~60 fps */
|
h46505_device &crtc(H46505(config, "crtc", 3000000/4)); /* unknown clock, hand tuned to get ~60 fps */
|
||||||
crtc.set_screen("screen");
|
crtc.set_screen("screen");
|
||||||
@ -406,12 +406,12 @@ MACHINE_CONFIG_START(laserbas_state::laserbas)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD(m_dac[0], DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.16)
|
DAC_4BIT_R2R(config, m_dac[0], 0).add_route(ALL_OUTPUTS, "speaker", 0.16);
|
||||||
MCFG_DEVICE_ADD(m_dac[1], DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.16)
|
DAC_4BIT_R2R(config, m_dac[1], 0).add_route(ALL_OUTPUTS, "speaker", 0.16);
|
||||||
MCFG_DEVICE_ADD(m_dac[2], DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.16)
|
DAC_4BIT_R2R(config, m_dac[2], 0).add_route(ALL_OUTPUTS, "speaker", 0.16);
|
||||||
MCFG_DEVICE_ADD(m_dac[3], DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.16)
|
DAC_4BIT_R2R(config, m_dac[3], 0).add_route(ALL_OUTPUTS, "speaker", 0.16);
|
||||||
MCFG_DEVICE_ADD(m_dac[4], DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.16)
|
DAC_4BIT_R2R(config, m_dac[4], 0).add_route(ALL_OUTPUTS, "speaker", 0.16);
|
||||||
MCFG_DEVICE_ADD(m_dac[5], DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.16)
|
DAC_4BIT_R2R(config, m_dac[5], 0).add_route(ALL_OUTPUTS, "speaker", 0.16);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
@ -420,8 +420,7 @@ MACHINE_CONFIG_START(laserbas_state::laserbas)
|
|||||||
vref.add_route(0, "dac4", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac4", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac4", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac4", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
vref.add_route(0, "dac5", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac5", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac5", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac5", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
vref.add_route(0, "dac6", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac6", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac6", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac6", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Amstar LaserBase 1981 (Hoei)
|
Amstar LaserBase 1981 (Hoei)
|
||||||
|
@ -573,7 +573,7 @@ MACHINE_CONFIG_START(lasso_state::wwjgtin)
|
|||||||
MCFG_VIDEO_START_OVERRIDE(lasso_state,wwjgtin)
|
MCFG_VIDEO_START_OVERRIDE(lasso_state,wwjgtin)
|
||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -652,10 +652,10 @@ MACHINE_CONFIG_START(lazercmd_state::lazercmd)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac0", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99)
|
DAC_1BIT(config, m_dac0, 0).add_route(ALL_OUTPUTS, "speaker", 0.99);
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99)
|
DAC_1BIT(config, m_dac1, 0).add_route(ALL_OUTPUTS, "speaker", 0.99);
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99)
|
DAC_1BIT(config, m_dac2, 0).add_route(ALL_OUTPUTS, "speaker", 0.99);
|
||||||
MCFG_DEVICE_ADD("dac3", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99)
|
DAC_1BIT(config, m_dac3, 0).add_route(ALL_OUTPUTS, "speaker", 0.99);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac0", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac0", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -691,8 +691,8 @@ MACHINE_CONFIG_START(lazercmd_state::medlanes)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99)
|
DAC_1BIT(config, m_dac2, 0).add_route(ALL_OUTPUTS, "speaker", 0.99);
|
||||||
MCFG_DEVICE_ADD("dac3", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99)
|
DAC_1BIT(config, m_dac3, 0).add_route(ALL_OUTPUTS, "speaker", 0.99);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -726,8 +726,8 @@ MACHINE_CONFIG_START(lazercmd_state::bbonk)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99)
|
DAC_1BIT(config, m_dac2, 0).add_route(ALL_OUTPUTS, "speaker", 0.99);
|
||||||
MCFG_DEVICE_ADD("dac3", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.99)
|
DAC_1BIT(config, m_dac3, 0).add_route(ALL_OUTPUTS, "speaker", 0.99);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -1013,8 +1013,8 @@ MACHINE_CONFIG_START(leland_state::leland)
|
|||||||
// m_ay8912->port_a_write_callback().set(FUNC(leland_state::leland_sound_port_w));
|
// m_ay8912->port_a_write_callback().set(FUNC(leland_state::leland_sound_port_w));
|
||||||
// m_ay8912->add_route(ALL_OUTPUTS, "speaker", 0.25);
|
// m_ay8912->add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD(m_dac[0], DAC_8BIT_BINARY_WEIGHTED, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.0625) // ls374.u79 + r17-r23 (24k,12k,6.2k,3k,1.5k,750,390,180)
|
DAC_8BIT_BINARY_WEIGHTED(config, m_dac[0], 0).add_route(ALL_OUTPUTS, "speaker", 0.0625); // ls374.u79 + r17-r23 (24k,12k,6.2k,3k,1.5k,750,390,180)
|
||||||
MCFG_DEVICE_ADD(m_dac[1], DAC_8BIT_BINARY_WEIGHTED, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.0625) // ls374.u88 + r27-r34 (24k,12k,6.2k,3k,1.5k,750,390,180)
|
DAC_8BIT_BINARY_WEIGHTED(config, m_dac[1], 0).add_route(ALL_OUTPUTS, "speaker", 0.0625); // ls374.u88 + r27-r34 (24k,12k,6.2k,3k,1.5k,750,390,180)
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac0", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac0", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac0", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac0", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
@ -565,12 +565,12 @@ INPUT_PORTS_END
|
|||||||
* Machine Driver *
|
* Machine Driver *
|
||||||
**************************************/
|
**************************************/
|
||||||
|
|
||||||
MACHINE_CONFIG_START(luckybal_state::luckybal)
|
void luckybal_state::luckybal(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("maincpu", Z180, CPU_CLOCK / 2)
|
Z180(config, m_maincpu, CPU_CLOCK / 2);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(main_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &luckybal_state::main_map);
|
||||||
MCFG_DEVICE_IO_MAP(main_io)
|
m_maincpu->set_addrmap(AS_IO, &luckybal_state::main_io);
|
||||||
|
|
||||||
I8255A(config, m_ppi);
|
I8255A(config, m_ppi);
|
||||||
m_ppi->out_pa_callback().set(FUNC(luckybal_state::output_port_a_w));
|
m_ppi->out_pa_callback().set(FUNC(luckybal_state::output_port_a_w));
|
||||||
@ -578,11 +578,11 @@ MACHINE_CONFIG_START(luckybal_state::luckybal)
|
|||||||
m_ppi->in_pc_callback().set(FUNC(luckybal_state::input_port_c_r));
|
m_ppi->in_pc_callback().set(FUNC(luckybal_state::input_port_c_r));
|
||||||
m_ppi->out_pc_callback().set(FUNC(luckybal_state::output_port_c_w));
|
m_ppi->out_pc_callback().set(FUNC(luckybal_state::output_port_c_w));
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("latch1", CD4099, 0)
|
CD4099(config, "latch1", 0);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("latch2", CD4099, 0)
|
CD4099(config, "latch2", 0);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("latch3", CD4099, 0)
|
CD4099(config, "latch3", 0);
|
||||||
|
|
||||||
/* nvram */
|
/* nvram */
|
||||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||||
@ -596,13 +596,12 @@ MACHINE_CONFIG_START(luckybal_state::luckybal)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC08, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
DAC08(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
|
|
||||||
/**************************************
|
/**************************************
|
||||||
|
@ -968,7 +968,7 @@ MACHINE_CONFIG_START(magicfly_state::magicfly)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25)
|
DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -344,7 +344,7 @@ MACHINE_CONFIG_START(megazone_state::megazone)
|
|||||||
aysnd.add_route(1, "filter.0.1", 0.30);
|
aysnd.add_route(1, "filter.0.1", 0.30);
|
||||||
aysnd.add_route(2, "filter.0.2", 0.30);
|
aysnd.add_route(2, "filter.0.2", 0.30);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -588,31 +588,30 @@ INPUT_PORTS_END
|
|||||||
*
|
*
|
||||||
*************************************/
|
*************************************/
|
||||||
|
|
||||||
MACHINE_CONFIG_START(meyc8080_state::meyc8080)
|
void meyc8080_state::meyc8080(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("maincpu", I8080A, XTAL(20'000'000) / 10) // divider guessed
|
I8080A(config, m_maincpu, XTAL(20'000'000) / 10); // divider guessed
|
||||||
MCFG_DEVICE_PROGRAM_MAP(meyc8080_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &meyc8080_state::meyc8080_map);
|
||||||
|
|
||||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
MCFG_SCREEN_ADD("screen", RASTER)
|
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
|
||||||
MCFG_SCREEN_SIZE(256, 256)
|
screen.set_size(256, 256);
|
||||||
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 32*8-1)
|
screen.set_visarea(0*8, 32*8-1, 4*8, 32*8-1);
|
||||||
MCFG_SCREEN_REFRESH_RATE(60)
|
screen.set_refresh_hz(60);
|
||||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
|
screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500) /* not accurate */);
|
||||||
MCFG_SCREEN_UPDATE_DRIVER(meyc8080_state, screen_update_meyc8080)
|
screen.set_screen_update(FUNC(meyc8080_state::screen_update_meyc8080));
|
||||||
|
|
||||||
/* audio hardware */
|
/* audio hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_2BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.66) // unknown DAC
|
DAC_2BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.66); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -364,11 +364,11 @@ INPUT_PORTS_END
|
|||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
MACHINE_CONFIG_START(meyc8088_state::meyc8088)
|
void meyc8088_state::meyc8088(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD(m_maincpu, I8088, (XTAL(15'000'000) / 3) * 0.95) // NOTE: underclocked to prevent errors on diagnostics, MAME i8088 cycle timing is probably inaccurate
|
I8088(config, m_maincpu, (XTAL(15'000'000) / 3) * 0.95); // NOTE: underclocked to prevent errors on diagnostics, MAME i8088 cycle timing is probably inaccurate
|
||||||
MCFG_DEVICE_PROGRAM_MAP(meyc8088_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &meyc8088_state::meyc8088_map);
|
||||||
|
|
||||||
i8155_device &i8155_1(I8155(config, "i8155_1", XTAL(15'000'000) / (3*1)));
|
i8155_device &i8155_1(I8155(config, "i8155_1", XTAL(15'000'000) / (3*1)));
|
||||||
// all ports set to input
|
// all ports set to input
|
||||||
@ -389,22 +389,22 @@ MACHINE_CONFIG_START(meyc8088_state::meyc8088)
|
|||||||
TIMER(config, m_heartbeat).configure_generic(FUNC(meyc8088_state::heartbeat_callback));
|
TIMER(config, m_heartbeat).configure_generic(FUNC(meyc8088_state::heartbeat_callback));
|
||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
MCFG_SCREEN_ADD("screen", RASTER)
|
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
|
||||||
MCFG_SCREEN_RAW_PARAMS(XTAL(15'000'000)/3, 320, 0, 256, 261, 0, 224)
|
screen.set_raw(XTAL(15'000'000)/3, 320, 0, 256, 261, 0, 224);
|
||||||
MCFG_SCREEN_UPDATE_DRIVER(meyc8088_state, screen_update)
|
screen.set_screen_update(FUNC(meyc8088_state::screen_update));
|
||||||
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, meyc8088_state, screen_vblank))
|
screen.screen_vblank().set(FUNC(meyc8088_state::screen_vblank));
|
||||||
MCFG_SCREEN_PALETTE("palette")
|
screen.set_palette("palette");
|
||||||
|
|
||||||
PALETTE(config, "palette", FUNC(meyc8088_state::meyc8088_palette), 32);
|
PALETTE(config, "palette", FUNC(meyc8088_state::meyc8088_palette), 32);
|
||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25)
|
DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
ROM_START( gldarrow )
|
ROM_START( gldarrow )
|
||||||
|
@ -662,7 +662,7 @@ MACHINE_CONFIG_START(microvision_state::microvision)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_2BIT_BINARY_WEIGHTED_ONES_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_2BIT_BINARY_WEIGHTED_ONES_COMPLEMENT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -165,11 +165,12 @@ static GFXDECODE_START( gfx_mikro80 )
|
|||||||
GFXDECODE_ENTRY( "gfx1", 0x0000, mikro80_charlayout, 0, 1 )
|
GFXDECODE_ENTRY( "gfx1", 0x0000, mikro80_charlayout, 0, 1 )
|
||||||
GFXDECODE_END
|
GFXDECODE_END
|
||||||
|
|
||||||
MACHINE_CONFIG_START(mikro80_state::mikro80)
|
void mikro80_state::mikro80(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("maincpu",I8080, 2000000)
|
I8080(config, m_maincpu, 2000000);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(mikro80_mem)
|
m_maincpu->set_addrmap(AS_PROGRAM, &mikro80_state::mikro80_mem);
|
||||||
MCFG_DEVICE_IO_MAP(mikro80_io)
|
m_maincpu->set_addrmap(AS_IO, &mikro80_state::mikro80_io);
|
||||||
|
|
||||||
I8255(config, m_ppi8255);
|
I8255(config, m_ppi8255);
|
||||||
m_ppi8255->out_pa_callback().set(FUNC(mikro80_state::mikro80_8255_porta_w));
|
m_ppi8255->out_pa_callback().set(FUNC(mikro80_state::mikro80_8255_porta_w));
|
||||||
@ -177,13 +178,13 @@ MACHINE_CONFIG_START(mikro80_state::mikro80)
|
|||||||
m_ppi8255->in_pc_callback().set(FUNC(mikro80_state::mikro80_8255_portc_r));
|
m_ppi8255->in_pc_callback().set(FUNC(mikro80_state::mikro80_8255_portc_r));
|
||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
MCFG_SCREEN_ADD("screen", RASTER)
|
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
|
||||||
MCFG_SCREEN_REFRESH_RATE(50)
|
screen.set_refresh_hz(50);
|
||||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
|
screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500)); /* not accurate */
|
||||||
MCFG_SCREEN_SIZE(64*8, 32*8)
|
screen.set_size(64*8, 32*8);
|
||||||
MCFG_SCREEN_VISIBLE_AREA(0, 64*8-1, 0, 32*8-1)
|
screen.set_visarea(0, 64*8-1, 0, 32*8-1);
|
||||||
MCFG_SCREEN_UPDATE_DRIVER(mikro80_state, screen_update_mikro80)
|
screen.set_screen_update(FUNC(mikro80_state::screen_update_mikro80));
|
||||||
MCFG_SCREEN_PALETTE("palette")
|
screen.set_palette("palette");
|
||||||
|
|
||||||
GFXDECODE(config, "gfxdecode", "palette", gfx_mikro80);
|
GFXDECODE(config, "gfxdecode", "palette", gfx_mikro80);
|
||||||
PALETTE(config, "palette", palette_device::MONOCHROME);
|
PALETTE(config, "palette", palette_device::MONOCHROME);
|
||||||
@ -197,26 +198,26 @@ MACHINE_CONFIG_START(mikro80_state::mikro80)
|
|||||||
m_cassette->set_interface("mikro80_cass");
|
m_cassette->set_interface("mikro80_cass");
|
||||||
|
|
||||||
SOFTWARE_LIST(config, "cass_list").set_original("mikro80");
|
SOFTWARE_LIST(config, "cass_list").set_original("mikro80");
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(mikro80_state::radio99)
|
void mikro80_state::radio99(machine_config &config)
|
||||||
|
{
|
||||||
mikro80(config);
|
mikro80(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_MODIFY("maincpu")
|
m_maincpu->set_addrmap(AS_IO, &mikro80_state::radio99_io);
|
||||||
MCFG_DEVICE_IO_MAP(radio99_io)
|
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.12)
|
DAC_1BIT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.12);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(mikro80_state::kristall)
|
void mikro80_state::kristall(machine_config &config)
|
||||||
|
{
|
||||||
mikro80(config);
|
mikro80(config);
|
||||||
MCFG_DEVICE_MODIFY("maincpu")
|
m_maincpu->set_addrmap(AS_IO, &mikro80_state::kristall_io);
|
||||||
MCFG_DEVICE_IO_MAP(kristall_io)
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
|
|
||||||
/* ROM definition */
|
/* ROM definition */
|
||||||
|
@ -241,8 +241,8 @@ MACHINE_CONFIG_START(mini2440_state::mini2440)
|
|||||||
|
|
||||||
SPEAKER(config, "lspeaker").front_left();
|
SPEAKER(config, "lspeaker").front_left();
|
||||||
SPEAKER(config, "rspeaker").front_right();
|
SPEAKER(config, "rspeaker").front_right();
|
||||||
MCFG_DEVICE_ADD("ldac", UDA1341TS, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) // uda1341ts.u12
|
UDA1341TS(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 1.0); // uda1341ts.u12
|
||||||
MCFG_DEVICE_ADD("rdac", UDA1341TS, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) // uda1341ts.u12
|
UDA1341TS(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 1.0); // uda1341ts.u12
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
@ -536,7 +536,7 @@ MACHINE_CONFIG_START(mjsister_state::mjsister)
|
|||||||
aysnd.port_b_read_callback().set_ioport("DSW2");
|
aysnd.port_b_read_callback().set_ioport("DSW2");
|
||||||
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.15);
|
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.15);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -231,13 +231,13 @@ MACHINE_CONFIG_START(mogura_state::mogura)
|
|||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "lspeaker").front_left();
|
SPEAKER(config, "lspeaker").front_left();
|
||||||
SPEAKER(config, "rspeaker").front_right();
|
SPEAKER(config, "rspeaker").front_right();
|
||||||
MCFG_DEVICE_ADD("ldac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) // unknown DAC
|
DAC_4BIT_R2R(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.25); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("rdac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25) // unknown DAC
|
DAC_4BIT_R2R(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
MACHINE_CONFIG_END
|
MACHINE_CONFIG_END
|
||||||
|
|
||||||
|
|
||||||
ROM_START( mogura )
|
ROM_START( mogura )
|
||||||
|
@ -274,7 +274,7 @@ MACHINE_CONFIG_START(murogem_state::murogem)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.375)
|
DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.375);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -367,7 +367,7 @@ MACHINE_CONFIG_START(murogmbl_state::murogmbl)
|
|||||||
PALETTE(config, m_palette, FUNC(murogmbl_state::murogmbl_palette), 0x100);
|
PALETTE(config, m_palette, FUNC(murogmbl_state::murogmbl_palette), 0x100);
|
||||||
|
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -393,7 +393,7 @@ MACHINE_CONFIG_START(slotunbl_state::slotunbl)
|
|||||||
PALETTE(config, m_palette, FUNC(slotunbl_state::slotunbl_palette), 0x100);
|
PALETTE(config, m_palette, FUNC(slotunbl_state::slotunbl_palette), 0x100);
|
||||||
|
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -2483,7 +2483,7 @@ MACHINE_CONFIG_START(nbmj8688_state::NBMJDRV_4096)
|
|||||||
psg.port_b_read_callback().set(FUNC(nbmj8688_state::dipsw2_r)); // DIPSW-B read
|
psg.port_b_read_callback().set(FUNC(nbmj8688_state::dipsw2_r)); // DIPSW-B read
|
||||||
psg.add_route(ALL_OUTPUTS, "speaker", 0.35);
|
psg.add_route(ALL_OUTPUTS, "speaker", 0.35);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -2674,7 +2674,7 @@ MACHINE_CONFIG_START(nbmj8688_state::mbmj_p16bit_LCD)
|
|||||||
psg.port_b_read_callback().set(FUNC(nbmj8688_state::dipsw2_r)); // DIPSW-B read
|
psg.port_b_read_callback().set(FUNC(nbmj8688_state::dipsw2_r)); // DIPSW-B read
|
||||||
psg.add_route(ALL_OUTPUTS, "speaker", 0.35);
|
psg.add_route(ALL_OUTPUTS, "speaker", 0.35);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -2216,7 +2216,7 @@ MACHINE_CONFIG_START(nbmj8891_state::gionbana)
|
|||||||
|
|
||||||
YM3812(config, "fmsnd", 2500000).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
YM3812(config, "fmsnd", 2500000).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.37) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.37); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -332,7 +332,7 @@ MACHINE_CONFIG_START(nbmj8900_state::ohpaipee)
|
|||||||
MCFG_DEVICE_ADD("ymsnd", YM3812, 2500000)
|
MCFG_DEVICE_ADD("ymsnd", YM3812, 2500000)
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.7)
|
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.7)
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.42) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.42); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -1352,7 +1352,7 @@ MACHINE_CONFIG_START(nbmj8991_state::nbmjdrv1) // galkoku
|
|||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
YM3812(config, "fmsnd", 25000000/10).add_route(ALL_OUTPUTS, "speaker", 0.7);
|
YM3812(config, "fmsnd", 25000000/10).add_route(ALL_OUTPUTS, "speaker", 0.7);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -1394,8 +1394,8 @@ MACHINE_CONFIG_START(nbmj8991_state::nbmjdrv2) // pstadium
|
|||||||
MCFG_DEVICE_ADD("fmsnd", YM3812, 25000000/6.25)
|
MCFG_DEVICE_ADD("fmsnd", YM3812, 25000000/6.25)
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.7)
|
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.7)
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
@ -2507,8 +2507,8 @@ static const z80_daisy_config daisy_chain_sound[] =
|
|||||||
m_maincpu->out_pd_callback().set(FUNC(nbmj9195_state::clutsel_w)); \
|
m_maincpu->out_pd_callback().set(FUNC(nbmj9195_state::clutsel_w)); \
|
||||||
m_maincpu->out_pe_callback().set(FUNC(nbmj9195_state::outcoin_flag_w));
|
m_maincpu->out_pe_callback().set(FUNC(nbmj9195_state::outcoin_flag_w));
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::NBMJDRV1_base)
|
void nbmj9195_state::NBMJDRV1_base(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
TMPZ84C011(config, m_maincpu, 12000000/2); /* TMPZ84C011, 6.00 MHz */
|
TMPZ84C011(config, m_maincpu, 12000000/2); /* TMPZ84C011, 6.00 MHz */
|
||||||
m_maincpu->set_daisy_config(daisy_chain_main);
|
m_maincpu->set_daisy_config(daisy_chain_main);
|
||||||
@ -2543,26 +2543,27 @@ MACHINE_CONFIG_START(nbmj9195_state::NBMJDRV1_base)
|
|||||||
|
|
||||||
GENERIC_LATCH_8(config, m_soundlatch);
|
GENERIC_LATCH_8(config, m_soundlatch);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("ymsnd", YM3812, 4000000)
|
YM3812(config, "ymsnd", 4000000).add_route(ALL_OUTPUTS, "speaker", 0.7);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.7)
|
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac2", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac2", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::NBMJDRV1)
|
void nbmj9195_state::NBMJDRV1(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1_base(config);
|
NBMJDRV1_base(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
OTHERS_TMZ84C011_MAIN_PORTS
|
OTHERS_TMZ84C011_MAIN_PORTS
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::NBMJDRV2)
|
void nbmj9195_state::NBMJDRV2(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1_base(config);
|
NBMJDRV1_base(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
@ -2570,10 +2571,11 @@ MACHINE_CONFIG_START(nbmj9195_state::NBMJDRV2)
|
|||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
MCFG_VIDEO_START_OVERRIDE(nbmj9195_state,_1layer)
|
MCFG_VIDEO_START_OVERRIDE(nbmj9195_state,_1layer)
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::NBMJDRV3)
|
void nbmj9195_state::NBMJDRV3(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1_base(config);
|
NBMJDRV1_base(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
@ -2583,45 +2585,50 @@ MACHINE_CONFIG_START(nbmj9195_state::NBMJDRV3)
|
|||||||
m_palette->set_entries(512);
|
m_palette->set_entries(512);
|
||||||
|
|
||||||
MCFG_VIDEO_START_OVERRIDE(nbmj9195_state,nb22090)
|
MCFG_VIDEO_START_OVERRIDE(nbmj9195_state,nb22090)
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::mjuraden)
|
void nbmj9195_state::mjuraden(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::mjuraden_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::mjuraden_map);
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mjuraden_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mjuraden_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::koinomp)
|
void nbmj9195_state::koinomp(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::koinomp_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::koinomp_map);
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::koinomp_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::koinomp_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::patimono)
|
void nbmj9195_state::patimono(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::patimono_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::patimono_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::janbari)
|
void nbmj9195_state::janbari(machine_config &config)
|
||||||
|
{
|
||||||
patimono(config);
|
patimono(config);
|
||||||
|
|
||||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::mmehyou)
|
void nbmj9195_state::mmehyou(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
@ -2629,205 +2636,227 @@ MACHINE_CONFIG_START(nbmj9195_state::mmehyou)
|
|||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mmehyou_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mmehyou_io_map);
|
||||||
|
|
||||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::ultramhm)
|
void nbmj9195_state::ultramhm(machine_config &config)
|
||||||
|
{
|
||||||
koinomp(config);
|
koinomp(config);
|
||||||
|
|
||||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::gal10ren)
|
void nbmj9195_state::gal10ren(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::gal10ren_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::gal10ren_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::renaiclb)
|
void nbmj9195_state::renaiclb(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::renaiclb_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::renaiclb_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::mjlaman)
|
void nbmj9195_state::mjlaman(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mjlaman_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mjlaman_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::mkeibaou)
|
void nbmj9195_state::mkeibaou(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mkeibaou_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mkeibaou_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::pachiten)
|
void nbmj9195_state::pachiten(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::pachiten_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::pachiten_io_map);
|
||||||
|
|
||||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::sailorws)
|
void nbmj9195_state::sailorws(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::sailorwr)
|
void nbmj9195_state::sailorwr(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::sailorwr_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::sailorwr_io_map);
|
||||||
|
|
||||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::psailor1)
|
void nbmj9195_state::psailor1(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::psailor1_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::psailor1_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::psailor2)
|
void nbmj9195_state::psailor2(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::psailor2_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::psailor2_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::otatidai)
|
void nbmj9195_state::otatidai(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::otatidai_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::otatidai_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::yosimoto)
|
void nbmj9195_state::yosimoto(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::yosimoto_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::yosimoto_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::yosimotm)
|
void nbmj9195_state::yosimotm(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::yosimotm_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::yosimotm_io_map);
|
||||||
|
|
||||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::jituroku)
|
void nbmj9195_state::jituroku(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV1(config);
|
NBMJDRV1(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::jituroku_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::jituroku_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::ngpgal)
|
void nbmj9195_state::ngpgal(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV2(config);
|
NBMJDRV2(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::ngpgal_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::ngpgal_map);
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::ngpgal_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::ngpgal_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::mjgottsu)
|
void nbmj9195_state::mjgottsu(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV2(config);
|
NBMJDRV2(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::ngpgal_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::ngpgal_map);
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mjgottsu_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mjgottsu_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::bakuhatu)
|
void nbmj9195_state::bakuhatu(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV2(config);
|
NBMJDRV2(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_MODIFY("maincpu")
|
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::ngpgal_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::ngpgal_map);
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mjgottsu_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mjgottsu_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::cmehyou)
|
void nbmj9195_state::cmehyou(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV2(config);
|
NBMJDRV2(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::ngpgal_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::ngpgal_map);
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::cmehyou_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::cmehyou_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::mjkoiura)
|
void nbmj9195_state::mjkoiura(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV2(config);
|
NBMJDRV2(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::mjuraden_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::mjuraden_map);
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mjkoiura_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mjkoiura_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::mkoiuraa)
|
void nbmj9195_state::mkoiuraa(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV2(config);
|
NBMJDRV2(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::mjuraden_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::mjuraden_map);
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mkoiuraa_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mkoiuraa_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::mscoutm)
|
void nbmj9195_state::mscoutm(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV3(config);
|
NBMJDRV3(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::mscoutm_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::mscoutm_map);
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mscoutm_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mscoutm_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::imekura)
|
void nbmj9195_state::imekura(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV3(config);
|
NBMJDRV3(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::mjegolf_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::mjegolf_map);
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::imekura_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::imekura_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(nbmj9195_state::mjegolf)
|
void nbmj9195_state::mjegolf(machine_config &config)
|
||||||
|
{
|
||||||
NBMJDRV3(config);
|
NBMJDRV3(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::mjegolf_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &nbmj9195_state::mjegolf_map);
|
||||||
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mjegolf_io_map);
|
m_maincpu->set_addrmap(AS_IO, &nbmj9195_state::mjegolf_io_map);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -826,36 +826,36 @@ void ngp_state::nvram_write(emu_file &file)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(ngp_state::ngp_common)
|
void ngp_state::ngp_common(machine_config &config)
|
||||||
|
{
|
||||||
TMP95C061(config, m_maincpu, 6.144_MHz_XTAL);
|
TMP95C061(config, m_maincpu, 6.144_MHz_XTAL);
|
||||||
m_maincpu->set_am8_16(1);
|
m_maincpu->set_am8_16(1);
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &ngp_state::ngp_mem);
|
m_maincpu->set_addrmap(AS_PROGRAM, &ngp_state::ngp_mem);
|
||||||
m_maincpu->porta_write().set(FUNC(ngp_state::ngp_tlcs900_porta));
|
m_maincpu->porta_write().set(FUNC(ngp_state::ngp_tlcs900_porta));
|
||||||
|
|
||||||
MCFG_DEVICE_ADD( "soundcpu", Z80, 6.144_MHz_XTAL/2 )
|
z80_device &soundcpu(Z80(config, "soundcpu", 6.144_MHz_XTAL/2));
|
||||||
MCFG_DEVICE_PROGRAM_MAP( z80_mem)
|
soundcpu.set_addrmap(AS_PROGRAM, &ngp_state::z80_mem);
|
||||||
MCFG_DEVICE_IO_MAP( z80_io)
|
soundcpu.set_addrmap(AS_IO, &ngp_state::z80_io);
|
||||||
|
|
||||||
MCFG_SCREEN_ADD( "screen", LCD )
|
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_LCD));
|
||||||
MCFG_SCREEN_RAW_PARAMS( 6.144_MHz_XTAL, 515, 0, 160 /*480*/, 199, 0, 152 )
|
screen.set_raw(6.144_MHz_XTAL, 515, 0, 160 /*480*/, 199, 0, 152);
|
||||||
MCFG_SCREEN_UPDATE_DRIVER(ngp_state, screen_update_ngp)
|
screen.set_screen_update(FUNC(ngp_state::screen_update_ngp));
|
||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "lspeaker").front_left();
|
SPEAKER(config, "lspeaker").front_left();
|
||||||
SPEAKER(config, "rspeaker").front_right();
|
SPEAKER(config, "rspeaker").front_right();
|
||||||
|
|
||||||
MCFG_DEVICE_ADD( "t6w28", T6W28, 6.144_MHz_XTAL/2 )
|
T6W28(config, m_t6w28, 6.144_MHz_XTAL/2);
|
||||||
MCFG_SOUND_ROUTE( 0, "lspeaker", 0.50 )
|
m_t6w28->add_route(0, "lspeaker", 0.50);
|
||||||
MCFG_SOUND_ROUTE( 1, "rspeaker", 0.50 )
|
m_t6w28->add_route(1, "rspeaker", 0.50);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("ldac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.25); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("rdac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(ngp_state::ngp)
|
MACHINE_CONFIG_START(ngp_state::ngp)
|
||||||
|
@ -838,7 +838,7 @@ MACHINE_CONFIG_START(nightgal_state::sexygal)
|
|||||||
clock_device &sampleclk(CLOCK(config, "sampleclk", 6000)); // quite a wild guess
|
clock_device &sampleclk(CLOCK(config, "sampleclk", 6000)); // quite a wild guess
|
||||||
sampleclk.signal_handler().set_inputline(m_audiocpu, INPUT_LINE_NMI);
|
sampleclk.signal_handler().set_inputline(m_audiocpu, INPUT_LINE_NMI);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "mono", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -799,7 +799,8 @@ void notetaker_state::ep_reset()
|
|||||||
static INPUT_PORTS_START( notetakr )
|
static INPUT_PORTS_START( notetakr )
|
||||||
INPUT_PORTS_END
|
INPUT_PORTS_END
|
||||||
|
|
||||||
MACHINE_CONFIG_START(notetaker_state::notetakr)
|
void notetaker_state::notetakr(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
/* IO CPU: 8086@8MHz */
|
/* IO CPU: 8086@8MHz */
|
||||||
I8086(config, m_iop_cpu, 24_MHz_XTAL / 3); /* iD8086-2 @ E4A; 24Mhz crystal divided down to 8Mhz by i8284 clock generator */
|
I8086(config, m_iop_cpu, 24_MHz_XTAL / 3); /* iD8086-2 @ E4A; 24Mhz crystal divided down to 8Mhz by i8284 clock generator */
|
||||||
@ -821,13 +822,13 @@ MACHINE_CONFIG_START(notetaker_state::notetakr)
|
|||||||
m_ep_pic->out_int_callback().set_inputline(m_ep_cpu, 0);
|
m_ep_pic->out_int_callback().set_inputline(m_ep_cpu, 0);
|
||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
MCFG_SCREEN_ADD("screen", RASTER)
|
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
|
||||||
MCFG_SCREEN_REFRESH_RATE(60.975)
|
screen.set_refresh_hz(60.975);
|
||||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(250))
|
screen.set_vblank_time(ATTOSECONDS_IN_USEC(250));
|
||||||
MCFG_SCREEN_UPDATE_DRIVER(notetaker_state, screen_update)
|
screen.set_screen_update(FUNC(notetaker_state::screen_update));
|
||||||
MCFG_SCREEN_SIZE(640, 480)
|
screen.set_size(640, 480);
|
||||||
MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1)
|
screen.set_visarea(0, 640-1, 0, 480-1);
|
||||||
MCFG_SCREEN_PALETTE("palette")
|
screen.set_palette("palette");
|
||||||
|
|
||||||
PALETTE(config, "palette", palette_device::MONOCHROME);
|
PALETTE(config, "palette", palette_device::MONOCHROME);
|
||||||
|
|
||||||
@ -869,12 +870,12 @@ MACHINE_CONFIG_START(notetaker_state::notetakr)
|
|||||||
SPEAKER(config, "lspeaker").front_left();
|
SPEAKER(config, "lspeaker").front_left();
|
||||||
SPEAKER(config, "rspeaker").front_right();
|
SPEAKER(config, "rspeaker").front_right();
|
||||||
// TODO: hook DAC up to two HA2425 (sample and hold) chips and hook those up to the speakers
|
// TODO: hook DAC up to two HA2425 (sample and hold) chips and hook those up to the speakers
|
||||||
MCFG_DEVICE_ADD("dac", DAC1200, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.5) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.5) // unknown DAC
|
DAC1200(config, m_dac, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
void notetaker_state::init_notetakr()
|
void notetaker_state::init_notetakr()
|
||||||
{
|
{
|
||||||
|
@ -668,7 +668,7 @@ MACHINE_CONFIG_START(nyny_state::nyny)
|
|||||||
|
|
||||||
AY8910(config, "ay3", AUDIO_CPU_2_CLOCK).add_route(ALL_OUTPUTS, "speaker", 0.03);
|
AY8910(config, "ay3", AUDIO_CPU_2_CLOCK).add_route(ALL_OUTPUTS, "speaker", 0.03);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -204,7 +204,7 @@ MACHINE_CONFIG_START(palm_state::palm)
|
|||||||
|
|
||||||
/* audio hardware */
|
/* audio hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25)
|
DAC_1BIT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -305,8 +305,8 @@ READ8_MEMBER(pandoras_state::pandoras_portB_r)
|
|||||||
return (m_audiocpu->total_cycles() / 512) & 0x0f;
|
return (m_audiocpu->total_cycles() / 512) & 0x0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(pandoras_state::pandoras)
|
void pandoras_state::pandoras(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MC6809E(config, m_maincpu, MASTER_CLOCK/6); /* CPU A */
|
MC6809E(config, m_maincpu, MASTER_CLOCK/6); /* CPU A */
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &pandoras_state::pandoras_master_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &pandoras_state::pandoras_master_map);
|
||||||
@ -337,14 +337,14 @@ MACHINE_CONFIG_START(pandoras_state::pandoras)
|
|||||||
WATCHDOG_TIMER(config, "watchdog");
|
WATCHDOG_TIMER(config, "watchdog");
|
||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
MCFG_SCREEN_ADD("screen", RASTER)
|
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
|
||||||
MCFG_SCREEN_REFRESH_RATE(60)
|
screen.set_refresh_hz(60);
|
||||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
|
screen.set_vblank_time(ATTOSECONDS_IN_USEC(0));
|
||||||
MCFG_SCREEN_SIZE(32*8, 32*8)
|
screen.set_size(32*8, 32*8);
|
||||||
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
|
screen.set_visarea(0*8, 32*8-1, 2*8, 30*8-1);
|
||||||
MCFG_SCREEN_UPDATE_DRIVER(pandoras_state, screen_update_pandoras)
|
screen.set_screen_update(FUNC(pandoras_state::screen_update_pandoras));
|
||||||
MCFG_SCREEN_PALETTE(m_palette)
|
screen.set_palette(m_palette);
|
||||||
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, pandoras_state, vblank_irq))
|
screen.screen_vblank().set(FUNC(pandoras_state::vblank_irq));
|
||||||
|
|
||||||
GFXDECODE(config, m_gfxdecode, m_palette, gfx_pandoras);
|
GFXDECODE(config, m_gfxdecode, m_palette, gfx_pandoras);
|
||||||
PALETTE(config, m_palette, FUNC(pandoras_state::pandoras_palette), 16*16+16*16, 32);
|
PALETTE(config, m_palette, FUNC(pandoras_state::pandoras_palette), 16*16+16*16, 32);
|
||||||
@ -360,12 +360,12 @@ MACHINE_CONFIG_START(pandoras_state::pandoras)
|
|||||||
aysnd.port_b_read_callback().set(FUNC(pandoras_state::pandoras_portB_r));
|
aysnd.port_b_read_callback().set(FUNC(pandoras_state::pandoras_portB_r));
|
||||||
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.4);
|
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.4);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.12) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.12); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
|
@ -428,7 +428,7 @@ MACHINE_CONFIG_START(pastelg_state::pastelg)
|
|||||||
aysnd.port_b_read_callback().set_ioport("DSWB");
|
aysnd.port_b_read_callback().set_ioport("DSWB");
|
||||||
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.35);
|
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.35);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -488,7 +488,7 @@ MACHINE_CONFIG_START(pastelg_state::threeds)
|
|||||||
aysnd.port_b_read_callback().set_ioport("DSWA");
|
aysnd.port_b_read_callback().set_ioport("DSWA");
|
||||||
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.35);
|
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.35);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -995,7 +995,7 @@ MACHINE_CONFIG_START(pockstat_state::pockstat)
|
|||||||
PALETTE(config, "palette", palette_device::MONOCHROME);
|
PALETTE(config, "palette", palette_device::MONOCHROME);
|
||||||
|
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC
|
DAC_16BIT_R2R_TWOS_COMPLEMENT(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -406,7 +406,7 @@ MACHINE_CONFIG_START(pong_state::pong)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC
|
DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -462,7 +462,7 @@ MACHINE_CONFIG_START(breakout_state::breakout)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC
|
DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -510,7 +510,7 @@ MACHINE_CONFIG_START(pong_state::pongd)
|
|||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_16BIT_R2R_TWOS_COMPLEMENT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC
|
DAC_16BIT_R2R_TWOS_COMPLEMENT(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -406,7 +406,7 @@ MACHINE_CONFIG_START(ppmast93_state::ppmast93)
|
|||||||
MCFG_DEVICE_ADD("ymsnd", YM2413, 5000000/2)
|
MCFG_DEVICE_ADD("ymsnd", YM2413, 5000000/2)
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0)
|
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0)
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.3) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.3); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -204,8 +204,8 @@ MACHINE_CONFIG_START(rltennis_state::rltennis)
|
|||||||
|
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5) // unknown DAC
|
DAC_8BIT_R2R(config, "dac1", 0).add_route(ALL_OUTPUTS, "speaker", 0.5); // unknown DAC
|
||||||
MCFG_DEVICE_ADD("dac2", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac2", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
@ -222,13 +222,16 @@ TIMER_DEVICE_CALLBACK_MEMBER( rowamet_state::timer_a )
|
|||||||
m_digits[++digit] = patterns[m_p_ram[m_out_offs++]&15];
|
m_digits[++digit] = patterns[m_p_ram[m_out_offs++]&15];
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(rowamet_state::rowamet)
|
void rowamet_state::rowamet(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("maincpu", Z80, 1888888)
|
Z80(config, m_maincpu, 1888888);
|
||||||
MCFG_DEVICE_PROGRAM_MAP(rowamet_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &rowamet_state::rowamet_map);
|
||||||
MCFG_DEVICE_ADD("cpu2", Z80, 1888888)
|
|
||||||
MCFG_DEVICE_PROGRAM_MAP(rowamet_sub_map)
|
Z80(config, m_cpu2, 1888888);
|
||||||
MCFG_DEVICE_IO_MAP(rowamet_sub_io)
|
m_cpu2->set_addrmap(AS_PROGRAM, &rowamet_state::rowamet_sub_map);
|
||||||
|
m_cpu2->set_addrmap(AS_IO, &rowamet_state::rowamet_sub_io);
|
||||||
|
|
||||||
TIMER(config, "timer_a").configure_periodic(FUNC(rowamet_state::timer_a), attotime::from_hz(200));
|
TIMER(config, "timer_a").configure_periodic(FUNC(rowamet_state::timer_a), attotime::from_hz(200));
|
||||||
|
|
||||||
/* Video */
|
/* Video */
|
||||||
@ -236,12 +239,12 @@ MACHINE_CONFIG_START(rowamet_state::rowamet)
|
|||||||
|
|
||||||
/* Sound */
|
/* Sound */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
/*-------------------------------------------------------------------
|
/*-------------------------------------------------------------------
|
||||||
/ Conan (1983)
|
/ Conan (1983)
|
||||||
|
@ -3589,7 +3589,7 @@ MACHINE_CONFIG_START(royalmah_state::jansou)
|
|||||||
|
|
||||||
GENERIC_LATCH_8(config, m_soundlatch);
|
GENERIC_LATCH_8(config, m_soundlatch);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -447,7 +447,7 @@ MACHINE_CONFIG_START(s11_state::s11)
|
|||||||
MCFG_DEVICE_PROGRAM_MAP(s11_audio_map)
|
MCFG_DEVICE_PROGRAM_MAP(s11_audio_map)
|
||||||
|
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
@ -475,7 +475,7 @@ MACHINE_CONFIG_START(s11_state::s11)
|
|||||||
m_ym->irq_handler().set(FUNC(s11_state::ym2151_irq_w));
|
m_ym->irq_handler().set(FUNC(s11_state::ym2151_irq_w));
|
||||||
m_ym->add_route(ALL_OUTPUTS, "bg", 0.50);
|
m_ym->add_route(ALL_OUTPUTS, "bg", 0.50);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "bg", 0.25)
|
MC1408(config, "dac1", 0).add_route(ALL_OUTPUTS, "bg", 0.25);
|
||||||
|
|
||||||
PIA6821(config, m_pia40, 0);
|
PIA6821(config, m_pia40, 0);
|
||||||
m_pia40->writepa_handler().set("dac1", FUNC(dac_byte_interface::data_w));
|
m_pia40->writepa_handler().set("dac1", FUNC(dac_byte_interface::data_w));
|
||||||
|
@ -239,7 +239,7 @@ MACHINE_CONFIG_START(s11a_state::s11a)
|
|||||||
MCFG_DEVICE_PROGRAM_MAP(s11a_audio_map)
|
MCFG_DEVICE_PROGRAM_MAP(s11a_audio_map)
|
||||||
|
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25)
|
MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
@ -266,7 +266,7 @@ MACHINE_CONFIG_START(s11a_state::s11a)
|
|||||||
m_ym->irq_handler().set(FUNC(s11a_state::ym2151_irq_w));
|
m_ym->irq_handler().set(FUNC(s11a_state::ym2151_irq_w));
|
||||||
m_ym->add_route(ALL_OUTPUTS, "bg", 0.50);
|
m_ym->add_route(ALL_OUTPUTS, "bg", 0.50);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "bg", 0.25)
|
MC1408(config, "dac1", 0).add_route(ALL_OUTPUTS, "bg", 0.25);
|
||||||
|
|
||||||
PIA6821(config, m_pia40, 0);
|
PIA6821(config, m_pia40, 0);
|
||||||
m_pia40->writepa_handler().set("dac1", FUNC(dac_byte_interface::data_w));
|
m_pia40->writepa_handler().set("dac1", FUNC(dac_byte_interface::data_w));
|
||||||
|
@ -250,10 +250,11 @@ void s11b_state::init_s11b_invert()
|
|||||||
m_invert = true;
|
m_invert = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_CONFIG_START(s11b_state::s11b)
|
void s11b_state::s11b(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD("maincpu", M6808, XTAL(4'000'000))
|
M6808(config, m_maincpu, XTAL(4'000'000));
|
||||||
MCFG_DEVICE_PROGRAM_MAP(s11b_main_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &s11b_state::s11b_main_map);
|
||||||
MCFG_MACHINE_RESET_OVERRIDE(s11b_state, s11b)
|
MCFG_MACHINE_RESET_OVERRIDE(s11b_state, s11b)
|
||||||
|
|
||||||
/* Video */
|
/* Video */
|
||||||
@ -311,19 +312,18 @@ MACHINE_CONFIG_START(s11b_state::s11b)
|
|||||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1);
|
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1);
|
||||||
|
|
||||||
/* Add the soundcard */
|
/* Add the soundcard */
|
||||||
MCFG_DEVICE_ADD("audiocpu", M6802, XTAL(4'000'000))
|
M6802(config, m_audiocpu, XTAL(4'000'000));
|
||||||
MCFG_DEVICE_PROGRAM_MAP(s11b_audio_map)
|
m_audiocpu->set_addrmap(AS_PROGRAM, &s11b_state::s11b_audio_map);
|
||||||
|
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25)
|
MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
vref.add_route(0, "dac1", 1.0, DAC_VREF_POS_INPUT); vref.add_route(0, "dac1", -1.0, DAC_VREF_NEG_INPUT);
|
||||||
|
|
||||||
SPEAKER(config, "speech").front_center();
|
SPEAKER(config, "speech").front_center();
|
||||||
MCFG_DEVICE_ADD("hc55516", HC55516, 0)
|
HC55516(config, m_hc55516, 0).add_route(ALL_OUTPUTS, "speech", 0.50);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speech", 0.50)
|
|
||||||
|
|
||||||
PIA6821(config, m_pias, 0);
|
PIA6821(config, m_pias, 0);
|
||||||
m_pias->readpa_handler().set(FUNC(s11_state::sound_r));
|
m_pias->readpa_handler().set(FUNC(s11_state::sound_r));
|
||||||
@ -335,8 +335,8 @@ MACHINE_CONFIG_START(s11b_state::s11b)
|
|||||||
m_pias->irqa_handler().set_inputline("audiocpu", M6802_IRQ_LINE);
|
m_pias->irqa_handler().set_inputline("audiocpu", M6802_IRQ_LINE);
|
||||||
|
|
||||||
/* Add the background music card */
|
/* Add the background music card */
|
||||||
MCFG_DEVICE_ADD("bgcpu", MC6809E, XTAL(8'000'000) / 4) // MC68B09E
|
MC6809E(config, m_bgcpu, XTAL(8'000'000) / 4); // MC68B09E
|
||||||
MCFG_DEVICE_PROGRAM_MAP(s11b_bg_map)
|
m_bgcpu->set_addrmap(AS_PROGRAM, &s11b_state::s11b_bg_map);
|
||||||
config.m_minimum_quantum = attotime::from_hz(50);
|
config.m_minimum_quantum = attotime::from_hz(50);
|
||||||
|
|
||||||
SPEAKER(config, "bg").front_center();
|
SPEAKER(config, "bg").front_center();
|
||||||
@ -344,10 +344,9 @@ MACHINE_CONFIG_START(s11b_state::s11b)
|
|||||||
m_ym->irq_handler().set(FUNC(s11b_state::ym2151_irq_w));
|
m_ym->irq_handler().set(FUNC(s11b_state::ym2151_irq_w));
|
||||||
m_ym->add_route(ALL_OUTPUTS, "bg", 0.25);
|
m_ym->add_route(ALL_OUTPUTS, "bg", 0.25);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac1", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "bg", 0.25)
|
MC1408(config, "dac1", 0).add_route(ALL_OUTPUTS, "bg", 0.25);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("hc55516_bg", HC55516, 0)
|
HC55516(config, m_bg_hc55516, 0).add_route(ALL_OUTPUTS, "speech", 0.50);
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speech", 0.50)
|
|
||||||
|
|
||||||
PIA6821(config, m_pia40, 0);
|
PIA6821(config, m_pia40, 0);
|
||||||
m_pia40->writepa_handler().set("dac1", FUNC(dac_byte_interface::data_w));
|
m_pia40->writepa_handler().set("dac1", FUNC(dac_byte_interface::data_w));
|
||||||
@ -356,8 +355,7 @@ MACHINE_CONFIG_START(s11b_state::s11b)
|
|||||||
m_pia40->cb2_handler().set(FUNC(s11_state::pia40_cb2_w));
|
m_pia40->cb2_handler().set(FUNC(s11_state::pia40_cb2_w));
|
||||||
m_pia40->irqa_handler().set_inputline("bgcpu", M6809_FIRQ_LINE);
|
m_pia40->irqa_handler().set_inputline("bgcpu", M6809_FIRQ_LINE);
|
||||||
m_pia40->irqb_handler().set_inputline("bgcpu", INPUT_LINE_NMI);
|
m_pia40->irqb_handler().set_inputline("bgcpu", INPUT_LINE_NMI);
|
||||||
|
}
|
||||||
MACHINE_CONFIG_END
|
|
||||||
|
|
||||||
/*-----------------------
|
/*-----------------------
|
||||||
/ Bad Cats 12/89
|
/ Bad Cats 12/89
|
||||||
|
@ -232,7 +232,7 @@ MACHINE_CONFIG_START(sbasketb_state::sbasketb)
|
|||||||
|
|
||||||
MCFG_DEVICE_ADD(m_soundbrd, TRACKFLD_AUDIO, 0, m_audiocpu, m_vlm)
|
MCFG_DEVICE_ADD(m_soundbrd, TRACKFLD_AUDIO, 0, m_audiocpu, m_vlm)
|
||||||
|
|
||||||
MCFG_DEVICE_ADD(m_dac, DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.4) // unknown DAC
|
DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -431,7 +431,7 @@ MACHINE_CONFIG_START(seicross_state::no_nvram)
|
|||||||
aysnd.port_b_write_callback().set(FUNC(seicross_state::portB_w));
|
aysnd.port_b_write_callback().set(FUNC(seicross_state::portB_w));
|
||||||
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.25);
|
aysnd.add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.12) // unknown DAC
|
DAC_4BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.12); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -594,7 +594,7 @@ MACHINE_CONFIG_START(senjyo_state::senjyo)
|
|||||||
MCFG_DEVICE_ADD("sn3", SN76496, 2000000)
|
MCFG_DEVICE_ADD("sn3", SN76496, 2000000)
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_4BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.05) // unknown DAC
|
DAC_4BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.05); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -375,19 +375,19 @@ void shangkid_state::sound_portmap(address_map &map)
|
|||||||
|
|
||||||
/***************************************************************************************/
|
/***************************************************************************************/
|
||||||
|
|
||||||
MACHINE_CONFIG_START(shangkid_state::chinhero)
|
void shangkid_state::chinhero(machine_config &config)
|
||||||
|
{
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
MCFG_DEVICE_ADD(m_maincpu, Z80, XTAL(18'432'000)/6) /* verified on pcb */
|
Z80(config, m_maincpu, XTAL(18'432'000)/6); /* verified on pcb */
|
||||||
MCFG_DEVICE_PROGRAM_MAP(chinhero_main_map)
|
m_maincpu->set_addrmap(AS_PROGRAM, &shangkid_state::chinhero_main_map);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD(m_bbx, Z80, XTAL(18'432'000)/6) /* verified on pcb */
|
Z80(config, m_bbx, XTAL(18'432'000)/6); /* verified on pcb */
|
||||||
MCFG_DEVICE_PROGRAM_MAP(chinhero_bbx_map)
|
m_bbx->set_addrmap(AS_PROGRAM, &shangkid_state::chinhero_bbx_map);
|
||||||
MCFG_DEVICE_IO_MAP(chinhero_bbx_portmap)
|
m_bbx->set_addrmap(AS_IO, &shangkid_state::chinhero_bbx_portmap);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD(m_audiocpu, Z80, XTAL(18'432'000)/6) /* verified on pcb */
|
Z80(config, m_audiocpu, XTAL(18'432'000)/6); /* verified on pcb */
|
||||||
MCFG_DEVICE_PROGRAM_MAP(chinhero_sound_map)
|
m_audiocpu->set_addrmap(AS_PROGRAM, &shangkid_state::chinhero_sound_map);
|
||||||
MCFG_DEVICE_IO_MAP(sound_portmap)
|
m_audiocpu->set_addrmap(AS_IO, &shangkid_state::sound_portmap);
|
||||||
|
|
||||||
ls259_device &mainlatch(LS259(config, "mainlatch"));
|
ls259_device &mainlatch(LS259(config, "mainlatch"));
|
||||||
mainlatch.q_out_cb<0>().set_inputline(m_bbx, INPUT_LINE_RESET).invert(); // RESET2
|
mainlatch.q_out_cb<0>().set_inputline(m_bbx, INPUT_LINE_RESET).invert(); // RESET2
|
||||||
@ -420,7 +420,7 @@ MACHINE_CONFIG_START(shangkid_state::chinhero)
|
|||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
SPEAKER(config, "speaker").front_center();
|
SPEAKER(config, "speaker").front_center();
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
@ -430,10 +430,11 @@ MACHINE_CONFIG_START(shangkid_state::chinhero)
|
|||||||
m_aysnd->port_a_write_callback().set(FUNC(shangkid_state::chinhero_ay8910_porta_w));
|
m_aysnd->port_a_write_callback().set(FUNC(shangkid_state::chinhero_ay8910_porta_w));
|
||||||
m_aysnd->port_b_write_callback().set(FUNC(shangkid_state::ay8910_portb_w));
|
m_aysnd->port_b_write_callback().set(FUNC(shangkid_state::ay8910_portb_w));
|
||||||
m_aysnd->add_route(ALL_OUTPUTS, "speaker", 0.1);
|
m_aysnd->add_route(ALL_OUTPUTS, "speaker", 0.1);
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
MACHINE_CONFIG_START(shangkid_state::shangkid)
|
void shangkid_state::shangkid(machine_config &config)
|
||||||
|
{
|
||||||
chinhero(config);
|
chinhero(config);
|
||||||
|
|
||||||
/* basic machine hardware */
|
/* basic machine hardware */
|
||||||
@ -455,7 +456,7 @@ MACHINE_CONFIG_START(shangkid_state::shangkid)
|
|||||||
m_gfxdecode->set_info(gfx_shangkid);
|
m_gfxdecode->set_info(gfx_shangkid);
|
||||||
|
|
||||||
m_aysnd->port_a_write_callback().set(FUNC(shangkid_state::shangkid_ay8910_porta_w));
|
m_aysnd->port_a_write_callback().set(FUNC(shangkid_state::shangkid_ay8910_porta_w));
|
||||||
MACHINE_CONFIG_END
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -257,7 +257,7 @@ MACHINE_CONFIG_START(shisen_state::shisen)
|
|||||||
ymsnd.add_route(0, "lspeaker", 0.5);
|
ymsnd.add_route(0, "lspeaker", 0.5);
|
||||||
ymsnd.add_route(1, "rspeaker", 0.5);
|
ymsnd.add_route(1, "rspeaker", 0.5);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "lspeaker", 0.25).add_route(ALL_OUTPUTS, "rspeaker", 0x25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -227,7 +227,7 @@ MACHINE_CONFIG_START(ssozumo_state::ssozumo)
|
|||||||
YM2149(config, "ay1", 1500000).add_route(ALL_OUTPUTS, "speaker", 0.3);
|
YM2149(config, "ay1", 1500000).add_route(ALL_OUTPUTS, "speaker", 0.3);
|
||||||
YM2149(config, "ay2", 1500000).add_route(ALL_OUTPUTS, "speaker", 0.3);
|
YM2149(config, "ay2", 1500000).add_route(ALL_OUTPUTS, "speaker", 0.3);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.3) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.3); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
@ -241,7 +241,7 @@ MACHINE_CONFIG_START(tagteam_state::tagteam)
|
|||||||
AY8910(config, "ay1", XTAL(12'000'000)/8).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
AY8910(config, "ay1", XTAL(12'000'000)/8).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
AY8910(config, "ay2", XTAL(12'000'000)/8).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
AY8910(config, "ay2", XTAL(12'000'000)/8).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC
|
DAC_8BIT_R2R(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.25); // unknown DAC
|
||||||
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
|
||||||
vref.set_output(5.0);
|
vref.set_output(5.0);
|
||||||
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user