Writing (debug output) to screen
This commit is contained in:
14
src/kernel/include/vga.h
Normal file
14
src/kernel/include/vga.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#define VGA_COLS 80
|
||||
#define VGA_ROWS 24
|
||||
#define VGA_SIZE (VGA_COLS*VGA_ROWS)
|
||||
|
||||
#define VGA_ROW(pos) ((pos)/VGA_COLS)
|
||||
#define VGA_COL(pos) ((pos)%VGA_COLS)
|
||||
#define VGA_POS(row, col) ((row)*VGA_COLS + (col))
|
||||
|
||||
#define VGA_MEMORY P2V(0xB8000)
|
||||
|
||||
void vga_init();
|
||||
void vga_write(char c);
|
||||
Reference in New Issue
Block a user