#include #include #include #include #include #include "vga.h" int main(int argc, char *argv[]) { /* set VGA 320x200, 256 col */ set_mode(0x13); uint8_t *screen = open_framebuffer(); if (!screen) { fprintf(stderr, "ERROR: failed to open the framebuffer\n"); return 1; } for (int i = 0; i < 320 * 200 * 10; i++) screen[rand() % (320 * 200)] = rand() % 255; printf("Hello DOS!\n"); getch(); set_mode(3); close_framebuffer(); return 0; }