summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/mame/wyse/wy50.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mame/wyse/wy50.cpp b/src/mame/wyse/wy50.cpp
index e5977e81013..1b0e45f5ae1 100644
--- a/src/mame/wyse/wy50.cpp
+++ b/src/mame/wyse/wy50.cpp
@@ -34,8 +34,10 @@
#include "machine/er1400.h"
#include "machine/scn_pci.h"
#include "wy50kb.h"
+#include "sound/beep.h"
#include "video/scn2674.h"
#include "screen.h"
+#include "speaker.h"
class wy50_state : public driver_device
{
@@ -47,6 +49,7 @@ public:
, m_earom(*this, "earom")
, m_pvtc(*this, "pvtc")
, m_sio(*this, "sio")
+ , m_beep(*this, "beep")
, m_chargen(*this, "chargen")
, m_videoram(*this, "videoram%u", 0U)
{
@@ -82,6 +85,7 @@ private:
required_device<er1400_device> m_earom;
required_device<scn2672_device> m_pvtc;
required_device<scn2661b_device> m_sio;
+ required_device<beep_device> m_beep;
required_region_ptr<u8> m_chargen;
required_shared_ptr_array<u8, 2> m_videoram;
@@ -246,6 +250,8 @@ void wy50_state::p1_w(u8 data)
// P1.6 = REV/DIM PROT
// P1.7 (inverted) = 80/132
+ m_beep->set_state(BIT(data, 5));
+
m_rev_prot = BIT(data, 6);
if (m_is_132 != BIT(data, 7))
@@ -320,6 +326,10 @@ void wy50_state::wy50(machine_config &config)
modem.rxd_handler().set(m_sio, FUNC(scn2661b_device::rxd_w));
modem.cts_handler().set(m_sio, FUNC(scn2661b_device::cts_w));
modem.dcd_handler().set(m_sio, FUNC(scn2661b_device::dcd_w));
+
+ SPEAKER(config, "speaker").front_center();
+ // Star Micronics QMB06 PZT Buzzer (2048Hz peak) + LC filter, output frequency is approximated here
+ BEEP(config, m_beep, 1000).add_route(ALL_OUTPUTS, "speaker", 0.10);
}
ROM_START(wy50)
ibert2018-02-121-0/+4 * API Change: Machine configs are now a method of the owner class, and the prot... Olivier Galibert2018-01-171-0/+1 * New 74LS259/9334/CD4099 devices AJR2017-07-251-3/+3 * NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-7/+7 * reverting: Miodrag Milanovic2016-01-201-1/+1 * tags are now strings (nw) Miodrag Milanovic2016-01-161-1/+1 * overrides in drivers (nw) Miodrag Milanovic2015-12-061-2/+2 * memory: Remove support for decrypted bases, use an address space instead [O. ... Olivier Galibert2015-06-241-1/+3 * Update for Frank Palazzolo (nw) Miodrag Milanovic2015-05-221-1/+1 * Sync other dirs with main driver license for MAME (nw) Miodrag Milanovic2015-05-131-1/+1 * Added dummy license headers for MAME part (nw) Miodrag Milanovic2015-05-071-0/+2 * Cleanups and version bumpmame0153 Miodrag Milanovic2014-04-071-2/+2 * Moved optional_device<screen_device> m_screen and optional_device<palette_dev... Miodrag Milanovic2014-03-051-1/+3 * Huge update, palette is now device (nw) Miodrag Milanovic2014-02-271-1/+1 * moved optional_device<gfxdecode_device> to specific drivers state classes (nw) Miodrag Milanovic2014-02-171-2/+5 * unified formating of state class constructors, no functional change (nw) Miodrag Milanovic2013-04-101-1/+1 * moved cpu_device * to required_device in existing driver state classes (nw) Miodrag Milanovic2013-04-091-3/+5 * INTERRUPT_GEN -> INTERRUPT_GEN_MEMBER (no whatsnew) Miodrag Milanovic2012-09-181-0/+2 * manual cleanup of mame and mess includes (no whatsnew) Miodrag Milanovic2012-09-181-6/+0 * Modernized screen update calls (no whatsnew) Miodrag Milanovic2012-09-171-1/+2 * Massive change, MACHINE_START\RESET, VIDEO_START\RESET and PALETTE_INIT chang... Miodrag Milanovic2012-09-131-1/+4 * Clear out remaining global inlines in diexec.h. Aaron Giles2012-09-121-2/+2 * All driver inits are now member of state classes. Miodrag Milanovic2012-08-101-0/+1 * Remove AM_BASE in favor of AM_SHARED + required_shared_ptr. Aaron Giles2012-04-151-5/+7 * MAME going modern part 7 (no whatsnew) Miodrag Milanovic2012-04-061-2/+2 * MAME going modern part 5 (no whatsnew) Miodrag Milanovic2012-04-041-0/+4 * Major bitmap-related changes throughout the system. There are Aaron Giles2012-01-121-1/+1 * Collapsed device_config and device_t into one class. Updated all Aaron Giles2011-04-271-2/+2 * Final bulk rename for 0.142: ensure that all members of Aaron Giles2011-04-011-8/+8 * Modified video update system. [Miodrag Milanovic]