mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-10 13:29:56 +00:00
Certain games (such as Pooyan) expect RNDL and RNDH to be non-zero. Initialize to non-zero value.
This commit is contained in:
parent
8637dfa7af
commit
81ce9c54d1
@ -1392,6 +1392,12 @@ void MemReset ()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/AppleWin/AppleWin/issues/206
|
||||||
|
// On a real Apple the RNDL and RNDH are initialized to random values from a cold boot.
|
||||||
|
DWORD clock = timeGetTime(); // We can't use g_nCumulativeCycles as it will be zero on a fresh execution.
|
||||||
|
memmain[ 0x4E ] = (clock >> 0) & 0xFF;
|
||||||
|
memmain[ 0x4F ] = (clock >> 8) & 0xFF;
|
||||||
|
|
||||||
// SET UP THE MEMORY IMAGE
|
// SET UP THE MEMORY IMAGE
|
||||||
mem = memimage;
|
mem = memimage;
|
||||||
//image = 0;
|
//image = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user