diff options
author | Marvin Borner | 2021-07-10 18:36:50 +0200 |
---|---|---|
committer | Marvin Borner | 2021-07-10 18:36:50 +0200 |
commit | 4f1ae4fa4250369919a975f5568425f6791b2489 (patch) | |
tree | aec903e642561edbf6a6cccf513abccff882426f /src/loader/log.c | |
parent | ad56eb28f0614db4b7656ade390f1c79b446cbc9 (diff) |
Fixed interrupts and added keyboard handler
Diffstat (limited to 'src/loader/log.c')
-rw-r--r-- | src/loader/log.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |