进入图形模式而不会中断汇编

进入图形模式而不会中断汇编

本文介绍了进入图形模式而不会中断汇编的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不使用BIOS中断的情况下进入图形模式(模式13h)?我的目标是32位保护模式,其中BIOS中断不可用.我在网上找到了一个教程,但是它仅给我一些提示,例如VGA寄存器.

How can I enter graphics mode (mode 13h) without using BIOS interrupts? I'm targeting 32-bit protected mode where BIOS interrupts aren't available. I found a tutorial on web, but it only gives me hints such as VGA registers.

我想知道如何访问VGA寄存器?我在 NASM 中使用x86程序集.我知道如何使用INT 13h/INT 10h BIOS中断进入图形模式.

I want to know how VGA registers are accessed? I'm using x86 assembly in NASM. I know how to enter graphics mode using INT 13h/INT 10h BIOS interrupts.

推荐答案

这将取决于硬件.如果您将自己限制在与VGA兼容的适配器上,但如果您想支持整个范围的视频硬件,则不可行.但是话又说回来,如果是的话,您可能一开始就不会为DOS编写.

This would be very hardware dependent. Realistic if you limit yourself to VGA-compatible adapters, but not if you want to support the whole gamut of video hardware out there. But then again, if you were, you probably won't be writing for DOS in the first place.

对于VGA,请在此处阅读.可以通过汇编器的IN/OUT命令访问这些寄存器,并对其进行读取.

For VGA, read up here. The registers are accessed via assembler's IN/OUT commands, read up on them.

这篇关于进入图形模式而不会中断汇编的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 18:15