diff options
author | 2018-10-26 10:59:55 -0400 | |
---|---|---|
committer | 2018-10-26 10:59:55 -0400 | |
commit | 3bf82d52894bea4418e5e0199645d09c927a3ae9 (patch) | |
tree | 969e8ef1b3fdf9895d84141bbe636ca1922f99d5 | |
parent | 9e016b9510902cfac6662fbdc2321c251c2ebdd9 (diff) |
i8x9x: More HSO stuff (interrupts & A/D conversion) (nw)
-rw-r--r-- | src/devices/cpu/mcs96/i8x9x.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/devices/cpu/mcs96/i8x9x.cpp b/src/devices/cpu/mcs96/i8x9x.cpp index 071d7351042..cd6a742d76b 100644 --- a/src/devices/cpu/mcs96/i8x9x.cpp +++ b/src/devices/cpu/mcs96/i8x9x.cpp @@ -364,14 +364,22 @@ void i8x9x_device::trigger_cam(int id, u64 current_time) case 0x8: case 0x9: case 0xa: case 0xb: ios1 |= 1 << (cam.command & 3); - pending_irq |= IRQ_SOFT; - check_irq(); + break; + + case 0xf: + ad_start(current_time); break; default: logerror("%s: Action %x unimplemented\n", tag(), cam.command & 0x0f); break; } + + if(BIT(cam.command, 4)) + { + pending_irq |= BIT(cam.command, 3) ? IRQ_SOFT : IRQ_HSO; + check_irq(); + } } void i8x9x_device::set_hso(u8 mask, bool state) |