How to make a VESA linear frame buffer in real mode to use it after in protected mode?

*爱你&永不变心* 提交于 2019-12-08 05:31:50

问题


I want to create a small operating system, but in 32-bit mode with graphics with the full resolution of my screen (1366x768) and 24 bpp. For now, my code in nasm assembly calls the 0x4F02 VESA function in real mode with the value of 0xC118 (the second bit from left is 1 to create a linear frame buffer). After, I enter in 32-bit protected mode and I can only access the first 64Kb of the screen in 0xA0000, so the linear frame buffer hasn't been created. And I can't switch bank because it is in protected mode. I have searched in many sites, but I have not found any way to create a linear frame buffer that works.

来源:https://stackoverflow.com/questions/37576407/how-to-make-a-vesa-linear-frame-buffer-in-real-mode-to-use-it-after-in-protected

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!