VGA header files with prototypes

pull/26/head
E. Almqvist 3 years ago
parent 1b8020b624
commit 817c46e3e0
  1. 2
      Makefile
  2. 2
      TODO.md
  3. 8
      drivers/vga.h
  4. 2
      kernel/kernel.c

@ -24,7 +24,7 @@ os-image: bootloader/bootloader.bin kernel.bin
kernel.bin: kernel/kernel_entry.o $(OBJ) kernel.bin: kernel/kernel_entry.o $(OBJ)
gcc -o $@ $^ -Wl,--oformat=binary -ffreestanding -nostdlib -shared -Ttext 0x1000 -m32 gcc -o $@ $^ -Wl,--oformat=binary -ffreestanding -nostdlib -shared -Ttext 0x1000 -m32
%.o : %.c %.o : %.c ${HEADERS}
gcc -fno-pie -m32 -Os -ffreestanding -c $< -o $@ gcc -fno-pie -m32 -Os -ffreestanding -c $< -o $@
%.o : %.asm %.o : %.asm

@ -1,6 +1,4 @@
# TO DO # TO DO
- Refactor Makefile
- Refactor file structure
- Finish the book! - Finish the book!
- Multiboot support (for grub etc) - Multiboot support (for grub etc)
- VGA Library (Graphics) - VGA Library (Graphics)

@ -0,0 +1,8 @@
char* get_vga_charpos_pointer(unsigned int col, unsigned int row);
void writechar(char c, unsigned int col, unsigned int row, int colorcode);
void clear_screen();
void disable_cursor();
void set_cursor_pos();
void print();
void println();
void vga_init();

@ -1,3 +1,5 @@
#include "../drivers/vga.h"
void main() { void main() {
vga_init(); // Initialize the screen first vga_init(); // Initialize the screen first
// i.e. clear the screen et cetera. // i.e. clear the screen et cetera.

Loading…
Cancel
Save