Strange behavior Bios driver + VESA

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
bigorenski
Posts: 14
Joined: Thu May 09, 2013 5:51 pm

Strange behavior Bios driver + VESA

Post 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)
dansmahajan
Member
Member
Posts: 62
Joined: Mon Jan 07, 2013 10:38 am

Re: Strange behavior Bios driver + VESA

Post 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
User avatar
Jezze
Member
Member
Posts: 395
Joined: Thu Jul 26, 2007 1:53 am
Libera.chat IRC: jfu
Contact:

Re: Strange behavior Bios driver + VESA

Post by Jezze »

@dansmahajan: Dropping to real mode is very much possible without using virtual 8086 mode.
Fudge - Simplicity, clarity and speed.
http://github.com/Jezze/fudge/
dansmahajan
Member
Member
Posts: 62
Joined: Mon Jan 07, 2013 10:38 am

Re: Strange behavior Bios driver + VESA

Post 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
User avatar
b.zaar
Member
Member
Posts: 294
Joined: Wed May 21, 2008 4:33 am
Location: Mars MTC +6:00
Contact:

Re: Strange behavior Bios driver + VESA

Post by b.zaar »

Have you tried Pm86? =)
"God! Not Unix" - Richard Stallman

Website: venom Dev
OS project: venom OS
Hexadecimal Editor: hexed
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Strange behavior Bios driver + VESA

Post 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?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply