summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/aristmk5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/aristmk5.cpp')
-rw-r--r--src/mame/drivers/aristmk5.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/aristmk5.cpp b/src/mame/drivers/aristmk5.cpp
index abf9e74827a..ba75ccc9184 100644
--- a/src/mame/drivers/aristmk5.cpp
+++ b/src/mame/drivers/aristmk5.cpp
@@ -465,7 +465,7 @@
#include "swhr2u.lh" // 5 1, 2, 3, 4, 5 25
#include "wnpost.lh" // 5 1, 2, 3, 5, 10 50
-#define MASTER_CLOCK XTAL_72MHz /* confirmed */
+#define MASTER_CLOCK XTAL(72'000'000) /* confirmed */
class aristmk5_state : public archimedes_state
{
@@ -594,7 +594,7 @@ WRITE8_MEMBER(aristmk5_state::spi_data_w)
m_spi_bits = 0;
// start the SPI clock
- m_spi_timer->adjust(attotime::from_hz((double)MASTER_CLOCK / 9 / 512 / 2), 0, attotime::from_hz((double)MASTER_CLOCK / 9 / 512 / 2));
+ m_spi_timer->adjust(attotime::from_hz(MASTER_CLOCK / 9 / 512 / 2), 0, attotime::from_hz(MASTER_CLOCK / 9 / 512 / 2));
}
READ8_MEMBER(aristmk5_state::spi_data_r)
@@ -750,7 +750,7 @@ READ32_MEMBER(aristmk5_state::Ns5x58)
// reset 2KHz timer
- m_mk5_2KHz_timer->adjust(attotime::from_hz((double)MASTER_CLOCK / 9 / 4096));
+ m_mk5_2KHz_timer->adjust(attotime::from_hz(MASTER_CLOCK / 9 / 4096));
archimedes_clear_irq_a(0x01);
return 0xffffffff;
}
@@ -1980,7 +1980,7 @@ void aristmk5_state::machine_start()
void aristmk5_state::machine_reset()
{
archimedes_reset();
- m_mk5_2KHz_timer->adjust(attotime::from_hz((double)MASTER_CLOCK / 9 / 4096)); // 8MHz / 4096
+ m_mk5_2KHz_timer->adjust(attotime::from_hz(MASTER_CLOCK / 9 / 4096)); // 8MHz / 4096
m_mk5_VSYNC_timer->adjust(attotime::from_hz(50000)); // default bit 1 & bit 2 == 0
m_ioc_regs[IRQ_STATUS_B] |= 0x40; //hack, set keyboard irq empty to be ON
@@ -2066,7 +2066,7 @@ MACHINE_CONFIG_START(aristmk5_state::aristmk5)
MCFG_INPUT_MERGER_ANY_HIGH("uart_irq")
MCFG_INPUT_MERGER_OUTPUT_HANDLER(WRITELINE(aristmk5_state, uart_irq_callback))
- MCFG_DS1302_ADD("rtc", XTAL_32_768kHz)
+ MCFG_DS1302_ADD("rtc", XTAL(32'768))
MCFG_TICKET_DISPENSER_ADD("hopper", attotime::from_msec(100), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW)