📄 _vbios.c
字号:
/*@A (C) 1992 Allen I. Holub */
#include <dos.h>
#include <tools/vbios.h>
#include "video.h"
/* This file contains a workhorse function used by the other video I/O */
/* functions to talk to the BIOS. It executes the video interrupt. */
int _Vbios( service, al, bx, cx, dx, return_this )
int service; /* Service code, put into ah. */
int al, bx, cx, dx; /* Other input registers. */
char *return_this; /* Register to return, "ax", "bh", "dx" only. */
{
union REGS regs;
regs.h.ah = service;
regs.h.al = al;
regs.x.bx = bx;
regs.x.cx = cx;
regs.x.dx = dx;
int86( VIDEO_INT, ®s, ®s);
return ( *return_this == 'a' ) ? regs.x.ax :
( *return_this == 'b' ) ? regs.h.bh : regs.x.dx ;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -