summaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2014-09-26 22:15:27 -0700
committeriximeow <me@iximeow.net>2014-09-26 22:15:27 -0700
commitb5b9bbb79304e9e9c24b88f2dedbd32cea1d5acf (patch)
tree734963547213528e7613c770b1850ce3928351f5 /src/kernel
parent88a8caca6781365eeb427d5c6e660b2d7576485d (diff)
various tweaks
Diffstat (limited to 'src/kernel')
-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"
+ : :
);
}