Ported the Yamaha V6355 from PCem.
This commit is contained in:
72
src/include/86box/vid_v6355.h
Normal file
72
src/include/86box/vid_v6355.h
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||||
|
* running old operating systems and software designed for IBM
|
||||||
|
* PC systems and compatibles from 1981 through fairly recent
|
||||||
|
* system designs based on the PCI bus.
|
||||||
|
*
|
||||||
|
* This file is part of the 86Box distribution.
|
||||||
|
*
|
||||||
|
* Emulation of the old and new IBM CGA graphics cards.
|
||||||
|
*
|
||||||
|
* Authors: Sarah Walker, <https://pcem-emulator.co.uk/>
|
||||||
|
* Miran Grca, <mgrca8@gmail.com>
|
||||||
|
* Connor Hyde / starfrost, <mario64crashed@gmail.com>
|
||||||
|
*
|
||||||
|
* Copyright 2008-2018 Sarah Walker.
|
||||||
|
* Copyright 2016-2018 Miran Grca.
|
||||||
|
* Copyright 2025 starfrost (refactoring).
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef VIDEO_V6355_H
|
||||||
|
#define VIDEO_V6355_H
|
||||||
|
|
||||||
|
typedef struct v6355_t {
|
||||||
|
mem_mapping_t mapping;
|
||||||
|
|
||||||
|
uint8_t cgastat;
|
||||||
|
uint8_t cgamode;
|
||||||
|
uint8_t cgacol;
|
||||||
|
|
||||||
|
uint8_t pad[3];
|
||||||
|
uint8_t crtc[32];
|
||||||
|
uint8_t v6355data[106];
|
||||||
|
uint8_t charbuffer[256];
|
||||||
|
|
||||||
|
uint16_t ma;
|
||||||
|
uint16_t maback;
|
||||||
|
|
||||||
|
/* The V6355 has its own set of registers, as well as the emulated MC6845 */
|
||||||
|
int v6355reg;
|
||||||
|
int crtcreg;
|
||||||
|
int fontbase;
|
||||||
|
int linepos;
|
||||||
|
int displine;
|
||||||
|
int sc;
|
||||||
|
int vc;
|
||||||
|
int cgadispon;
|
||||||
|
int con;
|
||||||
|
int coff;
|
||||||
|
int cursoron;
|
||||||
|
int cgablink;
|
||||||
|
int vsynctime;
|
||||||
|
int vadj;
|
||||||
|
int oddeven;
|
||||||
|
int display_type;
|
||||||
|
int firstline;
|
||||||
|
int lastline;
|
||||||
|
int drawcursor;
|
||||||
|
int revision;
|
||||||
|
int rgb_type;
|
||||||
|
int double_type;
|
||||||
|
|
||||||
|
uint32_t v6355pal[16];
|
||||||
|
|
||||||
|
uint64_t dispontime;
|
||||||
|
uint64_t dispofftime;
|
||||||
|
|
||||||
|
pc_timer_t timer;
|
||||||
|
|
||||||
|
uint8_t * vram;
|
||||||
|
} v6355_t;
|
||||||
|
|
||||||
|
#endif /*VIDEO_V6355_H*/
|
||||||
@@ -401,11 +401,10 @@ extern const device_t gd5446_pci_device;
|
|||||||
extern const device_t gd5446_stb_pci_device;
|
extern const device_t gd5446_stb_pci_device;
|
||||||
extern const device_t gd5480_pci_device;
|
extern const device_t gd5480_pci_device;
|
||||||
|
|
||||||
|
/* IBM CGA */
|
||||||
/* IBM CGA*/
|
|
||||||
extern const device_t cga_device;
|
extern const device_t cga_device;
|
||||||
|
|
||||||
/* pravetz CGA */
|
/* Pravetz CGA */
|
||||||
extern const device_t cga_pravetz_device;
|
extern const device_t cga_pravetz_device;
|
||||||
|
|
||||||
/* Compaq CGA */
|
/* Compaq CGA */
|
||||||
@@ -630,6 +629,9 @@ extern const device_t velocity_200_agp_device;
|
|||||||
/* Wyse 700 */
|
/* Wyse 700 */
|
||||||
extern const device_t wy700_device;
|
extern const device_t wy700_device;
|
||||||
|
|
||||||
|
/* Yamaha V6355 */
|
||||||
|
extern const device_t v6355d_device;
|
||||||
|
|
||||||
/* Tandy */
|
/* Tandy */
|
||||||
extern const device_t tandy_1000_video_device;
|
extern const device_t tandy_1000_video_device;
|
||||||
extern const device_t tandy_1000hx_video_device;
|
extern const device_t tandy_1000hx_video_device;
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ add_library(vid OBJECT
|
|||||||
vid_cga_quadcolor.c
|
vid_cga_quadcolor.c
|
||||||
vid_cga_toshiba_t1000.c
|
vid_cga_toshiba_t1000.c
|
||||||
vid_cga_toshiba_t3100e.c
|
vid_cga_toshiba_t3100e.c
|
||||||
|
vid_cga_v6355.c
|
||||||
|
|
||||||
# PCJr/Tandy
|
# PCJr/Tandy
|
||||||
vid_pcjr.c
|
vid_pcjr.c
|
||||||
|
|||||||
1177
src/video/vid_cga_v6355.c
Normal file
1177
src/video/vid_cga_v6355.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -114,6 +114,7 @@ video_cards[] = {
|
|||||||
{ .device = &et4000_isa_device, .flags = VIDEO_FLAG_TYPE_NONE },
|
{ .device = &et4000_isa_device, .flags = VIDEO_FLAG_TYPE_NONE },
|
||||||
{ .device = &v7_vga_1024i_device, .flags = VIDEO_FLAG_TYPE_NONE },
|
{ .device = &v7_vga_1024i_device, .flags = VIDEO_FLAG_TYPE_NONE },
|
||||||
{ .device = &wy700_device, .flags = VIDEO_FLAG_TYPE_NONE },
|
{ .device = &wy700_device, .flags = VIDEO_FLAG_TYPE_NONE },
|
||||||
|
{ .device = &v6355d_device, .flags = VIDEO_FLAG_TYPE_NONE },
|
||||||
/* ISA16 */
|
/* ISA16 */
|
||||||
{ .device = &mach64gx_isa_device, .flags = VIDEO_FLAG_TYPE_NONE },
|
{ .device = &mach64gx_isa_device, .flags = VIDEO_FLAG_TYPE_NONE },
|
||||||
{ .device = &gd5420_isa_device, .flags = VIDEO_FLAG_TYPE_NONE },
|
{ .device = &gd5420_isa_device, .flags = VIDEO_FLAG_TYPE_NONE },
|
||||||
|
|||||||
Reference in New Issue
Block a user