如何通过IO/端口访问x86 CPU的vesa模式?我已经尝试过一个只适用于Bosch的代码
private static void SetVideoMode(ushort width, ushort height, ushort depth)
{
WriteCommand(0x4, 0x00);
WriteCommand(0x1, width);
WriteCommand(0x2, height);
WriteCommand(0x3, depth);
WriteCommand(0x4, 0x1 | 0x40 );
PortIO.Outb(0x3c0, 0x20);
}发布于 2013-12-19 18:17:34
您不能。VESA (VBE)是一个标准的BIOS驱动程序框架,它提供了一个不同的视频卡的单一接口。
要直接插入I/O端口或内存映射寄存器,您需要将自己限制在基本的VGA模式和功能上,或者知道特定视频卡的确切细节。
当然,这是VBE最初设计要解决的问题。
https://stackoverflow.com/questions/20684007
复制相似问题