Organizing the kernel code.

This commit is contained in:
nortega committed 2018-02-23 18:50:05 +01:00
1 parent 7a2618dd4d
commit 78c1155430
9 files changed
+11 -16

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
void main() {
/*
* point to first text cell of the video memory
*/
char *video_memory = (char*) 0xb8000;
/*
* store the character 'X' there
*/
*video_memory = 'X';
}
+4
View File
@@ -0,0 +1,4 @@
[bits 32]
[extern main] ; reference an external label
call main ; call the main function of our kernel
jmp $ ; hang