src/mess/drivers/pockstat.c
| r6318 | r6319 | |
| 58 | 58 | |
| 59 | 59 | #define VERBOSE_LEVEL (0) |
| 60 | 60 | |
| 61 | | #define ENABLE_VERBOSE_LOG (1) |
| 61 | #define ENABLE_VERBOSE_LOG (0) |
| 62 | 62 | |
| 63 | 63 | #if ENABLE_VERBOSE_LOG |
| 64 | 64 | INLINE void ATTR_PRINTF(3,4) verboselog( running_machine *machine, int n_level, const char *s_fmt, ... ) |
| r6318 | r6319 | |
| 286 | 286 | |
| 287 | 287 | static void ps_intc_set_interrupt_line(running_machine *machine, UINT32 line, int state) |
| 288 | 288 | { |
| 289 | //printf( "%08x %d %08x %08x %08x\n", line, state, intc_regs.hold, intc_regs.status, intc_regs.enable ); |
| 289 | 290 | if(line) |
| 290 | 291 | { |
| 291 | 292 | if(state) |
| r6318 | r6319 | |
| 359 | 360 | verboselog(space->machine, 0, "ps_intc_w: Interrupt Enable = %08x & %08x\n", data, mem_mask ); |
| 360 | 361 | intc_regs.enable |= data; |
| 361 | 362 | //COMBINE_DATA(&intc_regs.enable); |
| 362 | | intc_regs.status &= intc_regs.enable; |
| 363 | | intc_regs.hold &= intc_regs.enable; |
| 363 | //intc_regs.status &= intc_regs.enable; |
| 364 | //intc_regs.hold &= intc_regs.enable; |
| 364 | 365 | ps_intc_set_interrupt_line(space->machine, 0, 0); |
| 365 | 366 | break; |
| 366 | 367 | case 0x000c/4: |
| 367 | 368 | verboselog(space->machine, 0, "ps_intc_w: Interrupt Mask = %08x & %08x\n", data, mem_mask ); |
| 368 | 369 | intc_regs.enable &= ~data; |
| 369 | 370 | COMBINE_DATA(&intc_regs.mask); |
| 370 | | intc_regs.status &= intc_regs.enable; |
| 371 | | intc_regs.hold &= intc_regs.enable; |
| 371 | //intc_regs.status &= intc_regs.enable; |
| 372 | //intc_regs.hold &= intc_regs.enable; |
| 372 | 373 | ps_intc_set_interrupt_line(space->machine, 0, 0); |
| 373 | 374 | break; |
| 374 | 375 | case 0x0010/4: |