如何通过 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);
}