Page 1 of 1
executing 16 bit pmode code
Posted: Sat May 26, 2007 2:44 pm
by jtlb
How can i do call a 16 bit pmode function from 32 bit pmode with no multitasking? it's for vesa.
thanks
Re: executing 16 bit pmode code
Posted: Sat May 26, 2007 4:48 pm
by Brynet-Inc
jtlb wrote:How can i do call a 16 bit pmode function from 32 bit pmode with no multitasking? it's for vesa.
thanks
First of all.. "
How can i do call a" sounds considerably funny spoken aloud..
And I think you might be looking for v8086 mode...
Really.. Try using the "Search" feature.. The Wiki is a nice place to look as well..
http://www.osdev.org/wiki/Virtual_8086_Mode
(
EDIT: Err.. 16bit pmode function? ..)
Posted: Sat May 26, 2007 5:00 pm
by xyjamepa
Also you can go back to real mode setup vesa then back again
to protected mode it's fast and easier than virtual mode.
Thanx.
Posted: Sat May 26, 2007 5:14 pm
by Edwin
To call a 16bit pmode function, i think you need to setup a gdt entry for 16bit pmode and then do a far call to that selector and address of the function.
@Brynet-Inc: I think he is trying to call the pmode interface of the VBE.
Posted: Sat May 26, 2007 5:22 pm
by Brynet-Inc
Edwin wrote:@Brynet-Inc: I think he is trying to call the pmode interface of the VBE.
I see, I had that in my initial response.. I removed it because I wasn't entirely sure about it.
So the VBE protected mode interface refers to 16bit protected mode not 32bit.. I shall make a note of it lol..
Posted: Sun May 27, 2007 6:55 am
by inflater
For example, Windows 3.11, 3.1 and the second mode of 3.0 were in 16-bit protected mode. But take a look to Windows NT 3.51 - it has the same look as good ol' 3.1, and it is 32bit !
inflater