aboutsummaryrefslogtreecommitdiffstats
path: root/dos
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-17 17:45:46 +0000
committerhpa <hpa>2004-12-17 17:45:46 +0000
commitd0fe5d534f73c5be015e9a97bcea6261d2e86ce8 (patch)
tree78929c46ccae5eac878614f267681c2f0e306b70 /dos
parentced09d94f6fc70c3006b59a4ced1af19f7f23b73 (diff)
downloadsyslinux-devel-d0fe5d534f73c5be015e9a97bcea6261d2e86ce8.tar.gz
syslinux-devel-d0fe5d534f73c5be015e9a97bcea6261d2e86ce8.tar.xz
syslinux-devel-d0fe5d534f73c5be015e9a97bcea6261d2e86ce8.zip
Character to print goes in DL, not in BL
Diffstat (limited to 'dos')
-rw-r--r--dos/conio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dos/conio.c b/dos/conio.c
index 460858fa..3d562afd 100644
--- a/dos/conio.c
+++ b/dos/conio.c
@@ -1,7 +1,7 @@
#ident "$Id$"
/* ----------------------------------------------------------------------- *
*
- * Copyright 2001-2003 H. Peter Anvin - All Rights Reserved
+ * Copyright 2001-2004 H. Peter Anvin - All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@
int putchar(int ch)
{
- asm("movb $0x02,%%ah ; int $0x21" : : "b" (ch));
+ asm("movb $0x02,%%ah ; int $0x21" : : "d" (ch));
return ch;
}