summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/mos6560.h
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2022-06-16 12:47:52 +0200
committer Olivier Galibert <galibert@pobox.com>2025-04-29 23:06:41 +0200
commit45d4cd52a8194f2ef9e0383cfb2e2a35634af6ff (patch)
tree4e8d8fcb7382a5e9e0bce5ec59939bcfbe67155a /src/devices/sound/mos6560.h
parent5c14bcdfcb4aefb71b5b62387c4ad05dbeb3814e (diff)
full xtal conversionxtal
Diffstat (limited to 'src/devices/sound/mos6560.h')
-rw-r--r--src/devices/sound/mos6560.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/sound/mos6560.h b/src/devices/sound/mos6560.h
index bf1b8604695..36063198fd3 100644
--- a/src/devices/sound/mos6560.h
+++ b/src/devices/sound/mos6560.h
@@ -68,8 +68,8 @@
/* the following values depend on the VIC clock,
* but to achieve TV-frequency the clock must have a fix frequency */
-#define MOS6560_CLOCK (14318181/14)
-#define MOS6561_CLOCK (4433618/4)
+#define MOS6560_CLOCK (XTAL::u(14318181)/14)
+#define MOS6561_CLOCK (XTAL::u(4433618)/4)
@@ -85,7 +85,7 @@ class mos6560_device : public device_t,
public device_video_interface
{
public:
- mos6560_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ mos6560_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
auto potx_rd_callback() { return m_read_potx.bind(); }
auto poty_rd_callback() { return m_read_poty.bind(); }
@@ -111,7 +111,7 @@ protected:
TYPE_ATTACK_UFO // NTSC-M, less features
};
- mos6560_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t variant);
+ mos6560_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock, uint32_t variant);
// device-level overrides
virtual void device_start() override;
@@ -183,7 +183,7 @@ class mos6561_device : public mos6560_device
{
public:
// construction/destruction
- mos6561_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ mos6561_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
};
@@ -193,7 +193,7 @@ class mos656x_attack_ufo_device : public mos6560_device
{
public:
// construction/destruction
- mos656x_attack_ufo_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ mos656x_attack_ufo_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
};