Anonymous user
VESA Video Modes: Difference between revisions
Add note on return values
[unchecked revision] | [unchecked revision] |
m (→Will it work with Bochs?: adding link to article) |
(Add note on return values) |
||
Line 3:
== VESA Functions ==
You'll want to look in the VESA VBE docs for these functions:
All VESA functions return 0x4F in AL if they are supported and use AH as a status flag, with 0x00 being success. This means that you should check that AX is 0x004F after each VESA call to see if it succeeded.
;INT 0x10, AX=0x4F00
Line 17 ⟶ 18:
vbeInfoBlock *vib = dos_alloc(512);
v86_bios(0x10, {ax:0x4f00, es:SEG(vib), di:OFF(vib)}, &out);
if (out.ax!=0x004f) die("
</pre>
|