(MESS) megadriv.c: this is what happens when you change the usage of a macro across the driver, but you still commit the older version of the macro itself!

previous macro was planned to be called through MD_ADDR(a<<1)/2 but was called through MD_ADDR(a) instead, so every kind of out of bound access was attempted...
clean build of megadrive components is required. no whatsnew.
This commit is contained in:
Fabio Priuli 2013-02-14 12:04:57 +00:00
parent d76ec3b040
commit dd803a5427

View File

@ -5,7 +5,7 @@
TYPE DEFINITIONS
***************************************************************************/
#define MD_ADDR(a) rom_bank_map[((a) / 0x10000) & 0x3f] * 0x10000 + ((a) & 0xffff)
#define MD_ADDR(a) (rom_bank_map[((a << 1) / 0x10000) & 0x3f] * 0x10000 + ((a << 1) & 0xffff))/2
/* PCB */
enum