gen: Fix bug with word-reading Z80 bus status; fixes music in Monster World IV, Thunder Force 3 still boots

This commit is contained in:
beirich 2012-09-01 21:04:40 +00:00
parent 2af24ba9fd
commit c91c001093
1 changed files with 1 additions and 4 deletions

View File

@ -60,10 +60,7 @@ namespace BizHawk.Emulation.Consoles.Sega
return (sbyte)ReadIO(address);
if (address == 0xA11100) // Z80 BUS status
{
// TODO: note, its possible that something is supposed to be on the MSB (crap from the bus, ie, the next instruction)
return (short)(M68000HasZ80Bus && Z80Reset == false ? 0 : 1);
}
return (short)(M68000HasZ80Bus && Z80Reset == false ? 0x0000 : 0x0100);
Console.WriteLine("UNHANDLED READW {0:X6}", address);
return 0x7DCD;