core/hello.c: use __intcall() as a demo
authorH. Peter Anvin <hpa@zytor.com>
Mon, 1 Jun 2009 05:25:50 +0000 (22:25 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 1 Jun 2009 05:25:50 +0000 (22:25 -0700)
Use __intcall() to indicate that we now can use the same functions as
used in libcom32.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/hello.c

index ec2f5ff..eb0069f 100644 (file)
@@ -1,5 +1,5 @@
 #include <stddef.h>
-#include "core.h"
+#include <com32.h>
 
 void myputchar(int c)
 {
@@ -8,7 +8,7 @@ void myputchar(int c)
 
     ireg.eax.b[1] = 0x02;
     ireg.edx.b[0] = c;
-    core_intcall(0x21, &ireg, NULL);
+    __intcall(0x21, &ireg, NULL);
 
     *vram++ = c + 0x1f00;
 }