VESA Video Modes: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content added Content deleted
m (→Will it work with Bochs?: adding link to article) |
(Add note on return values) |
||
Line 3: | Line 3: | ||
== VESA Functions == |
== VESA Functions == |
||
You'll want to look in the VESA VBE docs for these 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 |
;INT 0x10, AX=0x4F00 |
||
Line 17: | Line 18: | ||
vbeInfoBlock *vib = dos_alloc(512); |
vbeInfoBlock *vib = dos_alloc(512); |
||
v86_bios(0x10, {ax:0x4f00, es:SEG(vib), di:OFF(vib)},&out); |
v86_bios(0x10, {ax:0x4f00, es:SEG(vib), di:OFF(vib)}, &out); |
||
if (out.ax!=0x004f) die(" |
if (out.ax!=0x004f) die("Something wrong with VBE get info"); |
||
</pre> |
</pre> |
||