Hi
in Bare Bones kernel.c, how did they calculate 0xB8000 as terminal buffer address?
How does 0xB80000 is calculated in kernel.c?
-
- Posts: 14
- Joined: Fri Apr 24, 2015 1:25 pm
- Libera.chat IRC: coder
How does 0xB80000 is calculated in kernel.c?
- Attachments
-
- kernel.c
- (2.66 KiB) Downloaded 49 times
Re: How does kernel.c write into terminal?
terminal_buffer is initialized in terminal_initialize: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.
Code: Select all
terminal_buffer = (uint16_t*) 0xB8000;
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.