OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 23, 2024 2:02 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How does 0xB80000 is calculated in kernel.c?
PostPosted: Sat Apr 25, 2015 2:11 am 
Offline

Joined: Fri Apr 24, 2015 1:25 pm
Posts: 14
Hi
in Bare Bones kernel.c, how did they calculate 0xB8000 as terminal buffer address?


Attachments:
kernel.c [2.66 KiB]
Downloaded 38 times
Top
 Profile  
 
 Post subject: Re: How does kernel.c write into terminal?
PostPosted: Sat Apr 25, 2015 2:18 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
terminal_buffer is initialized in terminal_initialize:
Code:
terminal_buffer = (uint16_t*) 0xB8000;
This is the memory-mapped address of the video buffer.

I'm afraid that you are just cutting and pasting code without understanding it, which is not a fruitful occupation. Read up on how text mode works in a VGA adapter.


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: SemrushBot [Bot] and 113 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