Previous 15994 Revisions Next

r5387 Sunday 9th August, 2009 at 19:42:59 UTC by Angelo Salese
[SNES] Fixed a bug with open bus behaviour, hopefully it's now accurate.
[src/mame/machine]snes.c

src/mame/machine/snes.c
r5386r5387
8080static TIMER_CALLBACK( snes_nmi_tick )
8181{
8282   // 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 );
8484
8585   // don't happen again
8686   timer_adjust_oneshot(snes_nmi_timer, attotime_never, 0);
r5386r5387
289289      return 0xff;
290290
291291   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
293293   recurse = 0;
294294   return result;
295295}
r5386r5387
597597   }
598598
599599   /* Unsupported reads returns open bus */
600//   printf("%02x %02x\n",offset,snes_open_bus_r(space,0));
600601   return snes_open_bus_r(space,0);
601602}
602603

Previous 15994 Revisions Next


© 1998-2018 The MESS Team