tape-kernel 1.0
a modular modern independent kernel
Loading...
Searching...
No Matches
vga.h
Go to the documentation of this file.
1#ifndef VGA_H
2#define VGA_H
3
4#include "../lib/types.h"
5
6#define prt __prt
7#define clscr __clscr
8#define scrl __scrl
9#define rdln __rdln
10#define drw __drw
11#define pchr __pchr
12#define prtd __prtd
13#define prth __prth
14
15void __prt(int x, int y, const char* txt, uint8_t col);
16void __clscr(void);
17void __scrl(void);
18void __rdln(char *buffer, int maxlen);
19void __drw(int x1, int y1, int x2, int y2, uint8_t col);
20void __pchr(int x, int y, char chr, uint8_t col);
21void __prtd(int x, int y, int num, uint8_t col);
22void __prth(int x, int y, uint32_t hex, uint8_t col);
23
24extern uint16_t* vga;
25
26#endif
unsigned short uint16_t
Definition types.h:29
unsigned int uint32_t
Definition types.h:30
unsigned char uint8_t
Definition types.h:28
uint16_t * vga
the vga framebuffer pointer
Definition vga.c:18
void __prtd(int x, int y, int num, uint8_t col)
prtd prints a decimal integer to the vga screen
Definition vga.c:138
void __scrl(void)
scrl scrolls the vga text screen up by one row
Definition vga.c:30
void __drw(int x1, int y1, int x2, int y2, uint8_t col)
drw draws a line on the vga screen using '#' characters
Definition vga.c:280
void __rdln(char *buffer, int maxlen)
rdln reads a line of text input from the keyboard
Definition vga.c:216
void __pchr(int x, int y, char chr, uint8_t col)
pchr prints a single raw character to the vga screen
Definition vga.c:352
void __prt(int x, int y, const char *txt, uint8_t col)
prt prints a string to the vga screen at a given position
Definition vga.c:62
void __clscr(void)
clscr clears the entire vga text screen
Definition vga.c:193
void __prth(int x, int y, uint32_t hex, uint8_t col)
prth prints a 32 bit hex value to the vga screen
Definition vga.c:162