diff options
author | iximeow <me@iximeow.net> | 2014-09-26 22:15:27 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2014-09-26 22:15:27 -0700 |
commit | b5b9bbb79304e9e9c24b88f2dedbd32cea1d5acf (patch) | |
tree | 734963547213528e7613c770b1850ce3928351f5 /src/kernel | |
parent | 88a8caca6781365eeb427d5c6e660b2d7576485d (diff) |
various tweaks
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/main.c | 14 |
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" + : : ); } |