mbr_asm/vga.h
Mathieu Maret f1341d3d72 Add some "kernel" code written in C
Draw few message on VGA
Setup Interruption Description Table
Setup IRQ
2017-11-27 14:51:51 +01:00

20 lines
470 B
C

#pragma once
#define BLACK 0x00
#define BLUE 0x01
#define GREEN 0x02
#define CYAN 0x03
#define RED 0x04
#define MAGENTA 0x05
#define BROWN 0x06
#define GREY 0x07
#define WHITE 0x0F
#define VGA_ADDR 0xB8000
#define VGA_WIDTH 80
#define VGA_HEIGHT 15
void clearScreen(int bgColor);
void printChar(const char str, int color, int bgColor, int startX, int startY);
void printString(const char *str, int color, int bgColor, int startX, int startY);