Page 1 of 1

Vesa error

Posted: Thu May 09, 2013 10:26 am
by Yazimat
Hello osdever
I have a problem to execute my vesa mode is as follows

Code: Select all

_Vesa:
mov ax, 4F02h
mov bx, 103h ;800x600
int 10h
here is my prototype-C

Code: Select all

void Vesa();
but when i execute my kernel with grub its blocs idon't understand
(sorry for my bad english) :B

Re: Vesa error

Posted: Thu May 09, 2013 11:06 am
by Mikemk
I'll give you a list:
  1. Standardized mode numbers are deprecated and should not be used.
  2. You are calling a real mode interrupt from inside protected mode (GRUB puts you in pmode)
    • If you are using v8086, it should work, but based on your question, I don't think you know how

Re: Vesa error

Posted: Thu May 09, 2013 11:22 am
by Yazimat
you a reason I do not know and do not drink how: s
if you could explain it to me would be cool

Re: Vesa error

Posted: Thu May 09, 2013 12:22 pm
by Mikemk
Yazimat wrote:you a reason I do not know and do not drink how: s
What?
if you could explain it to me would be cool
m12 wrote:I'll give you a list:
  1. Standardized mode numbers are deprecated and should not be used.
Self-explanatory
[*]You are calling a real mode interrupt from inside protected mode (GRUB puts you in pmode)
  • If you are using v8086, it should work, but based on your question, I don't think you know how
[/list]
A great website:
wiki.png
wiki.png (2.83 KiB) Viewed 3003 times

Re: Vesa error

Posted: Thu May 09, 2013 1:15 pm
by Yazimat
okey i'm go to look but i found an other code in asm at this link >>http://f.osdev.org/viewtopic.php?t=19198&p=149837