aboutsummaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
authorhpa <hpa>2002-06-12 23:27:00 +0000
committerhpa <hpa>2002-06-12 23:27:00 +0000
commit003c8adc7428dc2a86891f8d09cb1e61048f9090 (patch)
treefb2114d23dbbdda98dad68574d88276120ed0859 /sample
parent0d029d9966c84ba2b9dc97389fd6f0822fe306b3 (diff)
downloadsyslinux-003c8adc7428dc2a86891f8d09cb1e61048f9090.tar.gz
Use the new <com32.h> definitions
Diffstat (limited to 'sample')
-rw-r--r--sample/hello.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/hello.c b/sample/hello.c
index 194092e3..bb8bbfa6 100644
--- a/sample/hello.c
+++ b/sample/hello.c
@@ -38,8 +38,8 @@ int _start(unsigned int nargs, char *cmdline,
memset(&inreg, 0, sizeof inreg);
for ( p = msg ; *p ; p++ ) {
- inreg.edx = *p;
- inreg.eax = 0x0200;
+ inreg.edx.b[0] = *p;
+ inreg.eax.b[1] = 0x02; /* Write Character */
syscall(0x21, &inreg, NULL);
}