src/mame/machine/snes.c
| r5386 | r5387 | |
| 80 | 80 | static TIMER_CALLBACK( snes_nmi_tick ) |
| 81 | 81 | { |
| 82 | 82 | // pull NMI |
| 83 | | cputag_set_input_line(machine, "maincpu", G65816_LINE_NMI, HOLD_LINE ); |
| 83 | cputag_set_input_line(machine, "maincpu", G65816_LINE_NMI, ASSERT_LINE ); |
| 84 | 84 | |
| 85 | 85 | // don't happen again |
| 86 | 86 | timer_adjust_oneshot(snes_nmi_timer, attotime_never, 0); |
| r5386 | r5387 | |
| 289 | 289 | return 0xff; |
| 290 | 290 | |
| 291 | 291 | recurse = 1; |
| 292 | | result = memory_read_byte_8le(space, cpu_get_pc(space->cpu)+2); //TODO: must be the LAST opcode that's fetched on the bus |
| 292 | result = memory_read_byte_8le(space, cpu_get_pc(space->cpu)-1); //LAST opcode that's fetched on the bus |
| 293 | 293 | recurse = 0; |
| 294 | 294 | return result; |
| 295 | 295 | } |
| r5386 | r5387 | |
| 597 | 597 | } |
| 598 | 598 | |
| 599 | 599 | /* Unsupported reads returns open bus */ |
| 600 | // printf("%02x %02x\n",offset,snes_open_bus_r(space,0)); |
| 600 | 601 | return snes_open_bus_r(space,0); |
| 601 | 602 | } |
| 602 | 603 | |