Advertisement

09.03.2008 at 08:28PM PDT, ID: 23701484 | Points: 500
[x]
Attachment Details

VESA without BIOS

Asked by dmott_dfw in Assembly Programming Language, C Programming Language, Kernel And Operating System Specific Programming

Tags:

I'm writing a protected mode microkernel and having problems with VESA in hi-res and the docs are a bit unclear to me.  
Upon initialization the kernel is in real mode where the mode is set to 0x4113 (mode 0x113 with the 14th bit set which is the flag to use linear/flat frame buffer).  
Next it gets the video info block with function 0x4f01.  
Next it gets the pmode function table with function 0x4f0a, does some offset calculations then enters protected mode.  

The remainder of the kernel is in C with inline assembler.  

I'm having trouble with the pmode functions returned from 0x4f0a.  
I've tried calling function 7 sub function 1 (get display start) but its failing with ax==0x0100.  

I'm debugging the kernel with bochs.  

Can someone provide me with info for using VESA in this manner?  

I need some example code that uses a linear frame buffer and plots a pixel in pmode without V86 or exiting pmode.Start Free Trial
[+][-]09.11.2008 at 10:16AM PDT, ID: 22452172

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.15.2008 at 07:24AM PDT, ID: 22478848

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.17.2008 at 08:43AM PDT, ID: 22500033

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.17.2008 at 02:07PM PDT, ID: 22503712

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.18.2008 at 06:59AM PDT, ID: 22510981

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.18.2008 at 04:42PM PDT, ID: 22516647

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628