From d0fe5d534f73c5be015e9a97bcea6261d2e86ce8 Mon Sep 17 00:00:00 2001 From: hpa Date: Fri, 17 Dec 2004 17:45:46 +0000 Subject: [PATCH] Character to print goes in DL, not in BL --- dos/conio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dos/conio.c b/dos/conio.c index 460858f..3d562af 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; } -- 2.7.4