Page 1 of 1

Strange behavior Bios driver + VESA

Posted: Sat Jan 04, 2014 9:09 pm
by bigorenski
Hello, Im dropping to real mode to use some bios calls on my system. Everything works fine, except that when I try to write in Vesa addr it doesnt work. Mode change and all other things are working just fine.
Vesa function 0x4f01(get mode info) return AX=00 (success)

Does anyone knows whats wrong? Thanks

(sorry for my english)

Re: Strange behavior Bios driver + VESA

Posted: Sun Jan 05, 2014 12:05 am
by dansmahajan
bigorenski wrote:Hello, Im dropping to real mode to use some bios calls on my system
dropping to real mode ??? how ???
as it sounds to me is you are dropping from pmode to rmode, again how ??
as far as i know only way in x86 processors is virtual 8086 mode

so please elaborate what you mean by dropping to real mode

Re: Strange behavior Bios driver + VESA

Posted: Sun Jan 05, 2014 2:12 am
by Jezze
@dansmahajan: Dropping to real mode is very much possible without using virtual 8086 mode.

Re: Strange behavior Bios driver + VESA

Posted: Sun Jan 05, 2014 6:31 am
by dansmahajan
Jezze wrote:@dansmahajan: Dropping to real mode is very much possible without using virtual 8086 mode.
Thanx Jezze i found a article regarding this on wiki.But i think it is(switching to rmode) useful only if you want to execute a particular instruction
whereas if we want to emulate a 16bit program and also use a 32 bit program vm86 is a better option (feel free to criticize this) and i guess this is how 16bit emulators work in 32bit os

Re: Strange behavior Bios driver + VESA

Posted: Sun Jan 05, 2014 7:30 am
by b.zaar
Have you tried Pm86? =)

Re: Strange behavior Bios driver + VESA

Posted: Sun Jan 05, 2014 9:20 am
by Combuster
Everything works fine, except that when I try to write in Vesa addr it doesnt work
Which address are you writing to? How did you get it?