mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
(From AtariAce)
Subject: [patch] Fix megaplay.c0122u4red This fixes the crash reported as megaplay.c0122u4red. The driver doesn't map the offset into the correct range for the handler. -bios 1 still shows corrupt graphics, but at least it doesn't crash anymore.
This commit is contained in:
parent
375c3df7d8
commit
81feac74f6
1 changed files with 2 additions and 2 deletions
|
@ -464,7 +464,7 @@ static READ8_HANDLER( bank_r )
|
|||
UINT8* game = memory_region(REGION_CPU1);
|
||||
|
||||
if(game_banksel == 0x142) // Genesis I/O
|
||||
return megaplay_genesis_io_r((offset/2) & 0x1f, 0xffff);
|
||||
return megaplay_genesis_io_r((offset & 0x1f) / 2, 0xffff);
|
||||
|
||||
if(bios_mode & MP_ROM)
|
||||
{
|
||||
|
@ -497,7 +497,7 @@ static READ8_HANDLER( bank_r )
|
|||
static WRITE8_HANDLER ( bank_w )
|
||||
{
|
||||
if(game_banksel == 0x142) // Genesis I/O
|
||||
genesis_io_w((offset/2) & 0x1f, data, 0xffff);
|
||||
genesis_io_w((offset & 0x1f) / 2, data, 0xffff);
|
||||
|
||||
if(offset <= 0x1fff && (bios_width & 0x08))
|
||||
ic37_ram[(0x2000 * (bios_bank & 0x03)) + offset] = data;
|
||||
|
|
Loading…
Reference in a new issue