mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
genpc: use trampoline instead of tag
This commit is contained in:
parent
ffd73a476b
commit
0473bf3eb9
@ -134,7 +134,7 @@ void at_mb_device::device_add_mconfig(machine_config &config)
|
||||
m_isabus->drq6_callback().set(m_dma8237_2, FUNC(am9517a_device::dreq2_w));
|
||||
m_isabus->drq7_callback().set(m_dma8237_2, FUNC(am9517a_device::dreq3_w));
|
||||
m_isabus->iochck_callback().set(FUNC(at_mb_device::iochck_w));
|
||||
m_isabus->iochrdy_callback().set_inputline(":maincpu", INPUT_LINE_HALT);
|
||||
m_isabus->iochrdy_callback().set(FUNC(at_mb_device::iochrdy_w));
|
||||
|
||||
MC146818(config, m_mc146818, 32.768_kHz_XTAL);
|
||||
m_mc146818->irq().set(m_pic8259_slave, FUNC(pic8259_device::ir0_w));
|
||||
|
@ -99,6 +99,7 @@ private:
|
||||
void dma_write_byte(offs_t offset, uint8_t data);
|
||||
uint8_t dma_read_word(offs_t offset);
|
||||
void dma_write_word(offs_t offset, uint8_t data);
|
||||
void iochrdy_w(int state) { m_maincpu->set_input_line(INPUT_LINE_HALT, state); };
|
||||
};
|
||||
|
||||
DECLARE_DEVICE_TYPE(AT_MB, at_mb_device)
|
||||
|
@ -468,7 +468,7 @@ void ibm5160_mb_device::device_add_mconfig(machine_config &config)
|
||||
m_isabus->drq2_callback().set(m_dma8237, FUNC(am9517a_device::dreq2_w));
|
||||
m_isabus->drq3_callback().set(m_dma8237, FUNC(am9517a_device::dreq3_w));
|
||||
m_isabus->iochck_callback().set(FUNC(ibm5160_mb_device::iochck_w));
|
||||
m_isabus->iochrdy_callback().set_inputline(":maincpu", INPUT_LINE_HALT);
|
||||
m_isabus->iochrdy_callback().set(FUNC(ibm5160_mb_device::iochrdy_w));
|
||||
|
||||
/* sound hardware */
|
||||
SPEAKER(config, "mono").front_center();
|
||||
|
@ -129,6 +129,7 @@ protected:
|
||||
void iochck_w(int state);
|
||||
|
||||
void pc_select_dma_channel(int channel, bool state);
|
||||
void iochrdy_w(int state) { m_maincpu->set_input_line(INPUT_LINE_HALT, state); };
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user