String library

pull/23/head
E. Almqvist 3 years ago
parent 8356078237
commit 1c76279e1e
  1. 2
      src/kernel/lib/string.c
  2. 4
      src/kernel/lib/vga.c

@ -0,0 +1,2 @@
// Generic String Library
#define INDEX(s, c) (int)(c-s)

@ -3,10 +3,6 @@
// VGA base address: 0xb8000 // VGA base address: 0xb8000
// Charpos = 0xb8000 + 2(row*80 + col) // Charpos = 0xb8000 + 2(row*80 + col)
// Screen Dimensions
#define WIDTH 640
#define HEIGHT 480
// Memory // Memory
#define VIDEO_MEM (char*)0xb8000 #define VIDEO_MEM (char*)0xb8000
#define VIDEO_MEM_MAX (char*)0xb8fa0 #define VIDEO_MEM_MAX (char*)0xb8fa0

Loading…
Cancel
Save