Previous 15994 Revisions Next

r7785 Sunday 11th April, 2010 at 14:24:42 UTC by Angelo Salese
[SNES]: minor NMITIMEN bug-fix
[src/mame/machine]snes.c

src/mame/machine/snes.c
r7784r7785
575575   // APU is mirrored from 2140 to 217f
576576   if (offset >= APU00 && offset < WMDATA)
577577   {
578//      printf("816: %02x to APU @ %d\n", data, offset & 3);
578//        printf("816: %02x to APU @ %d (PC=%06x)\n", data, offset & 3,cpu_get_pc(space->cpu));
579579      spc_port_in(state->spc700, offset & 0x3, data);
580580      cpuexec_boost_interleave(space->machine, attotime_zero, ATTOTIME_IN_USEC(20));
581581      return;
r7784r7785
653653         }
654654         break;
655655      case NMITIMEN:   /* Flag for v-blank, timer int. and joy read */
656         if((snes_ram[NMITIMEN] & 0x30) == 0x00)
656         if((data & 0x30) == 0x00)
657657         {
658658            cpu_set_input_line(state->maincpu, G65816_LINE_IRQ, CLEAR_LINE );
659659            snes_ram[TIMEUP] = 0;   // clear pending IRQ if irq is disabled here, 3x3 Eyes - Seima Korin Den behaves on this

Previous 15994 Revisions Next


© 1998-2018 The MESS Team