gen: allow word-reads to query Z80 bus status. now thunder force 3 boots.

This commit is contained in:
beirich 2012-08-27 02:59:26 +00:00
parent 8ad3e72ffa
commit c4afd9f393
1 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,12 @@ namespace BizHawk.Emulation.Consoles.Sega
if (address >= 0xA10000 && address <= 0xA1001F)
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);
}
Console.WriteLine("UNHANDLED READW {0:X6}", address);
return 0x7DCD;
}