Previous 199869 Revisions Next

r32910 Thursday 23rd October, 2014 at 19:25:27 UTC by Fabio Priuli
fixed out-of-bound access during logging
[src/emu/bus/snes]snes_slot.c

trunk/src/emu/bus/snes/snes_slot.c
r241421r241422
13601360   logerror( "\tSize:          %d megabits [%d]\n", 1 << (ROM[hilo_mode + 0x17] - 7), ROM[hilo_mode + 0x17]);
13611361   logerror( "\tSRAM:          %d kilobits [%d]\n", ROM[hilo_mode + 0x18] * 8, ROM[hilo_mode + 0x18] );
13621362   assert(ROM[hilo_mode + 0x19] < ARRAY_LENGTH(countries));
1363   logerror( "\tCountry:       %s [%d]\n", countries[ROM[hilo_mode + 0x19]], ROM[hilo_mode + 0x19]);
1363   if (ROM[hilo_mode + 0x19] < 0x10)
1364      logerror( "\tCountry:       %s [%d]\n", countries[ROM[hilo_mode + 0x19]], ROM[hilo_mode + 0x19]);
1365   else
1366      logerror( "\tCountry:       Unknown [%d]\n", ROM[hilo_mode + 0x19]);
13641367   logerror( "\tLicense:       %s [%X]\n", companies[ROM[hilo_mode + 0x1a]], ROM[hilo_mode + 0x1a]);
13651368   logerror( "\tVersion:       1.%d\n", ROM[hilo_mode + 0x1b]);
13661369   logerror( "\tInv Checksum:  %X %X\n", ROM[hilo_mode + 0x1d], ROM[hilo_mode + 0x1c]);


Previous 199869 Revisions Next


© 1997-2024 The MAME Team