mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
mc146818: fix irqs (nw)
This commit is contained in:
parent
ea18810f9e
commit
a0145ea59a
@ -24,7 +24,7 @@
|
||||
MCFG_DEVICE_ADD(_tag, MC146818, _xtal)
|
||||
|
||||
#define MCFG_MC146818_IRQ_HANDLER(_irq) \
|
||||
downcast<mc146818_device *>(device)->set_irq_callback(DEVCB_##_irq);
|
||||
devcb = &mc146818_device::set_irq_callback(*device, DEVCB_##_irq);
|
||||
|
||||
// The MC146818 doesn't have century support, but when syncing the date & time at startup we can optionally store the century.
|
||||
#define MCFG_MC146818_CENTURY_INDEX(_century_index) \
|
||||
@ -61,7 +61,7 @@ public:
|
||||
mc146818_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
|
||||
|
||||
// callbacks
|
||||
template<class _irq> void set_irq_callback(_irq irq) { m_write_irq.set_callback(irq); }
|
||||
template<class _Object> static devcb_base &set_irq_callback(device_t &device, _Object object) { return downcast<mc146818_device &>(device).m_write_irq.set_callback(object); }
|
||||
void set_century_index(int century_index) { m_century_index = century_index; }
|
||||
void set_use_utc(bool use_utc) { m_use_utc = use_utc; }
|
||||
void set_binary(bool binary) { m_binary = binary; }
|
||||
|
@ -117,7 +117,7 @@ static MACHINE_CONFIG_FRAGMENT( at_mb )
|
||||
MCFG_ISA_OUT_DRQ7_CB(DEVWRITELINE("dma8237_2", am9517a_device, dreq3_w))
|
||||
|
||||
MCFG_MC146818_ADD( "rtc", XTAL_32_768kHz )
|
||||
MCFG_MC146818_IRQ_HANDLER(DEVWRITELINE("pic8259_slave", pic8259_device, ir0_w))
|
||||
MCFG_MC146818_IRQ_HANDLER(DEVWRITELINE("pic8259_slave", pic8259_device, ir0_w)) MCFG_DEVCB_INVERT
|
||||
MCFG_MC146818_CENTURY_INDEX(0x32)
|
||||
|
||||
/* sound hardware */
|
||||
|
Loading…
Reference in New Issue
Block a user