2017-11-24 23:41:14 +01:00
|
|
|
#pragma once
|
2018-07-12 14:07:24 +02:00
|
|
|
#include "types.h"
|
2017-11-24 23:41:14 +01:00
|
|
|
|
2018-07-18 13:54:38 +02:00
|
|
|
// https://wiki.osdev.org/Text_UI
|
2017-11-24 23:41:14 +01:00
|
|
|
#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
|
2018-07-18 13:54:38 +02:00
|
|
|
#define VGA_HEIGHT 25
|
2017-11-24 23:41:14 +01:00
|
|
|
|
2018-07-18 15:06:31 +02:00
|
|
|
int initVGA(uint bgColor, uint color);
|
2018-07-12 14:07:24 +02:00
|
|
|
void clearScreen(uint bgColor);
|
2018-07-18 15:35:49 +02:00
|
|
|
void printInt(int integer);
|
|
|
|
void printIntDetails(int integer, uint color, uint bgColor, int startX, int startY);
|
2018-07-18 15:06:31 +02:00
|
|
|
void printCharDetails(char str, uint color, uint bgColor, int startX, int startY);
|
|
|
|
void printStringDetails(const char *str, uint color, uint bgColor, int startX, int startY);
|
|
|
|
void printString(const char *str);
|
|
|
|
void printChar(const char str);
|
|
|
|
void vgaScrollUp(void);
|