OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 7:11 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: VBE 81ffh in assembly
PostPosted: Thu Nov 22, 2018 11:30 am 
Offline

Joined: Mon Nov 19, 2018 12:13 pm
Posts: 22
Can it be used in assembly(im using nasm), and if so how?(in terms of values to set for it)

--EDIT--
can it be used to write to the memory

_________________
- Mitchell Barnes the Confused Idiot
17 years old and programming assembly

“If you're going to tell me to give up then you're wasting time that you could be using to help someone else”

“Assembly is more readable and easy to use than c. Change my mind”


Top
 Profile  
 
 Post subject: Re: VBE 81ffh in assembly
PostPosted: Thu Nov 22, 2018 11:44 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
When you say "VBE 81ffh", are you referring to VBE mode 0x81FF?

Why do you want to use it?

What mode is the CPU in when you're trying to use it?


Top
 Profile  
 
 Post subject: Re: VBE 81ffh in assembly
PostPosted: Thu Nov 22, 2018 11:46 am 
Offline

Joined: Mon Nov 19, 2018 12:13 pm
Posts: 22
Octocontrabass wrote:
When you say "VBE 81ffh", are you referring to VBE mode 0x81FF?

Why do you want to use it?

What mode is the CPU in when you're trying to use it?

1. Yes i am
2. To get full access to my video ram as the mode description says its for
3. Real mode

_________________
- Mitchell Barnes the Confused Idiot
17 years old and programming assembly

“If you're going to tell me to give up then you're wasting time that you could be using to help someone else”

“Assembly is more readable and easy to use than c. Change my mind”


Top
 Profile  
 
 Post subject: Re: VBE 81ffh in assembly
PostPosted: Thu Nov 22, 2018 12:08 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
CheeseBees wrote:
2. To get full access to my video ram as the mode description says its for

Why do you want to do that?

CheeseBees wrote:
3. Real mode

You can use this function to get information about the VBE capabilities, this function to get information about the mode you want to use, and this function to set the mode. If VBE 2.0 is supported, you'll probably want to set bit 14 in the mode number (0xC1FF instead of 0x81FF) to use a linear buffer.

I suggest also looking at the VBE specification for the definitions of those functions, since it explains the requirements for calling each, and what the return values mean.

If you're writing a quick proof of concept, you can skip the check for VBE 2.0 since all recent VBE implementations support it.


Top
 Profile  
 
 Post subject: Re: VBE 81ffh in assembly
PostPosted: Thu Nov 22, 2018 12:22 pm 
Offline

Joined: Mon Nov 19, 2018 12:13 pm
Posts: 22
Octocontrabass wrote:
CheeseBees wrote:
2. To get full access to my video ram as the mode description says its for

Why do you want to do that?

CheeseBees wrote:
3. Real mode

You can use this function to get information about the VBE capabilities, this function to get information about the mode you want to use, and this function to set the mode. If VBE 2.0 is supported, you'll probably want to set bit 14 in the mode number (0xC1FF instead of 0x81FF) to use a linear buffer.

I suggest also looking at the VBE specification for the definitions of those functions, since it explains the requirements for calling each, and what the return values mean.

If you're writing a quick proof of concept, you can skip the check for VBE 2.0 since all recent VBE implementations support it.


Thank you so much that just ended 2 years of searching.

_________________
- Mitchell Barnes the Confused Idiot
17 years old and programming assembly

“If you're going to tell me to give up then you're wasting time that you could be using to help someone else”

“Assembly is more readable and easy to use than c. Change my mind”


Top
 Profile  
 
 Post subject: Re: VBE 81ffh in assembly
PostPosted: Sat Dec 29, 2018 3:46 am 
Offline

Joined: Sat Dec 29, 2018 3:09 am
Posts: 10
Check out the below link, very detailed on how to use VESA Bios Extensions (VBE).

viewtopic.php?f=2&t=30186


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot], SemrushBot [Bot] and 60 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group