本文介绍了陷入困境并进入实模式(低级汇编语言编程)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在研究玩具OS,并一直使用grub作为引导加载程序.最近,当尝试使用VGA时,我发现我无法使用硬件中断.我发现这是因为我被grub误入了保护模式.
I've been working on a toy OS and have been using grub as my boot loader. Recently when trying to use VGA I found that I couldn't use hardware interrupts. This I found was because I had been slung into protected mode by grub.
有人知道如何在不摆脱grub的情况下回到实模式吗?
Does anybody know how to get back into real mode without having to get rid of grub?
推荐答案
您的意思是writeport(value,$ 3c9)?
you mean writeport(value,$3c9)?
>mov 03c9,AH
>out value,AL
或类似intel asm(NASM)
or similar in INTEL asm(NASM)
3c93c8IIRC是VGA寄存器.
3c93c8IIRC are VGA registers.
这篇关于陷入困境并进入实模式(低级汇编语言编程)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!