Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262768AbUF3VMY (ORCPT ); Wed, 30 Jun 2004 17:12:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262837AbUF3VMY (ORCPT ); Wed, 30 Jun 2004 17:12:24 -0400 Received: from kinesis.swishmail.com ([209.10.110.86]:264 "EHLO kinesis.swishmail.com") by vger.kernel.org with ESMTP id S262768AbUF3VMW (ORCPT ); Wed, 30 Jun 2004 17:12:22 -0400 Message-ID: <40E3319D.3050100@techsource.com> Date: Wed, 30 Jun 2004 17:33:17 -0400 From: Timothy Miller MIME-Version: 1.0 To: Joshua CC: linux-kernel@vger.kernel.org Subject: Re: [PATCH] restore floppy boot image References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 713 Lines: 35 Joshua wrote: > +/* > + * Routine errcode prints a diagnostic to the screen > + * Used for debugging and for printing BIOS error codes > + */ > +errcode: > + mov %ah, %dh > + mov $1, %cx > +print_hex: > + mov $10, %ah > + mov $7, %bx > +phl: mov %dh, %al > + shr $4, %al > + and 15, %al > + add $0x90, %al > + daa > + add $0x40, %al > + daa > + int $0x10 > + shl $4, %dx > + loop phl This loop will not loop. You've set CX to 1. LOOP is like "} while (--CX);". - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/