【发布时间】:2014-01-08 03:47:24
【问题描述】:
如何通过 x86 CPU 的 IO/端口访问 vesa 模式? 我已经尝试过仅适用于博世的代码
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);
}
【问题讨论】:
-
语言,缺少平台.. 有什么标签知道你在说什么吗?
-
您需要在问题中包含
WriteCommand的定义,否则我们不知道您的代码在做什么。