Added emulation of the Intel 82335 chip for the Phoenix 386 clone;

Added the Samsung SPC-4200P;
Added the Chips & Technologies VGA 451;
Applied all mainline PCem commits;
Added Amstrad MegaPC 386DX model (exits per documentation that I have in German).
This commit is contained in:
OBattler
2017-02-19 01:58:21 +01:00
parent 946e9d8b7e
commit b8418b94de
14 changed files with 146 additions and 43 deletions

View File

@@ -105,6 +105,27 @@ void *vga_init()
return vga;
}
void *vga_chips_init()
{
vga_t *vga = malloc(sizeof(vga_t));
memset(vga, 0, sizeof(vga_t));
rom_init(&vga->bios_rom, "roms/SD620.04M", 0xc0000, 0x8000, 0x7fff, 0x2000, MEM_MAPPING_EXTERNAL);
svga_init(&vga->svga, vga, 1 << 18, /*256kb*/
NULL,
vga_in, vga_out,
NULL,
NULL);
io_sethandler(0x03c0, 0x0020, vga_in, NULL, NULL, vga_out, NULL, NULL, vga);
vga->svga.bpp = 8;
vga->svga.miscout = 1;
return vga;
}
void *trigem_unk_init()
{
vga_t *vga = malloc(sizeof(vga_t));
@@ -155,6 +176,11 @@ static int vga_available()
return rom_present("roms/ibm_vga.bin");
}
static int vga_chips_available()
{
return rom_present("roms/SD620.04M");
}
void vga_close(void *p)
{
vga_t *vga = (vga_t *)p;
@@ -196,6 +222,17 @@ device_t vga_device =
vga_force_redraw,
vga_add_status_info
};
device_t vga_chips_device =
{
"Chips VGA",
0,
vga_chips_init,
vga_close,
vga_chips_available,
vga_speed_changed,
vga_force_redraw,
vga_add_status_info
};
device_t trigem_unk_device =
{
"VGA",