diff options
author | Niklas Halle <niklas@niklashalle.net> | 2020-04-28 11:50:23 +0200 |
---|---|---|
committer | Niklas Halle <niklas@niklashalle.net> | 2020-04-28 11:50:23 +0200 |
commit | 0cf88f665b00962e9fa93f0d52977c1437d034c9 (patch) | |
tree | e1fabd2009cd83d40ea34f5def8c7c8c7844b928 /01_exercise/bootloader.c | |
parent | b917ccf417c2f6299ce69f87415f54a6a752018a (diff) | |
download | betriebssysteme-0cf88f665b00962e9fa93f0d52977c1437d034c9.tar.gz betriebssysteme-0cf88f665b00962e9fa93f0d52977c1437d034c9.zip |
adapted dir structure to exercise modualities
Diffstat (limited to '01_exercise/bootloader.c')
-rw-r--r-- | 01_exercise/bootloader.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/01_exercise/bootloader.c b/01_exercise/bootloader.c new file mode 100644 index 0000000..a5806e4 --- /dev/null +++ b/01_exercise/bootloader.c @@ -0,0 +1,23 @@ +/* needs to stay the first line */ +asm(".code16gcc\njmp $0, $main"); + +/* space for additional code */ + +void main(void) +{ + asm( + "mov $0x007, %%ebx;" + "mov $0xE4E, %%eax; int $0x10;" + "mov $0xE69, %%eax; int $0x10;" + "mov $0xE63, %%eax; int $0x10;" + "mov $0xE65, %%eax; int $0x10;" + "mov $0xE20, %%eax; int $0x10;" + "mov $0xE42, %%eax; int $0x10;" + "mov $0xE6F, %%eax; int $0x10;" + "mov $0xE6F, %%eax; int $0x10;" + "mov $0xE74, %%eax; int $0x10;" + "mov $0xE73, %%eax; int $0x10;" + "jmp .;" + ::: "eax", "ebx" + ); +} |