Re-arranged roms' paths to be a bit more sane.
This commit is contained in:
230
src/mem.c
230
src/mem.c
@@ -82,7 +82,7 @@ uint32_t ram_mapped_addr[64];
|
||||
static void mem_load_atide115_bios()
|
||||
{
|
||||
FILE *f;
|
||||
f=romfopen(L"roms/ide_at_1_1_5.bin",L"rb");
|
||||
f=romfopen(L"roms/hdd/xtide/ide_at_1_1_5.bin",L"rb");
|
||||
|
||||
if (f)
|
||||
{
|
||||
@@ -97,8 +97,8 @@ int loadbios()
|
||||
FILE *f=NULL,*ff=NULL;
|
||||
int c;
|
||||
|
||||
loadfont(L"roms/mda.rom", 0);
|
||||
loadfont(L"roms/wy700.rom", 3);
|
||||
loadfont(L"roms/graphics/mda/mda.rom", 0);
|
||||
loadfont(L"roms/graphics/wyse700/wy700.rom", 3);
|
||||
|
||||
biosmask = 0xffff;
|
||||
|
||||
@@ -114,8 +114,8 @@ int loadbios()
|
||||
switch (romset)
|
||||
{
|
||||
case ROM_PC1512:
|
||||
f=romfopen(L"roms/pc1512/40043.v1",L"rb");
|
||||
ff=romfopen(L"roms/pc1512/40044.v1",L"rb");
|
||||
f=romfopen(L"roms/machines/pc1512/40043.v1",L"rb");
|
||||
ff=romfopen(L"roms/machines/pc1512/40044.v1",L"rb");
|
||||
if (!f || !ff) break;
|
||||
for (c=0xC000;c<0x10000;c+=2)
|
||||
{
|
||||
@@ -124,11 +124,11 @@ int loadbios()
|
||||
}
|
||||
fclose(ff);
|
||||
fclose(f);
|
||||
loadfont(L"roms/pc1512/40078.ic127", 2);
|
||||
loadfont(L"roms/machines/pc1512/40078.ic127", 2);
|
||||
return 1;
|
||||
case ROM_PC1640:
|
||||
f=romfopen(L"roms/pc1640/40044.v3",L"rb");
|
||||
ff=romfopen(L"roms/pc1640/40043.v3",L"rb");
|
||||
f=romfopen(L"roms/machines/pc1640/40044.v3",L"rb");
|
||||
ff=romfopen(L"roms/machines/pc1640/40043.v3",L"rb");
|
||||
if (!f || !ff) break;
|
||||
for (c=0xC000;c<0x10000;c+=2)
|
||||
{
|
||||
@@ -137,13 +137,13 @@ int loadbios()
|
||||
}
|
||||
fclose(ff);
|
||||
fclose(f);
|
||||
f=romfopen(L"roms/pc1640/40100",L"rb");
|
||||
f=romfopen(L"roms/machines/pc1640/40100",L"rb");
|
||||
if (!f) break;
|
||||
fclose(f);
|
||||
return 1;
|
||||
case ROM_PC200:
|
||||
f=romfopen(L"roms/pc200/pc20v2.1",L"rb");
|
||||
ff=romfopen(L"roms/pc200/pc20v2.0",L"rb");
|
||||
f=romfopen(L"roms/machines/pc200/pc20v2.1",L"rb");
|
||||
ff=romfopen(L"roms/machines/pc200/pc20v2.0",L"rb");
|
||||
if (!f || !ff) break;
|
||||
for (c=0xC000;c<0x10000;c+=2)
|
||||
{
|
||||
@@ -152,24 +152,24 @@ int loadbios()
|
||||
}
|
||||
fclose(ff);
|
||||
fclose(f);
|
||||
loadfont(L"roms/pc200/40109.bin", 1);
|
||||
loadfont(L"roms/machines/pc200/40109.bin", 1);
|
||||
return 1;
|
||||
case ROM_TANDY:
|
||||
f=romfopen(L"roms/tandy/tandy1t1.020",L"rb");
|
||||
f=romfopen(L"roms/machines/tandy/tandy1t1.020",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom,65536,1,f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
case ROM_TANDY1000HX:
|
||||
f = romfopen(L"roms/tandy1000hx/v020000.u12", L"rb");
|
||||
f = romfopen(L"roms/machines/tandy1000hx/v020000.u12", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
biosmask = 0x1ffff;
|
||||
return 1;
|
||||
case ROM_TANDY1000SL2:
|
||||
f = romfopen(L"roms/tandy1000sl2/8079047.hu1" ,L"rb");
|
||||
ff = romfopen(L"roms/tandy1000sl2/8079048.hu2",L"rb");
|
||||
f = romfopen(L"roms/machines/tandy1000sl2/8079047.hu1" ,L"rb");
|
||||
ff = romfopen(L"roms/machines/tandy1000sl2/8079048.hu2",L"rb");
|
||||
if (!f || !ff) break;
|
||||
fseek(f, 0x30000/2, SEEK_SET);
|
||||
fseek(ff, 0x30000/2, SEEK_SET);
|
||||
@@ -182,11 +182,11 @@ int loadbios()
|
||||
fclose(f);
|
||||
return 1;
|
||||
case ROM_IBMXT:
|
||||
f=romfopen(L"roms/ibmxt/xt.rom",L"rb");
|
||||
f=romfopen(L"roms/machines/ibmxt/xt.rom",L"rb");
|
||||
if (!f)
|
||||
{
|
||||
f = romfopen(L"roms/ibmxt/5000027.u19", L"rb");
|
||||
ff = romfopen(L"roms/ibmxt/1501512.u18", L"rb");
|
||||
f = romfopen(L"roms/machines/ibmxt/5000027.u19", L"rb");
|
||||
ff = romfopen(L"roms/machines/ibmxt/1501512.u18", L"rb");
|
||||
if (!f || !ff) break;
|
||||
fread(rom, 0x8000, 1, f);
|
||||
fread(rom + 0x8000, 0x8000, 1, ff);
|
||||
@@ -203,22 +203,22 @@ int loadbios()
|
||||
break;
|
||||
|
||||
case ROM_IBMPCJR:
|
||||
f = romfopen(L"roms/ibmpcjr/bios.rom", L"rb");
|
||||
f = romfopen(L"roms/machines/ibmpcjr/bios.rom", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x10000, 1, f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_PORTABLE:
|
||||
f=romfopen(L"roms/portable/Compaq Portable Plus 100666-001 Rev C u47.bin",L"rb");
|
||||
f=romfopen(L"roms/machines/portable/Compaq Portable Plus 100666-001 Rev C u47.bin",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom+0xE000,8192,1,f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_PORTABLEII:
|
||||
f = romfopen(L"roms/portableii/62x0820.u27", L"rb");
|
||||
ff =romfopen(L"roms/portableii/62x0821.u47", L"rb");
|
||||
f = romfopen(L"roms/machines/portableii/62x0820.u27", L"rb");
|
||||
ff =romfopen(L"roms/machines/portableii/62x0821.u47", L"rb");
|
||||
if (!f || !ff) break;
|
||||
for (c=0x0000;c<0x10000;c+=2)
|
||||
{
|
||||
@@ -230,9 +230,9 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_PORTABLEIII:
|
||||
case ROM_PORTABLEIII386:
|
||||
f = romfopen(L"roms/portableiii/62x0820.u27", L"rb");
|
||||
ff =romfopen(L"roms/portableiii/62x0821.u47", L"rb");
|
||||
case ROM_PORTABLEIII386:
|
||||
f = romfopen(L"roms/machines/portableiii/62x0820.u27", L"rb");
|
||||
ff =romfopen(L"roms/machines/portableiii/62x0821.u47", L"rb");
|
||||
if (!f || !ff) break;
|
||||
for (c=0x0000;c<0x10000;c+=2)
|
||||
{
|
||||
@@ -244,20 +244,20 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_GENXT:
|
||||
f=romfopen(L"roms/genxt/pcxt.rom",L"rb");
|
||||
f=romfopen(L"roms/machines/genxt/pcxt.rom",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom+0xE000,8192,1,f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
case ROM_DTKXT:
|
||||
f=romfopen(L"roms/dtk/DTK_ERSO_2.42_2764.bin",L"rb");
|
||||
f=romfopen(L"roms/machines/dtk/DTK_ERSO_2.42_2764.bin",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom+0xE000,8192,1,f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
case ROM_OLIM24:
|
||||
f = romfopen(L"roms/olivetti_m24/olivetti_m24_version_1.43_low.bin" ,L"rb");
|
||||
ff = romfopen(L"roms/olivetti_m24/olivetti_m24_version_1.43_high.bin",L"rb");
|
||||
f = romfopen(L"roms/machines/olivetti_m24/olivetti_m24_version_1.43_low.bin" ,L"rb");
|
||||
ff = romfopen(L"roms/machines/olivetti_m24/olivetti_m24_version_1.43_high.bin",L"rb");
|
||||
if (!f || !ff) break;
|
||||
for (c = 0x0000; c < 0x4000; c += 2)
|
||||
{
|
||||
@@ -269,8 +269,8 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_PC2086:
|
||||
f = romfopen(L"roms/pc2086/40179.ic129" ,L"rb");
|
||||
ff = romfopen(L"roms/pc2086/40180.ic132",L"rb");
|
||||
f = romfopen(L"roms/machines/pc2086/40179.ic129" ,L"rb");
|
||||
ff = romfopen(L"roms/machines/pc2086/40180.ic132",L"rb");
|
||||
if (!f || !ff) break;
|
||||
pclog("Loading BIOS\n");
|
||||
for (c = 0x0000; c < 0x4000; c += 2)
|
||||
@@ -281,26 +281,26 @@ int loadbios()
|
||||
pclog("%02X %02X %02X\n", rom[0xfff0], rom[0xfff1], rom[0xfff2]);
|
||||
fclose(ff);
|
||||
fclose(f);
|
||||
f = romfopen(L"roms/pc2086/40186.ic171", L"rb");
|
||||
f = romfopen(L"roms/machines/pc2086/40186.ic171", L"rb");
|
||||
if (!f) break;
|
||||
fclose(f);
|
||||
biosmask = 0x3fff;
|
||||
return 1;
|
||||
|
||||
case ROM_PC3086:
|
||||
f = romfopen(L"roms/pc3086/fc00.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/pc3086/fc00.bin", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x4000, 1, f);
|
||||
fclose(f);
|
||||
f = romfopen(L"roms/pc3086/c000.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/pc3086/c000.bin", L"rb");
|
||||
if (!f) break;
|
||||
fclose(f);
|
||||
biosmask = 0x3fff;
|
||||
return 1;
|
||||
|
||||
case ROM_IBMAT:
|
||||
f = romfopen(L"roms/ibmat/62x0820.u27", L"rb");
|
||||
ff =romfopen(L"roms/ibmat/62x0821.u47", L"rb");
|
||||
f = romfopen(L"roms/machines/ibmat/62x0820.u27", L"rb");
|
||||
ff =romfopen(L"roms/machines/ibmat/62x0821.u47", L"rb");
|
||||
if (!f || !ff) break;
|
||||
for (c=0x0000;c<0x10000;c+=2)
|
||||
{
|
||||
@@ -310,9 +310,10 @@ int loadbios()
|
||||
fclose(ff);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_CMDPC30:
|
||||
f = romfopen(L"roms/cmdpc30/commodore pc 30 iii even.bin", L"rb");
|
||||
ff = romfopen(L"roms/cmdpc30/commodore pc 30 iii odd.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/cmdpc30/commodore pc 30 iii even.bin", L"rb");
|
||||
ff = romfopen(L"roms/machines/cmdpc30/commodore pc 30 iii odd.bin", L"rb");
|
||||
if (!f || !ff) break;
|
||||
for (c = 0x0000; c < 0x8000; c += 2)
|
||||
{
|
||||
@@ -323,68 +324,69 @@ int loadbios()
|
||||
fclose(f);
|
||||
biosmask = 0x7fff;
|
||||
return 1;
|
||||
|
||||
case ROM_AMI386SX:
|
||||
f=romfopen(L"roms/ami386/ami386.bin",L"rb");
|
||||
f=romfopen(L"roms/machines/ami386/ami386.bin",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom,65536,1,f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_AMI386DX_OPTI495: /*This uses the OPTi 82C495 chipset*/
|
||||
f=romfopen(L"roms/ami386dx/OPT495SX.AMI",L"rb");
|
||||
f=romfopen(L"roms/machines/ami386dx/OPT495SX.AMI",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom,65536,1,f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
case ROM_MR386DX_OPTI495: /*This uses the OPTi 82C495 chipset*/
|
||||
f=romfopen(L"roms/mr386dx/OPT495SX.MR",L"rb");
|
||||
f=romfopen(L"roms/machines/mr386dx/OPT495SX.MR",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom,65536,1,f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_AMI286:
|
||||
f=romfopen(L"roms/ami286/amic206.bin",L"rb");
|
||||
f=romfopen(L"roms/machines/ami286/amic206.bin",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom,65536,1,f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_AWARD286:
|
||||
f=romfopen(L"roms/award286/award.bin",L"rb");
|
||||
f=romfopen(L"roms/machines/award286/award.bin",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom,65536,1,f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_EUROPC:
|
||||
f=romfopen(L"roms/europc/50145",L"rb");
|
||||
f=romfopen(L"roms/machines/europc/50145",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom+0x8000,32768,1,f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_IBMPC:
|
||||
f=romfopen(L"roms/ibmpc/pc102782.bin",L"rb");
|
||||
f=romfopen(L"roms/machines/ibmpc/pc102782.bin",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom+0xE000,8192,1,f);
|
||||
fclose(f);
|
||||
f=romfopen(L"roms/ibmpc/ibm-basic-1.10.rom",L"rb");
|
||||
if (!f)
|
||||
{
|
||||
f=romfopen(L"roms/ibmpc/basicc11.f6",L"rb");
|
||||
f=romfopen(L"roms/machines/ibmpc/basicc11.f6",L"rb");
|
||||
if (!f) return 1; /*I don't really care if BASIC is there or not*/
|
||||
fread(rom+0x6000,8192,1,f);
|
||||
fclose(f);
|
||||
f=romfopen(L"roms/ibmpc/basicc11.f8",L"rb");
|
||||
f=romfopen(L"roms/machines/ibmpc/basicc11.f8",L"rb");
|
||||
if (!f) break; /*But if some of it is there, then all of it must be*/
|
||||
fread(rom+0x8000,8192,1,f);
|
||||
fclose(f);
|
||||
f=romfopen(L"roms/ibmpc/basicc11.fa",L"rb");
|
||||
f=romfopen(L"roms/machines/ibmpc/basicc11.fa",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom+0xA000,8192,1,f);
|
||||
fclose(f);
|
||||
f=romfopen(L"roms/ibmpc/basicc11.fc",L"rb");
|
||||
f=romfopen(L"roms/machines/ibmpc/basicc11.fc",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom+0xC000,8192,1,f);
|
||||
fclose(f);
|
||||
@@ -399,8 +401,8 @@ int loadbios()
|
||||
|
||||
case ROM_MEGAPC:
|
||||
case ROM_MEGAPCDX:
|
||||
f = romfopen(L"roms/megapc/41651-bios lo.u18", L"rb");
|
||||
ff = romfopen(L"roms/megapc/211253-bios hi.u19", L"rb");
|
||||
f = romfopen(L"roms/machines/megapc/41651-bios lo.u18", L"rb");
|
||||
ff = romfopen(L"roms/machines/megapc/211253-bios hi.u19", L"rb");
|
||||
if (!f || !ff) break;
|
||||
fseek(f, 0x8000, SEEK_SET);
|
||||
fseek(ff, 0x8000, SEEK_SET);
|
||||
@@ -414,21 +416,21 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_AMI486:
|
||||
f=romfopen(L"roms/ami486/ami486.BIN",L"rb");
|
||||
f=romfopen(L"roms/machines/ami486/ami486.BIN",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom,65536,1,f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_WIN486:
|
||||
f=romfopen(L"roms/win486/ALI1429G.AMW",L"rb");
|
||||
f=romfopen(L"roms/machines/win486/ALI1429G.AMW",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom,65536,1,f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_SIS496:
|
||||
f = romfopen(L"roms/sis496/SIS496_3.AWA", L"rb");
|
||||
f = romfopen(L"roms/machines/sis496/SIS496_3.AWA", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -438,7 +440,7 @@ int loadbios()
|
||||
|
||||
#if 0
|
||||
case ROM_430VX:
|
||||
f = romfopen(L"roms/430vx/55XWUQ0E.BIN", L"rb");
|
||||
f = romfopen(L"roms/machines/430vx/55XWUQ0E.BIN", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -447,12 +449,12 @@ int loadbios()
|
||||
#endif
|
||||
|
||||
case ROM_REVENGE:
|
||||
f = romfopen(L"roms/revenge/1009AF2_.BIO", L"rb");
|
||||
f = romfopen(L"roms/machines/revenge/1009AF2_.BIO", L"rb");
|
||||
if (!f) break;
|
||||
fseek(f, 0x80, SEEK_SET);
|
||||
fread(rom + 0x10000, 0x10000, 1, f);
|
||||
fclose(f);
|
||||
f = romfopen(L"roms/revenge/1009AF2_.BI1", L"rb");
|
||||
f = romfopen(L"roms/machines/revenge/1009AF2_.BI1", L"rb");
|
||||
if (!f) break;
|
||||
fseek(f, 0x80, SEEK_SET);
|
||||
fread(rom, 0xc000, 1, f);
|
||||
@@ -460,12 +462,12 @@ int loadbios()
|
||||
biosmask = 0x1ffff;
|
||||
return 1;
|
||||
case ROM_ENDEAVOR:
|
||||
f = romfopen(L"roms/endeavor/1006CB0_.BIO", L"rb");
|
||||
f = romfopen(L"roms/machines/endeavor/1006CB0_.BIO", L"rb");
|
||||
if (!f) break;
|
||||
fseek(f, 0x80, SEEK_SET);
|
||||
fread(rom + 0x10000, 0x10000, 1, f);
|
||||
fclose(f);
|
||||
f = romfopen(L"roms/endeavor/1006CB0_.BI1", L"rb");
|
||||
f = romfopen(L"roms/machines/endeavor/1006CB0_.BI1", L"rb");
|
||||
if (!f) break;
|
||||
fseek(f, 0x80, SEEK_SET);
|
||||
fread(rom, 0xd000, 1, f);
|
||||
@@ -474,7 +476,7 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_IBMPS1_2011:
|
||||
f = romfopen(L"roms/ibmps1es/f80000.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/ibmps1es/f80000.bin", L"rb");
|
||||
if (!f) break;
|
||||
fseek(f, 0x60000, SEEK_SET);
|
||||
fread(rom, 0x20000, 1, f);
|
||||
@@ -484,7 +486,7 @@ int loadbios()
|
||||
|
||||
case ROM_IBMPS1_2121:
|
||||
case ROM_IBMPS1_2121_ISA:
|
||||
f = romfopen(L"roms/ibmps1_2121/fc0000.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/ibmps1_2121/fc0000.bin", L"rb");
|
||||
if (!f) break;
|
||||
fseek(f, 0x20000, SEEK_SET);
|
||||
fread(rom, 0x20000, 1, f);
|
||||
@@ -497,7 +499,7 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_IBMPS1_2133:
|
||||
f = romfopen(L"roms/ibmps1_2133/PS1_2133_52G2974_ROM.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/ibmps1_2133/PS1_2133_52G2974_ROM.bin", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -505,8 +507,8 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_DESKPRO_386:
|
||||
f=romfopen(L"roms/deskpro386/109592-005.U11.bin",L"rb");
|
||||
ff=romfopen(L"roms/deskpro386/109591-005.U13.bin",L"rb");
|
||||
f=romfopen(L"roms/machines/deskpro386/109592-005.U11.bin",L"rb");
|
||||
ff=romfopen(L"roms/machines/deskpro386/109591-005.U13.bin",L"rb");
|
||||
if (!f || !ff) break;
|
||||
for (c = 0x0000; c < 0x8000; c += 2)
|
||||
{
|
||||
@@ -519,33 +521,33 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_AMIXT:
|
||||
f = romfopen(L"roms/amixt/AMI_8088_BIOS_31JAN89.BIN", L"rb");
|
||||
f = romfopen(L"roms/machines/amixt/AMI_8088_BIOS_31JAN89.BIN", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom + 0xE000, 8192, 1, f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_LTXT:
|
||||
f = romfopen(L"roms/ltxt/27C64.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/ltxt/27C64.bin", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom + 0xE000, 8192, 1, f);
|
||||
fclose(f);
|
||||
f=romfopen(L"roms/ltxt/ibm-basic-1.10.rom",L"rb");
|
||||
if (!f)
|
||||
{
|
||||
f=romfopen(L"roms/ltxt/basicc11.f6",L"rb");
|
||||
f=romfopen(L"roms/machines/ltxt/basicc11.f6",L"rb");
|
||||
if (!f) return 1; /*I don't really care if BASIC is there or not*/
|
||||
fread(rom+0x6000,8192,1,f);
|
||||
fclose(f);
|
||||
f=romfopen(L"roms/ltxt/basicc11.f8",L"rb");
|
||||
f=romfopen(L"roms/machines/ltxt/basicc11.f8",L"rb");
|
||||
if (!f) break; /*But if some of it is there, then all of it must be*/
|
||||
fread(rom+0x8000,8192,1,f);
|
||||
fclose(f);
|
||||
f=romfopen(L"roms/ltxt/basicc11.fa",L"rb");
|
||||
f=romfopen(L"roms/machines/ltxt/basicc11.fa",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom+0xA000,8192,1,f);
|
||||
fclose(f);
|
||||
f=romfopen(L"roms/ltxt/basicc11.fc",L"rb");
|
||||
f=romfopen(L"roms/machines/ltxt/basicc11.fc",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom+0xC000,8192,1,f);
|
||||
fclose(f);
|
||||
@@ -559,26 +561,26 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_LXT3:
|
||||
f = romfopen(L"roms/lxt3/27C64D.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/lxt3/27C64D.bin", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom + 0xE000, 8192, 1, f);
|
||||
fclose(f);
|
||||
f=romfopen(L"roms/lxt3/ibm-basic-1.10.rom",L"rb");
|
||||
f=romfopen(L"roms/machines/lxt3/ibm-basic-1.10.rom",L"rb");
|
||||
if (!f)
|
||||
{
|
||||
f=romfopen(L"roms/lxt3/basicc11.f6",L"rb");
|
||||
f=romfopen(L"roms/machines/lxt3/basicc11.f6",L"rb");
|
||||
if (!f) return 1; /*I don't really care if BASIC is there or not*/
|
||||
fread(rom+0x6000,8192,1,f);
|
||||
fclose(f);
|
||||
f=romfopen(L"roms/lxt3/basicc11.f8",L"rb");
|
||||
f=romfopen(L"roms/machines/lxt3/basicc11.f8",L"rb");
|
||||
if (!f) break; /*But if some of it is there, then all of it must be*/
|
||||
fread(rom+0x8000,8192,1,f);
|
||||
fclose(f);
|
||||
f=romfopen(L"roms/lxt3/basicc11.fa",L"rb");
|
||||
f=romfopen(L"roms/machines/lxt3/basicc11.fa",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom+0xA000,8192,1,f);
|
||||
fclose(f);
|
||||
f=romfopen(L"roms/lxt3/basicc11.fc",L"rb");
|
||||
f=romfopen(L"roms/machines/lxt3/basicc11.fc",L"rb");
|
||||
if (!f) break;
|
||||
fread(rom+0xC000,8192,1,f);
|
||||
fclose(f);
|
||||
@@ -592,42 +594,42 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_SPC4200P: /*Samsung SPC-4200P*/
|
||||
f = romfopen(L"roms/spc4200p/U8.01", L"rb");
|
||||
f = romfopen(L"roms/machines/spc4200p/U8.01", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 65536, 1, f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_SUPER286TR: /*Hyundai Super-286TR*/
|
||||
f = romfopen(L"roms/super286tr/hyundai_award286.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/super286tr/hyundai_award286.bin", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 65536, 1, f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_DTK386: /*Uses NEAT chipset*/
|
||||
f = romfopen(L"roms/dtk386/3cto001.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/dtk386/3cto001.bin", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 65536, 1, f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_PXXT:
|
||||
f = romfopen(L"roms/pxxt/000p001.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/pxxt/000p001.bin", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom + 0xE000, 8192, 1, f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_JUKOPC:
|
||||
f = romfopen(L"roms/jukopc/000o001.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/jukopc/000o001.bin", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom + 0xE000, 8192, 1, f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_IBMPS2_M30_286:
|
||||
f = romfopen(L"roms/ibmps2_m30_286/33f5381a.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/ibmps2_m30_286/33f5381a.bin", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -639,14 +641,14 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_DTK486:
|
||||
f = romfopen(L"roms/dtk486/4siw005.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/dtk486/4siw005.bin", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x10000, 1, f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
case ROM_R418:
|
||||
f = romfopen(L"roms/r418/r418i.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/r418/r418i.bin", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -656,7 +658,7 @@ int loadbios()
|
||||
|
||||
#if 0
|
||||
case ROM_586MC1:
|
||||
f = romfopen(L"roms/586mc1/IS.34", L"rb");
|
||||
f = romfopen(L"roms/machines/586mc1/IS.34", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -665,12 +667,12 @@ int loadbios()
|
||||
#endif
|
||||
|
||||
case ROM_PLATO:
|
||||
f = romfopen(L"roms/plato/1016AX1_.BIO", L"rb");
|
||||
f = romfopen(L"roms/machines/plato/1016AX1_.BIO", L"rb");
|
||||
if (!f) break;
|
||||
fseek(f, 0x80, SEEK_SET);
|
||||
fread(rom + 0x10000, 0x10000, 1, f);
|
||||
fclose(f);
|
||||
f = romfopen(L"roms/plato/1016AX1_.BI1", L"rb");
|
||||
f = romfopen(L"roms/machines/plato/1016AX1_.BI1", L"rb");
|
||||
if (!f) break;
|
||||
fseek(f, 0x80, SEEK_SET);
|
||||
fread(rom, 0xd000, 1, f);
|
||||
@@ -679,7 +681,7 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_MB500N:
|
||||
f = romfopen(L"roms/mb500n/031396S.BIN", L"rb"); /* Works */
|
||||
f = romfopen(L"roms/machines/mb500n/031396S.BIN", L"rb"); /* Works */
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -687,7 +689,7 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_AP53:
|
||||
f = romfopen(L"roms/ap53/AP53R2C0.ROM", L"rb"); /* Works */
|
||||
f = romfopen(L"roms/machines/ap53/AP53R2C0.ROM", L"rb"); /* Works */
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -695,7 +697,7 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_P55T2S:
|
||||
f = romfopen(L"roms/p55t2s/S6Y08T.ROM", L"rb"); /* Works */
|
||||
f = romfopen(L"roms/machines/p55t2s/S6Y08T.ROM", L"rb"); /* Works */
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -703,7 +705,7 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_PRESIDENT:
|
||||
f = romfopen(L"roms/president/BIOS.BIN", L"rb");
|
||||
f = romfopen(L"roms/machines/president/BIOS.BIN", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -711,7 +713,7 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_P54TP4XE:
|
||||
f = romfopen(L"roms/p54tp4xe/T15I0302.AWD", L"rb");
|
||||
f = romfopen(L"roms/machines/p54tp4xe/T15I0302.AWD", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -719,15 +721,15 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_ACERM3A:
|
||||
f = romfopen(L"roms/acerm3a/r01-b3.bin", L"rb");
|
||||
f = romfopen(L"roms/machines/acerm3a/r01-b3.bin", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
biosmask = 0x1ffff;
|
||||
return 1;
|
||||
|
||||
case ROM_ACERV35N:
|
||||
f = romfopen(L"roms/acerv35n/V35ND1S1.BIN", L"rb");
|
||||
case ROM_ACERV35N:
|
||||
f = romfopen(L"roms/machines/acerv35n/V35ND1S1.BIN", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -735,7 +737,7 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_P55VA:
|
||||
f = romfopen(L"roms/p55va/VA021297.BIN", L"rb");
|
||||
f = romfopen(L"roms/machines/p55va/VA021297.BIN", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -743,7 +745,7 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_P55T2P4:
|
||||
f = romfopen(L"roms/p55t2p4/0207_J2.BIN", L"rb");
|
||||
f = romfopen(L"roms/machines/p55t2p4/0207_J2.BIN", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -751,7 +753,7 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_P55TVP4:
|
||||
f = romfopen(L"roms/p55tvp4/TV5I0204.AWD", L"rb");
|
||||
f = romfopen(L"roms/machines/p55tvp4/TV5I0204.AWD", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -759,7 +761,7 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_440FX:
|
||||
f = romfopen(L"roms/440fx/NTMAW501.BIN", L"rb"); /* Working Tyan BIOS. */
|
||||
f = romfopen(L"roms/machines/440fx/NTMAW501.BIN", L"rb"); /* Working Tyan BIOS. */
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -767,7 +769,7 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_S1668:
|
||||
f = romfopen(L"roms/tpatx/S1668P.ROM", L"rb"); /* Working Tyan BIOS. */
|
||||
f = romfopen(L"roms/machines/tpatx/S1668P.ROM", L"rb"); /* Working Tyan BIOS. */
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -775,12 +777,12 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_THOR:
|
||||
f = romfopen(L"roms/thor/1006CN0_.BIO", L"rb");
|
||||
f = romfopen(L"roms/machines/thor/1006CN0_.BIO", L"rb");
|
||||
if (!f) break;
|
||||
fseek(f, 0x80, SEEK_SET);
|
||||
fread(rom + 0x10000, 0x10000, 1, f);
|
||||
fclose(f);
|
||||
f = romfopen(L"roms/thor/1006CN0_.BI1", L"rb");
|
||||
f = romfopen(L"roms/machines/thor/1006CN0_.BI1", L"rb");
|
||||
if (!f) break;
|
||||
fseek(f, 0x80, SEEK_SET);
|
||||
fread(rom, 0x10000, 1, f);
|
||||
@@ -789,7 +791,7 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_MRTHOR:
|
||||
f = romfopen(L"roms/mrthor/MR_ATX.BIO", L"rb");
|
||||
f = romfopen(L"roms/machines/mrthor/MR_ATX.BIO", L"rb");
|
||||
if (!f) break;
|
||||
fread(rom, 0x20000, 1, f);
|
||||
fclose(f);
|
||||
@@ -797,12 +799,12 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_ZAPPA:
|
||||
f = romfopen(L"roms/zappa/1006BS0_.BIO", L"rb");
|
||||
f = romfopen(L"roms/machines/zappa/1006BS0_.BIO", L"rb");
|
||||
if (!f) break;
|
||||
fseek(f, 0x80, SEEK_SET);
|
||||
fread(rom + 0x10000, 0x10000, 1, f);
|
||||
fclose(f);
|
||||
f = romfopen(L"roms/zappa/1006BS0_.BI1", L"rb");
|
||||
f = romfopen(L"roms/machines/zappa/1006BS0_.BI1", L"rb");
|
||||
if (!f) break;
|
||||
fseek(f, 0x80, SEEK_SET);
|
||||
fread(rom, 0x10000, 1, f);
|
||||
@@ -811,8 +813,8 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_IBMPS2_M50:
|
||||
f=romfopen(L"roms/i8550021/90x7423.zm14",L"rb");
|
||||
ff=romfopen(L"roms/i8550021/90x7426.zm16",L"rb");
|
||||
f=romfopen(L"roms/machines/ibmps2_m50/90x7423.zm14",L"rb");
|
||||
ff=romfopen(L"roms/machines/ibmps2_m50/90x7426.zm16",L"rb");
|
||||
if (!f || !ff) break;
|
||||
for (c = 0x0000; c < 0x10000; c += 2)
|
||||
{
|
||||
@@ -821,8 +823,8 @@ int loadbios()
|
||||
}
|
||||
fclose(ff);
|
||||
fclose(f);
|
||||
f=romfopen(L"roms/i8550021/90x7420.zm13",L"rb");
|
||||
ff=romfopen(L"roms/i8550021/90x7429.zm18",L"rb");
|
||||
f=romfopen(L"roms/machines/ibmps2_m50/90x7420.zm13",L"rb");
|
||||
ff=romfopen(L"roms/machines/ibmps2_m50/90x7429.zm18",L"rb");
|
||||
if (!f || !ff) break;
|
||||
for (c = 0x10000; c < 0x20000; c += 2)
|
||||
{
|
||||
@@ -835,8 +837,8 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_IBMPS2_M55SX:
|
||||
f=romfopen(L"roms/i8555081/33f8146.zm41",L"rb");
|
||||
ff=romfopen(L"roms/i8555081/33f8145.zm40",L"rb");
|
||||
f=romfopen(L"roms/machines/ibmps2_m55sx/33f8146.zm41",L"rb");
|
||||
ff=romfopen(L"roms/machines/ibmps2_m55sx/33f8145.zm40",L"rb");
|
||||
if (!f || !ff) break;
|
||||
for (c = 0x0000; c < 0x20000; c += 2)
|
||||
{
|
||||
@@ -849,8 +851,8 @@ int loadbios()
|
||||
return 1;
|
||||
|
||||
case ROM_IBMPS2_M80:
|
||||
f=romfopen(L"roms/i8580111/15f6637.bin",L"rb");
|
||||
ff=romfopen(L"roms/i8580111/15f6639.bin",L"rb");
|
||||
f=romfopen(L"roms/machines/ibmps2_m80/15f6637.bin",L"rb");
|
||||
ff=romfopen(L"roms/machines/ibmps2_m80/15f6639.bin",L"rb");
|
||||
if (!f || !ff) break;
|
||||
for (c = 0x0000; c < 0x20000; c += 2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user