18#define VGA_CHAR_SIZE 2
20#define TEXT_CHAR_SIZE 2
27#define SCREEN_WIDTH 640
28#define SCREEN_HEIGHT 400
29#define BYTES_PER_SCANLINE (SCREEN_WIDTH / 8)
102 Int386(0x18, &Regs, &Regs);
119 Int386(0x18, &Regs, &Regs);
151 Int386(0x18, &Regs, &Regs);
157 Int386(0x18, &Regs, &Regs);
163 Int386(0x18, &Regs, &Regs);
170 USHORT B = (Attr & 0x10) ? 0xFFFF : 0;
171 USHORT G = (Attr & 0x20) ? 0xFFFF : 0;
172 USHORT R = (Attr & 0x40) ? 0xFFFF : 0;
173 USHORT I = (Attr & 0x80) ? 0xFFFF : 0;
233 CursorParameters.
Show = Show;
286 case 0x18:
return 0x1E;
287 case 0x19:
return 0x1F;
288 case 0xB3:
return 0x260B;
289 case 0xB6:
return 0x4C0B;
290 case 0xBA:
return 0x270B;
291 case 0xBB:
return 0x370B;
292 case 0xBC:
return 0x3F0B;
293 case 0xBF:
return 0x340B;
294 case 0xC0:
return 0x380B;
295 case 0xC4:
return 0x240B;
296 case 0xC7:
return 0x440B;
297 case 0xC8:
return 0x3B0B;
298 case 0xC9:
return 0x330B;
299 case 0xCD:
return 0x250B;
300 case 0xD9:
return 0x3C0B;
301 case 0xDA:
return 0x300B;
302 case 0xDB:
return 0x87;
319 UCHAR B = (Attr & 0x10) ? 0xFF : 0;
320 UCHAR G = (Attr & 0x20) ? 0xFF : 0;
321 UCHAR R = (Attr & 0x40) ? 0xFF : 0;
322 UCHAR I = (Attr & 0x80) ? 0xFF : 0;
453 Int386(0x18, &Regs, &Regs);
#define G(r, i, a, b, c, d)
enum tagVIDEODISPLAYMODE VIDEODISPLAYMODE
#define COLOR_LIGHTMAGENTA
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define READ_PORT_UCHAR(p)
#define WRITE_PORT_UCHAR(p, d)
static VOID Pc98VideoTextRamPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y)
VOID Pc98VideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth)
BOOLEAN Pc98VideoIsPaletteFixed(VOID)
VOID Pc98VideoClearScreen(UCHAR Attr)
ULONG Pc98VideoGetBufferSize(VOID)
VOID Pc98VideoGetFontsFromFirmware(PULONG RomFontPointers)
VOID Pc98VideoSetTextCursorPosition(UCHAR X, UCHAR Y)
static BOOLEAN CGAccelDraw
VOID Pc98VideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y)
VIDEODISPLAYMODE Pc98VideoSetDisplayMode(char *DisplayModeName, BOOLEAN Init)
static USHORT Pc98AsciiToJisX(int Ch)
UCHAR MachDefaultTextColor
VOID Pc98VideoHideShowTextCursor(BOOLEAN Show)
VOID Pc98VideoPrepareForReactOS(VOID)
VOID Pc98VideoGetPaletteColor(UCHAR Color, UCHAR *Red, UCHAR *Green, UCHAR *Blue)
static UCHAR Pc98VideoAttrToGdcAttr(UCHAR Attr)
#define BYTES_PER_SCANLINE
VOID Pc98VideoCopyOffScreenBufferToVRAM(PVOID Buffer)
VOID Pc98VideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue)
static const PALETTE_ENTRY CgaPalette[]
int __cdecl Int386(int ivec, REGS *in, REGS *out)
#define VRAM_TEXT_ATTR_OFFSET
#define GDC2_IO_o_MODE_FLIPFLOP2
#define VRAM_HI_RESO_PLANE_B
#define KCG_IO_o_CHARCODE_HIGH
FORCEINLINE VOID WRITE_GDC_CSRFORM(PUCHAR Port, PCSRFORMPARAM CursorParameters)
#define GDC2_IO_o_VIDEO_PAGE_ACCESS
#define GDC_ATTR_LIGHTBLUE
#define GDC1_IO_o_COMMAND
#define VRAM_HI_RESO_PLANE_R
#define VRAM_NORMAL_PLANE_B
#define VRAM_HI_RESO_PLANE_I
FORCEINLINE VOID WRITE_GDC_CSRW(PUCHAR Port, PCSRWPARAM CursorParameters)
#define VRAM_HI_RESO_PLANE_G
#define GDC2_IO_o_VIDEO_PAGE
#define GDC2_IO_o_PALETTE_INDEX
#define GDC2_MODE_COLORS_16
#define VRAM_NORMAL_PLANE_I
#define VRAM_NORMAL_PLANE_G
#define VRAM_HI_RESO_TEXT
#define KCG_IO_o_CHARCODE_LOW
#define VRAM_NORMAL_PLANE_R
#define GDC_COMMAND_CSRFORM
#define RtlZeroMemory(Destination, Length)
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
_In_ HFONT _Out_ PUINT Height
_In_opt_ PALLOCATE_FUNCTION _In_opt_ PFREE_FUNCTION _In_ ULONG _In_ SIZE_T _In_ ULONG _In_ USHORT Depth