From b5b9bbb79304e9e9c24b88f2dedbd32cea1d5acf Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 26 Sep 2014 22:15:27 -0700 Subject: various tweaks --- src/kernel/main.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src') 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" + : : ); } -- cgit v1.1