src/mess/machine/68901mfp.c
| r1148 | r1149 | |
| 76 | 76 | { |
| 77 | 77 | if ((BIT(gpold, bit) == 1) && (BIT(gpnew, bit) == 0)) // if transition from 1 to 0 is detected... |
| 78 | 78 | { |
| 79 | logerror("MFP68901 #%u Edge Transition Detected on GPIO%u\n", which, bit); |
| 80 | |
| 79 | 81 | if (mfp_p->ier & GPIO_MASK[bit]) // AND interrupt enabled bit is set... |
| 80 | 82 | { |
| 81 | | logerror("MFP68901 #%u Edge Transition Detected on GPIO%u\n", which, bit); |
| 83 | logerror("MFP68901 #%u Interrupt Pending for GPIO%u\n", which, bit); |
| 82 | 84 | |
| 83 | 85 | mfp_p->ipr |= GPIO_MASK[bit]; // set interrupt pending bit |
| 84 | 86 | } |
| r1148 | r1149 | |
| 114 | 116 | mfp_p->isr |= (1 << ch); // set interrupt in service bit (bit will be cleared later by the interrupt service routine) |
| 115 | 117 | } |
| 116 | 118 | |
| 117 | | mfp_p->intf->irq_callback(which, ASSERT_LINE, (mfp_p->vr & 0xf0) | ch); // fire interrupt callback |
| 119 | mfp_p->intf->irq_callback(which, HOLD_LINE, (mfp_p->vr & 0xf0) | ch); // fire interrupt callback |
| 118 | 120 | |
| 119 | 121 | return; |
| 120 | 122 | } |
| r1148 | r1149 | |
| 583 | 585 | case MFP68901_REGISTER_IMRA: |
| 584 | 586 | logerror("MFP68901 #%u Interrupt Mask Register A : %x\n", which, data); |
| 585 | 587 | mfp_p->imr = (data << 8) | (mfp_p->imr & 0xff); |
| 588 | mfp_p->isr &= mfp_p->imr; |
| 586 | 589 | break; |
| 587 | 590 | |
| 588 | 591 | case MFP68901_REGISTER_IMRB: |
| 589 | 592 | logerror("MFP68901 #%u Interrupt Mask Register B : %x\n", which, data); |
| 590 | 593 | mfp_p->imr = (mfp_p->imr & 0xff00) | data; |
| 594 | mfp_p->isr &= mfp_p->imr; |
| 591 | 595 | break; |
| 592 | 596 | |
| 593 | 597 | case MFP68901_REGISTER_VR: |