MyOS Kernel
vga_err.c File Reference
#include <cpu/ports.h>
#include <string.h>

Macros

#define VGA_BLACK   0
 The color black.
 
#define VGA_WHITE   15
 The color white.
 

Functions

static void set_char (int x, char c)
 
void vga_init (char *addr)
 
void vga_write_string (const char *string)
 

Variables

static char * screen
 Pointer to VGA screen memory.
 
static int x =0
 Next character offset in VGA sreen memory.
 

Function Documentation

◆ set_char()

static void set_char ( int  x,
char  c 
)
static

Set a character on the screen

Parameters
xThe character index to set
cThe character to write

◆ vga_init()

void vga_init ( char *  screen)

Initilaze the VGA error writing driver

Parameters
screenPointer to VGA screen memory

◆ vga_write_string()

void vga_write_string ( const char *  string)

Write a string starting at the top line of the VGA display

Parameters
stringThe string to write