OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 30, 2024 9:14 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Video in graphic mode
PostPosted: Wed Oct 18, 2023 10:58 am 
Offline

Joined: Wed Oct 18, 2023 9:55 am
Posts: 1
Hello other forum users. I'm wondering how video memory can be used in graphics mode. In text it is used like this:

Code:
char* videoptr = (char*)0xb8000;

void kmain()
{
    videoptr[0] = 'H';
    videoptr[1] = 0x07;
}


I heard that the address 0xA0000 is already used for the graphic mode

I would like to receive a code snippet for using the graphical mode.


Last edited by KuzinAlexandr on Wed Oct 25, 2023 11:50 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Video in graphic mode
PostPosted: Sun Oct 22, 2023 7:47 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5147
KuzinAlexandr wrote:
I'm wondering how video memory can be used in graphics mode. In text it is used like this:

You can access video memory the same way in graphics mode. The specifics depend on which mode you're using.

KuzinAlexandr wrote:
I heard that the address 0xA0000 is already used for the graphic mode

Standard VGA modes 0xD, 0xE, 0xF, 0x10, 0x11, 0x12, and 0x13 use address 0xA0000. Standard VGA modes 0x4, 0x5, and 0x6 use address 0xB8000. Non-standard modes can use other addresses.


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], SemrushBot [Bot] and 48 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