diff options
Diffstat (limited to '01_exercise')
-rw-r--r-- | 01_exercise/bootloader.c | 2 |
1 files changed, 2 insertions, 0 deletions
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;" |