src/mess/machine/bebox.c
| r1342 | r1343 | |
| 303 | 303 | if (LOG_INTERRUPTS) |
| 304 | 304 | { |
| 305 | 305 | /* make sure that we don't shoot ourself in the foot */ |
| 306 | | if ((interrupt_bit > sizeof(interrupt_names) / sizeof(interrupt_names[0])) && !interrupt_names[interrupt_bit]) |
| 307 | | fatalerror("Raising invalid interrupt %u", interrupt_bit); |
| 306 | assert_always((interrupt_bit < ARRAY_LENGTH(interrupt_names)) && (interrupt_names[interrupt_bit] != NULL), "Raising invalid interrupt"); |
| 308 | 307 | |
| 309 | 308 | logerror("bebox_set_irq_bit(): pc[0]=0x%08x pc[1]=0x%08x %s interrupt #%u (%s)\n", |
| 310 | 309 | (unsigned) cpunum_get_reg(0, REG_PC), |