From 2572e82fbb8bd53495e993166cc91143f9331107 Mon Sep 17 00:00:00 2001 From: Mark Garlanger Date: Thu, 17 Aug 2023 12:39:59 -0500 Subject: heathkit/h8.cpp: Fixed frequencies for 2 millisecond interrupt and speaker. (#11489) --- src/mame/heathkit/h8.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mame/heathkit/h8.cpp b/src/mame/heathkit/h8.cpp index cdbdad15c0a..236ce61f9bd 100644 --- a/src/mame/heathkit/h8.cpp +++ b/src/mame/heathkit/h8.cpp @@ -105,6 +105,11 @@ private: bool m_cassbit = 0; bool m_cassold = 0; + // clocks + static constexpr XTAL H8_CLOCK = XTAL(12'288'000) / 6; // 2.048 MHz + static constexpr XTAL H8_BEEP_FRQ = H8_CLOCK / 2048; // 1 kHz + static constexpr XTAL H8_IRQ_PULSE = H8_BEEP_FRQ / 2; + required_device m_maincpu; required_device m_uart; required_device m_cass; @@ -118,11 +123,6 @@ private: }; -#define H8_CLOCK (XTAL(12'288'000) / 6) -#define H8_BEEP_FRQ (H8_CLOCK / 1024) -#define H8_IRQ_PULSE (H8_BEEP_FRQ / 2) - - TIMER_DEVICE_CALLBACK_MEMBER(h8_state::h8_irq_pulse) { if (BIT(m_irq_ctl, 0)) -- cgit v1.2.3