Added PS/2 Model 80 (type 2) emulation.

This commit is contained in:
SarahW 2017-04-17 22:24:11 +01:00
commit 221df09912
14 changed files with 286 additions and 5 deletions

View file

@ -617,6 +617,20 @@ int loadbios()
fclose(f);
biosmask = 0x1ffff;
return 1;
case ROM_IBMPS2_M80:
f=romfopen("roms/i8580111/15f6637.bin","rb");
ff=romfopen("roms/i8580111/15f6639.bin","rb");
if (!f || !ff) break;
for (c = 0x0000; c < 0x20000; c += 2)
{
rom[c] = getc(f);
rom[c+1] = getc(ff);
}
fclose(ff);
fclose(f);
biosmask = 0x1ffff;
return 1;
}
printf("Failed to load ROM!\n");
if (f) fclose(f);