mirror of
https://github.com/holub/mame
synced 2025-10-06 09:00:04 +03:00
h8: Fix enable handling in timers [O. Galibert]
This commit is contained in:
parent
cf941cb006
commit
987d44a403
@ -158,13 +158,13 @@ WRITE16_HANDLER(h8_timer16_channel_device::tbr_w)
|
||||
|
||||
void h8_timer16_channel_device::device_start()
|
||||
{
|
||||
io = &cpu->space(AS_IO);
|
||||
intc = owner()->siblingdevice<h8_intc_device>(intc_tag);
|
||||
channel_active = false;
|
||||
}
|
||||
|
||||
void h8_timer16_channel_device::device_reset()
|
||||
{
|
||||
channel_active = false;
|
||||
// Don't touch channel_active here, top level device handles it
|
||||
tcr = 0;
|
||||
tcnt = 0;
|
||||
memset(tgr, 0xff, sizeof(tgr));
|
||||
|
@ -133,7 +133,6 @@ public:
|
||||
|
||||
protected:
|
||||
required_device<h8_device> cpu;
|
||||
address_space *io;
|
||||
h8_timer16_channel_device *chained_timer;
|
||||
h8_intc_device *intc;
|
||||
const char *chain_tag, *intc_tag;
|
||||
|
Loading…
Reference in New Issue
Block a user