mirror of
https://github.com/holub/mame
synced 2025-07-02 00:29:37 +03:00
hp98644: allow to configure interrupt level (nw)
This commit is contained in:
parent
aa990898fb
commit
30639a32a4
@ -87,7 +87,7 @@ static INPUT_PORTS_START(hp98644_port)
|
||||
PORT_DIPSETTING(0x00, DEF_STR(Off))
|
||||
PORT_DIPSETTING(REG_SWITCHES_MODEM_EN, DEF_STR(On))
|
||||
|
||||
PORT_DIPNAME(REG_SWITCHES_INT_LEVEL_MASK << REG_SWITCHES_INT_LEVEL_SHIFT, 0x00, "Interrupt level")
|
||||
PORT_DIPNAME(REG_SWITCHES_INT_LEVEL_MASK << REG_SWITCHES_INT_LEVEL_SHIFT, 0x02, "Interrupt level")
|
||||
PORT_DIPSETTING(0 << REG_SWITCHES_INT_LEVEL_SHIFT, "3")
|
||||
PORT_DIPSETTING(1 << REG_SWITCHES_INT_LEVEL_SHIFT, "4")
|
||||
PORT_DIPSETTING(2 << REG_SWITCHES_INT_LEVEL_SHIFT, "5")
|
||||
@ -176,7 +176,8 @@ READ16_MEMBER(dio16_98644_device::io_r)
|
||||
break;
|
||||
|
||||
case 1:
|
||||
ret = m_control | m_control << 8;
|
||||
ret = m_control | m_control << 8 | \
|
||||
(((m_switches->read() >> REG_SWITCHES_INT_LEVEL_SHIFT) & REG_SWITCHES_INT_LEVEL_MASK) << 4);
|
||||
break;
|
||||
|
||||
case 0x08:
|
||||
|
@ -270,7 +270,6 @@ void hp9k3xx_state::machine_reset()
|
||||
void hp9k3xx_state::machine_start()
|
||||
{
|
||||
m_bus_error_timer = timer_alloc(0);
|
||||
m_maincpu->set_reset_callback(write_line_delegate(FUNC(hp9k3xx_state::cpu_reset), this));
|
||||
}
|
||||
|
||||
void hp9k3xx_state::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
|
||||
|
Loading…
Reference in New Issue
Block a user