Page 1 of 1
How does 0xB80000 is calculated in kernel.c?
Posted: Sat Apr 25, 2015 2:11 am
by codeblaster
Hi
in Bare Bones kernel.c, how did they calculate 0xB8000 as terminal buffer address?
Re: How does kernel.c write into terminal?
Posted: Sat Apr 25, 2015 2:18 am
by iansjack
terminal_buffer is initialized in terminal_initialize:
Code: Select all
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.