Fix so that Infiltrator boots

This commit is contained in:
tomch 2007-08-11 11:25:51 +00:00
parent f2a52d23f3
commit 47206a864c
2 changed files with 4 additions and 4 deletions

View File

@ -1458,7 +1458,7 @@ static BYTE __stdcall MB_Write(WORD PC, WORD nAddr, BYTE bWrite, BYTE nValue, UL
static BYTE __stdcall PhasorIO (WORD PC, WORD nAddr, BYTE bWrite, BYTE nValue, ULONG nCyclesLeft)
{
if(!g_bPhasorEnable)
return 0;
return MemReadFloatingBus(nCyclesLeft);
if(g_nPhasorMode < 2)
g_nPhasorMode = nAddr & 1;
@ -1467,7 +1467,7 @@ static BYTE __stdcall PhasorIO (WORD PC, WORD nAddr, BYTE bWrite, BYTE nValue, U
AY8910_InitClock((int)fCLK);
return 0;
return MemReadFloatingBus(nCyclesLeft);
}
//-----------------------------------------------------------------------------

View File

@ -2168,7 +2168,7 @@ WORD VideoGetScannerAddress(bool* pbVblBar_OUT, const DWORD uExecutedCycles)
// machine state switches
//
int nHires = (SW_HIRES) ? 1 : 0;
int nHires = (SW_HIRES & !SW_TEXT) ? 1 : 0;
int nPage2 = (SW_PAGE2) ? 1 : 0;
int n80Store = (MemGet80Store()) ? 1 : 0;
@ -2213,7 +2213,7 @@ WORD VideoGetScannerAddress(bool* pbVblBar_OUT, const DWORD uExecutedCycles)
// calculate scanning memory address
//
if (SW_HIRES && SW_MIXED && (v_4 & v_2))
if (SW_HIRES && SW_MIXED && (v_4 & v_2)) // NICK: Should this be (SW_HIRES && !SW_TEXT) instead of just 'SW_HIRES' ?
{
nHires = 0; // (address is in text memory)
}