diff --git a/src/kernel/lib/string.c b/src/kernel/lib/string.c new file mode 100644 index 0000000..f9501ae --- /dev/null +++ b/src/kernel/lib/string.c @@ -0,0 +1,2 @@ +// Generic String Library +#define INDEX(s, c) (int)(c-s) diff --git a/src/kernel/lib/vga.c b/src/kernel/lib/vga.c index e869fe2..9d5d7cd 100644 --- a/src/kernel/lib/vga.c +++ b/src/kernel/lib/vga.c @@ -3,10 +3,6 @@ // VGA base address: 0xb8000 // Charpos = 0xb8000 + 2(row*80 + col) -// Screen Dimensions -#define WIDTH 640 -#define HEIGHT 480 - // Memory #define VIDEO_MEM (char*)0xb8000 #define VIDEO_MEM_MAX (char*)0xb8fa0