screen.h 351 B

12345678910111213141516
  1. #pragma once
  2. #define VIDEO_ADDRESS 0xb8000
  3. #define MAX_ROWS 25
  4. #define MAX_COLS 80
  5. #define WHITE_ON_BLACK 0x0f
  6. #define REG_SCREEN_CTRL 0x3d4
  7. #define REG_SCREEN_DATA 0x3d5
  8. void print_char(char c, int col, int row, char attr_byte);
  9. void print_at(const char *msg, int col, int row);
  10. void print(const char *msg);
  11. void clear_screen();