summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/goldstar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/goldstar.cpp')
-rw-r--r--src/mame/drivers/goldstar.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/mame/drivers/goldstar.cpp b/src/mame/drivers/goldstar.cpp
index 64cb3e2446e..f4c48587a93 100644
--- a/src/mame/drivers/goldstar.cpp
+++ b/src/mame/drivers/goldstar.cpp
@@ -212,12 +212,6 @@
***************************************************************************/
-#define MASTER_CLOCK XTAL(12'000'000)
-#define CPU_CLOCK MASTER_CLOCK / 4
-#define PSG_CLOCK MASTER_CLOCK / 4
-#define AY_CLOCK MASTER_CLOCK / 8
-#define OKI_CLOCK 1056000 /* unverified resonator */
-
#include "emu.h"
#include "includes/goldstar.h"
@@ -254,6 +248,17 @@
#include "tonypok.lh"
#include "unkch.lh"
+namespace {
+
+constexpr XTAL MASTER_CLOCK = 12.0_MHz_XTAL;
+constexpr XTAL CPU_CLOCK = MASTER_CLOCK / 4;
+constexpr XTAL PSG_CLOCK = MASTER_CLOCK / 4;
+constexpr XTAL AY_CLOCK = MASTER_CLOCK / 8;
+#define OKI_CLOCK 1056000 /* unverified resonator */
+
+}
+
+
WRITE8_MEMBER(goldstar_state::protection_w)
{
@@ -9108,12 +9113,12 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(unkch_state::bonusch)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80, XTAL(12'000'000) / 2)
+ MCFG_CPU_ADD("maincpu", Z80, 12.0_MHz_XTAL / 2)
MCFG_CPU_PROGRAM_MAP(bonusch_map)
MCFG_CPU_IO_MAP(bonusch_portmap)
MCFG_CPU_VBLANK_INT_DRIVER("screen", goldstar_state, nmi_line_pulse)
- MCFG_CPU_ADD("mcu", I80C51, XTAL(12'000'000))
+ MCFG_CPU_ADD("mcu", I80C51, 12.0_MHz_XTAL)
MCFG_DEVICE_DISABLE()
/* video hardware */