diff --git a/src/ibm.h b/src/ibm.h index 6ea7934..d263be5 100644 --- a/src/ibm.h +++ b/src/ibm.h @@ -449,6 +449,7 @@ enum ROM_T1200, ROM_PB_L300SX, ROM_NCR_PC4I, + ROM_TO16_PC, ROM_MAX }; diff --git a/src/mem.c b/src/mem.c index b4f3d4a..a7faf37 100644 --- a/src/mem.c +++ b/src/mem.c @@ -806,6 +806,13 @@ int loadbios() fclose(f); biosmask = 0x3fff; return 1; + + case ROM_TO16_PC: + f=romfopen("to16_pc/TO16_103.bin","rb"); + if (!f) break; + romfread(rom+0x8000,32768,1,f); + fclose(f); + return 1; } printf("Failed to load ROM!\n"); if (f) fclose(f); diff --git a/src/model.c b/src/model.c index b75b066..493301c 100644 --- a/src/model.c +++ b/src/model.c @@ -113,6 +113,7 @@ MODEL models[] = {"[8088] Schneider EuroPC", ROM_EUROPC, "europc", { {"", cpus_europc}, {"", NULL}, {"", NULL}}, 0, 0, 512, 640, 128, europc_init, NULL}, {"[8088] Tandy 1000", ROM_TANDY, "tandy", { {"", cpus_8088}, {"", NULL}, {"", NULL}}, 1, 0, 128, 640, 128, tandy1k_init, &tandy1000_device}, {"[8088] Tandy 1000 HX", ROM_TANDY1000HX, "tandy1000hx", { {"", cpus_8088}, {"", NULL}, {"", NULL}}, 1, 0, 256, 640, 128, tandy1k_init, &tandy1000hx_device}, + {"[8088] Thomson TO16 PC", ROM_TO16_PC, "to16_pc", { {"", cpus_8088}, {"", NULL}, {"", NULL}}, 0, 0, 512, 640, 128, xt_init, NULL}, {"[8088] Toshiba 1000", ROM_T1000, "t1000", { {"", cpus_8088}, {"", NULL}, {"", NULL}}, 1, 0, 512,1280, 768, xt_t1000_init, &t1000_device}, {"[8088] VTech Laser Turbo XT", ROM_LTXT, "ltxt", { {"", cpus_8088}, {"", NULL}, {"", NULL}}, 0, 0, 64,1152, 64, xt_laserxt_init, NULL},