Previous 15994 Revisions Next

r7747 Wednesday 7th April, 2010 at 01:30:37 UTC by Angelo Salese
Fixed integer overflow
[src/mame/machine]snes.c

src/mame/machine/snes.c
r7746r7747
11751175   else                        /* Mode 21 & 25 + SuperFX Games */
11761176      value = snes_ram[0xc00000 + offset];
11771177
1178   cpu_adjust_icount(space->cpu, -(snes_ram[MEMSEL] & 1) ? 6 : 8);
1178   cpu_adjust_icount(space->cpu, -((snes_ram[MEMSEL] & 1) ? 6 : 8));
11791179
11801180   return value;
11811181}
r7746r7747
14051405   else if (snes_cart.mode & 0x0a)
14061406      logerror("(PC=%06x) Attempt to write to ROM address: %X\n",cpu_get_pc(space->cpu),offset + 0xc00000);
14071407
1408   cpu_adjust_icount(space->cpu, -(snes_ram[MEMSEL] & 1) ? 6 : 8);
1408   cpu_adjust_icount(space->cpu, -((snes_ram[MEMSEL] & 1) ? 6 : 8));
14091409}
14101410
14111411

Previous 15994 Revisions Next


© 1998-2018 The MESS Team