mirror of
https://github.com/holub/mame
synced 2025-05-12 09:08:53 +03:00
(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:
parent
d76ec3b040
commit
dd803a5427
@ -5,7 +5,7 @@
|
|||||||
TYPE DEFINITIONS
|
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 */
|
/* PCB */
|
||||||
enum
|
enum
|
||||||
|
Loading…
Reference in New Issue
Block a user