2023-06-13 09:45:04 +03:00
|
|
|
#include "vga.h"
|
|
|
|
|
|
|
|
// static inline void outb(unsigned int port, unsigned char val) {
|
|
|
|
// asm volatile ("outb %0, %1" : : "a"(val), "Nd"(port) : "memory");
|
|
|
|
// }
|
|
|
|
|
2023-06-12 11:46:47 +03:00
|
|
|
void kmain (void) {
|
2023-06-13 09:45:04 +03:00
|
|
|
|
|
|
|
// Cursor disabling
|
|
|
|
// TODO: outb function
|
|
|
|
//outb(0x3D4, 0x0A);
|
|
|
|
//outb(0x3D5, 0x20);
|
|
|
|
|
|
|
|
//cls();
|
|
|
|
vga_init(VGA_COLOR_GREY, VGA_COLOR_BLACK);
|
|
|
|
|
|
|
|
vga_write_line("=== KoalemOS ===");
|
|
|
|
vga_write("Testing color writing... ");
|
|
|
|
vga_write_color("Yes", VGA_COLOR_BLACK, VGA_COLOR_GREEN);
|
|
|
|
vga_write_color("No", VGA_COLOR_BLACK, VGA_COLOR_RED);
|
|
|
|
vga_write_line("Execution finished. Halting CPU...");
|
2023-06-12 11:46:47 +03:00
|
|
|
}
|