Previous 15994 Revisions Next

r4994 Thursday 11th June, 2009 at 13:12:58 UTC by Curt Coder
[Z80STI] Fixed P1 interrupt vector, and IMRB register write.
[src/mess/machine]z80sti.c

src/mess/machine/z80sti.c
r4993r4994
118118/* interrupt vectors */
119119static const UINT8 INT_VECTOR[] =
120120{
121   0x00, 0x01, 0x04, 0x06, 0x08, 0x0a, 0x0c, 0x0e,
121   0x00, 0x02, 0x04, 0x06, 0x08, 0x0a, 0x0c, 0x0e,
122122   0x10, 0x12, 0x14, 0x16, 0x18, 0x1a, 0x1c, 0x1e
123123};
124124
r4993r4994
442442
443443   case Z80STI_REGISTER_IMRB:
444444      LOG(("Z80STI '%s' Interrupt Mask Register B: %x\n", device->tag, data));
445      z80sti->imr &= (z80sti->imr & 0xff00) | data;
445      z80sti->imr = (z80sti->imr & 0xff00) | data;
446446      z80sti->isr &= z80sti->imr;
447447      check_interrupts(z80sti);
448448      break;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team