Big bang
This commit is contained in:
8
src/kernel.cpp
Normal file
8
src/kernel.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
// Called by boot.asm
|
||||
void main() {
|
||||
// Create pointer to a char and point to the first text cell of VGA
|
||||
char* video_memory = (char*) 0xb8000;
|
||||
|
||||
// Write the char X to the video memory to display it on the top-left of screen
|
||||
*video_memory = 'X';
|
||||
}
|
||||
Reference in New Issue
Block a user