Added Compaq Portable Plus emulation. Patch from dns2kv2.
This commit is contained in:
parent
dd590d2093
commit
d7dfc6a178
3 changed files with 19 additions and 0 deletions
|
|
@ -455,6 +455,7 @@ enum
|
|||
ROM_PB570,
|
||||
ROM_ZAPPA,
|
||||
ROM_PB520R,
|
||||
ROM_COMPAQ_PIP,
|
||||
|
||||
ROM_MAX
|
||||
};
|
||||
|
|
|
|||
|
|
@ -890,6 +890,14 @@ int loadbios()
|
|||
fclose(f);
|
||||
biosmask = 0x1ffff;
|
||||
return 1;
|
||||
|
||||
case ROM_COMPAQ_PIP:
|
||||
f=romfopen("compaq_pip/Compaq Portable Plus 100666-001 Rev C.bin","rb");
|
||||
if (!f) break;
|
||||
romfread(rom + 0xE000, 8192, 1, f);
|
||||
fclose(f);
|
||||
return 1;
|
||||
|
||||
}
|
||||
printf("Failed to load ROM!\n");
|
||||
if (f) fclose(f);
|
||||
|
|
|
|||
10
src/model.c
10
src/model.c
|
|
@ -102,6 +102,7 @@ void at_sl82c460_init();
|
|||
void at_zappa_init();
|
||||
void at_pb520r_init();
|
||||
void at_pb570_init();
|
||||
void compaq_pip_init();
|
||||
int model;
|
||||
|
||||
int AMSTRAD, AT, PCI, TANDY;
|
||||
|
|
@ -110,6 +111,7 @@ MODEL models[] =
|
|||
{
|
||||
{"[8088] AMI XT clone", ROM_AMIXT, "amixt", { {"", cpus_8088}, {"", NULL}, {"", NULL}}, 0, 0, 64, 640, 64, xt_init, NULL},
|
||||
{"[8088] Atari PC3", ROM_ATARIPC3, "ataripc3", { {"", cpus_8088}, {"", NULL}, {"", NULL}}, 0, 0, 64, 640, 64, xt_init, NULL},
|
||||
{"[8088] Compaq Portable Plus", ROM_COMPAQ_PIP, "compaq_pip", { {"", cpus_8088}, {"", NULL}, {"", NULL}}, 0, 0, 128, 640, 64, compaq_pip_init, NULL},
|
||||
{"[8088] DTK XT clone", ROM_DTKXT, "dtk", { {"", cpus_8088}, {"", NULL}, {"", NULL}}, 0, 0, 64, 640, 64, xt_init, NULL},
|
||||
{"[8088] Generic XT clone", ROM_GENXT, "genxt", { {"", cpus_8088}, {"", NULL}, {"", NULL}}, 0, 0, 64, 640, 64, xt_init, NULL},
|
||||
{"[8088] IBM PC", ROM_IBMPC, "ibmpc", { {"", cpus_8088}, {"", NULL}, {"", NULL}}, 0, 0, 64, 640, 32, xt_init, NULL},
|
||||
|
|
@ -258,6 +260,14 @@ void xt_init()
|
|||
device_add(&gameport_device);
|
||||
}
|
||||
|
||||
void compaq_pip_init()
|
||||
{
|
||||
xt_init();
|
||||
lpt1_remove();
|
||||
lpt2_remove();
|
||||
lpt1_init(0x3bc);
|
||||
}
|
||||
|
||||
void pcjr_init()
|
||||
{
|
||||
mem_add_bios();
|
||||
|
|
|
|||
Loading…
Reference in a new issue