first commit
This commit is contained in:
9
initrd/vga/main.c
Normal file
9
initrd/vga/main.c
Normal file
@@ -0,0 +1,9 @@
|
||||
void main() {
|
||||
volatile char *video = (volatile char*)0xB8000; // small welcome message
|
||||
char* welcome = "Hello VGA, World!";
|
||||
|
||||
while (*welcome != 0) {
|
||||
*video++ = *welcome++;
|
||||
*video++ = 15;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user