diff options
Diffstat (limited to 'src/devices/machine/tmp68301.cpp')
-rw-r--r-- | src/devices/machine/tmp68301.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/machine/tmp68301.cpp b/src/devices/machine/tmp68301.cpp index 39f25c3182c..5562473a77d 100644 --- a/src/devices/machine/tmp68301.cpp +++ b/src/devices/machine/tmp68301.cpp @@ -108,10 +108,10 @@ READ8_MEMBER(tmp68301_device::icr_r) WRITE8_MEMBER(tmp68301_device::icr_w) { /* - --x- ---- Vector number is autogenerated if 1, else use external source - ---x x--- 00 falling edge, 01 low level, 10 rising edge, 11 high level - ^ applies only to external irqs (offset 0 to 2) - ---- -xxx irq level + --x- ---- Vector number is autogenerated if 1, else use external source + ---x x--- 00 falling edge, 01 low level, 10 rising edge, 11 high level + ^ applies only to external irqs (offset 0 to 2) + ---- -xxx irq level */ m_icr[offset] = data; } @@ -296,7 +296,7 @@ void tmp68301_device::update_irq_state(uint16_t cause) uint16_t IVNR = m_regs[0x9a/2]; // Interrupt Vector Number Register (IVNR) // add cause to interrupt in-service register m_iisr |= cause; - + for (i = 0; i < 3; i++) { if ((m_iisr & 1 << i) && !(m_imr & (1<<i))) @@ -319,13 +319,13 @@ void tmp68301_device::update_irq_serial(uint16_t cause, uint8_t type) { int i; const uint8_t serial_irq_vector[3] = { 8, 0xc, 0x10 }; - + /* Take care of external interrupts */ uint16_t IVNR = m_regs[0x9a/2]; // Interrupt Vector Number Register (IVNR) // add cause to interrupt in-service register m_iisr |= cause; - + for (i = 4; i < 7; i++) { if ((m_iisr & 1 << i) && !(m_imr & (1<<i))) @@ -351,7 +351,7 @@ void tmp68301_device::update_irq_serial(uint16_t cause, uint8_t type) machine().firstcpu->set_input_line(level,HOLD_LINE); } - } + } } |