mirror of
https://github.com/holub/mame
synced 2025-07-05 01:48:29 +03:00
fix mondial sound (recent regression by me) (nw)
This commit is contained in:
parent
368d4e42be
commit
39736aea96
@ -13,6 +13,11 @@
|
||||
smondialb notes:
|
||||
- holding CL+INFO+BOOK on boot load the test mode
|
||||
|
||||
TODO:
|
||||
- split driver into several files?
|
||||
- verify mondial beeper frequency
|
||||
- why are megaiv/smondial2 beeps noisy?
|
||||
|
||||
**************************************************************************************************/
|
||||
|
||||
|
||||
@ -21,6 +26,7 @@
|
||||
#include "machine/nvram.h"
|
||||
#include "machine/mmboard.h"
|
||||
#include "machine/timer.h"
|
||||
#include "sound/beep.h"
|
||||
#include "sound/dac.h"
|
||||
#include "sound/volt_reg.h"
|
||||
#include "screen.h"
|
||||
@ -44,6 +50,7 @@ public:
|
||||
, m_maincpu(*this, "maincpu")
|
||||
, m_board(*this, "board")
|
||||
, m_dac(*this, "dac")
|
||||
, m_beeper(*this, "beeper")
|
||||
, m_keys(*this, "KEY.%u", 0)
|
||||
, m_digits(*this, "digit%u", 0U)
|
||||
, m_low_leds(*this, "led%u", 0U)
|
||||
@ -93,7 +100,8 @@ private:
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<mephisto_board_device> m_board;
|
||||
required_device<dac_bit_interface> m_dac;
|
||||
optional_device<dac_bit_interface> m_dac;
|
||||
optional_device<beep_device> m_beeper;
|
||||
optional_ioport_array<2> m_keys;
|
||||
output_finder<8> m_digits;
|
||||
output_finder<16> m_low_leds, m_high_leds;
|
||||
@ -398,7 +406,7 @@ WRITE8_MEMBER(mephisto_montec_state::mondial_input_mux_w)
|
||||
}
|
||||
|
||||
m_input_mux = data;
|
||||
m_dac->write(BIT(data, 7));
|
||||
m_beeper->set_state(BIT(data, 7));
|
||||
m_maincpu->set_input_line(M65C02_IRQ_LINE, CLEAR_LINE);
|
||||
}
|
||||
|
||||
@ -564,6 +572,10 @@ void mephisto_montec_state::mondial(machine_config &config)
|
||||
mondial2(config);
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &mephisto_montec_state::mondial_mem);
|
||||
m_maincpu->set_periodic_int(FUNC(mephisto_montec_state::irq0_line_assert), attotime::from_hz(XTAL(2'000'000) / (1 << 12)));
|
||||
|
||||
config.device_remove("dac");
|
||||
config.device_remove("vref");
|
||||
BEEP(config, m_beeper, 3250).add_route(ALL_OUTPUTS, "speaker", 0.25);
|
||||
}
|
||||
|
||||
void mephisto_montec_state::smondial(machine_config &config)
|
||||
|
@ -8,6 +8,7 @@ The chess engine in Mephisto Risc is also compatible with Tasc's The ChessMachin
|
||||
|
||||
TODO:
|
||||
- Mephisto Risc maincpu is more likely 5MHz, but LCD doesn't like it
|
||||
- split driver into several files? mrisc for example is completely different hw
|
||||
|
||||
**************************************************************************************************/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user