From 1c76279e1e31ef6406d5336c61d0294b63eafcd1 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Mon, 16 Aug 2021 19:39:44 +0200 Subject: [PATCH] String library --- src/kernel/lib/string.c | 2 ++ src/kernel/lib/vga.c | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 src/kernel/lib/string.c 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