summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kernel/main.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/kernel/main.c b/src/kernel/main.c
index 90f82f4..f8e6c6a 100644
--- a/src/kernel/main.c
+++ b/src/kernel/main.c
@@ -1,8 +1,14 @@
+__asm__(".code16gcc\n");
+
int func() {
- asm(
- ".intel_syntax noprefix \n"
- "mov eax, 42 \n"
- "ret \n"
+ __asm__(
+ "mov $0x10, %%cx \n"
+ "mov $0x0A, %%ah \n"
+ "mov $0x74, %%al \n"
+ "int $0x10 \n"
+ "mov $42, %%eax \n"
+ "ret \n"
+ : :
);
}