From 4f1ae4fa4250369919a975f5568425f6791b2489 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 10 Jul 2021 18:36:50 +0200 Subject: Fixed interrupts and added keyboard handler --- src/loader/log.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/loader/log.c') diff --git a/src/loader/log.c b/src/loader/log.c index ff4feff..3a4167f 100644 --- a/src/loader/log.c +++ b/src/loader/log.c @@ -120,6 +120,13 @@ void vga_clear(void) out[i] = 0; } +void vga_put_at(char ch, u8 x, u8 y, u8 color) +{ + u8 *out = (u8 *)(VGA_ADDRESS + 2 * (x + y * VGA_WIDTH)); + *out++ = ch; + *out++ = color; +} + static void vga_put(char ch) { static u8 x = 0; -- cgit v1.2.3