From 5b75cdd06f266d384491f51f0e92226b5e19ea3b Mon Sep 17 00:00:00 2001 From: Stefan Zabka Date: Thu, 30 Apr 2020 09:32:16 +0200 Subject: Added sources --- 01_exercise/bootloader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/01_exercise/bootloader.c b/01_exercise/bootloader.c index 403586b..1ba5786 100644 --- a/01_exercise/bootloader.c +++ b/01_exercise/bootloader.c @@ -5,6 +5,7 @@ asm(".code16gcc\njmp $0, $main"); char WRITE_CHARACTER_TTY = 0x0E; +// Syscall found here http://www.ctyme.com/intr/rb-0106.htm void put(char c) { short command = WRITE_CHARACTER_TTY << 8 | c; // volatile because there is no output, so the function might get optimized @@ -23,6 +24,7 @@ void print(char const *const str) { } } +// Syscall found here http://www.ctyme.com/intr/rb-1754.htm char getc() { char ret; asm("mov $0x00, %%ah;" -- cgit v1.2.3-54-g00ecf