Enter graphics mode without interrupts in assembly

后端 未结 2 1336
深忆病人
深忆病人 2021-01-23 13:06

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,

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-23 13:19

    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.

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

提交回复
热议问题