Jump to content
  • Advertisement
Sign in to follow this  
Pixel Clock

VESA VBE Function always failed

This topic is 2449 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to use the int 0x10(VIDEO BIOS) but it always returns al != 0x4f(VBE Function failed). This is the code that I write in a driver:

USHORT GetVbeMode()

{

__asm

{

cli

mov eax,cr0

mov Cr0Reg,eax

and eax,0xffffffff

mov cr0,eax



mov eax,0x4F03 ;VESA VBE Function



INT 0x10 ;VIDEO BIOS



cmp al,0x4F

jnz falhou ;always al != 4f



mov Resultado,bx

mov eax,Cr0Reg

mov cr0,eax

sti

jmp final



falhou

mov Resultado,0

mov eax,Cr0Reg

mov cr0,eax

sti

jmp final



final:

}

return Resultado;

}


What is wrong at this code that I write???

Share this post


Link to post
Share on other sites
Advertisement

This topic is 2449 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!