summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/m6800/m6800.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2007-12-17 16:37:57 +0000
committer Aaron Giles <aaron@aarongiles.com>2007-12-17 16:37:57 +0000
commitc82a966b3b72d79ac3ce394980d6b5806e752160 (patch)
treef46dd63acdd83498db10a0563bb4e874df26d903 /src/emu/cpu/m6800/m6800.c
parent8a8ccc594989d85f2277c48d3c158f7cee41d06b (diff)
Changes for MAME 0.121u2.mame0121u2
Diffstat (limited to 'src/emu/cpu/m6800/m6800.c')
-rw-r--r--src/emu/cpu/m6800/m6800.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/emu/cpu/m6800/m6800.c b/src/emu/cpu/m6800/m6800.c
index 3adbc951a5b..b4a1de2e2d3 100644
--- a/src/emu/cpu/m6800/m6800.c
+++ b/src/emu/cpu/m6800/m6800.c
@@ -610,6 +610,7 @@ static void check_timer_event(void)
/* include the opcode functions */
#include "6800ops.c"
+#if (HAS_M6801||HAS_M6803||HAS_HD63701)
static void m6800_tx(int value)
{
m6800.port2_data = (m6800.port2_data & 0xef) | (value << 4);
@@ -804,6 +805,7 @@ static TIMER_CALLBACK(m6800_rx_tick)
}
}
}
+#endif
/****************************************************************************
* Reset registers to their initial values
@@ -1274,8 +1276,8 @@ static void m6801_init(int index, int clock, const void *config, int (*irqcallba
m6800.irq_callback = irqcallback;
m6800.clock = clock;
- m6800_rx_timer = timer_alloc(m6800_rx_tick);
- m6800_tx_timer = timer_alloc(m6800_tx_tick);
+ m6800_rx_timer = timer_alloc(m6800_rx_tick, NULL);
+ m6800_tx_timer = timer_alloc(m6800_tx_tick, NULL);
state_register("m6801", index);
}
@@ -1307,8 +1309,8 @@ static void m6803_init(int index, int clock, const void *config, int (*irqcallba
m6800.irq_callback = irqcallback;
m6800.clock = clock;
- m6800_rx_timer = timer_alloc(m6800_rx_tick);
- m6800_tx_timer = timer_alloc(m6800_tx_tick);
+ m6800_rx_timer = timer_alloc(m6800_rx_tick, NULL);
+ m6800_tx_timer = timer_alloc(m6800_tx_tick, NULL);
state_register("m6803", index);
}
@@ -1650,8 +1652,8 @@ static void hd63701_init(int index, int clock, const void *config, int (*irqcall
m6800.irq_callback = irqcallback;
m6800.clock = clock;
- m6800_rx_timer = timer_alloc(m6800_rx_tick);
- m6800_tx_timer = timer_alloc(m6800_tx_tick);
+ m6800_rx_timer = timer_alloc(m6800_rx_tick, NULL);
+ m6800_tx_timer = timer_alloc(m6800_tx_tick, NULL);
state_register("hd63701", index);
}