Add read-only cassette emulation to IBM 5150 PC. Patch from JohnElliott.

This commit is contained in:
SarahW 2019-04-17 20:37:23 +01:00
commit 84a098bc98
18 changed files with 1891 additions and 1136 deletions

View file

@ -3484,14 +3484,6 @@ void execx86(int cycs)
// if (instime) printf("%i %i %i %i\n",cycdiff,cycles,memcycs,fetchclocks);
FETCHADD(((cycdiff-cycles)-memcycs)-fetchclocks);
if ((cycdiff-cycles)<memcycs) cycles-=(memcycs-(cycdiff-cycles));
if (romset==ROM_IBMPC)
{
if ((cs+cpu_state.pc)==0xFE4A7) /*You didn't seriously think I was going to emulate the cassette, did you?*/
{
CX=1;
BX=0x500;
}
}
memcycs=0;
insc++;