From: Timothy Miller <miller@techsource.com>
To: Joshua <jhudson@cyberspace.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] restore floppy boot image
Date: Wed, 30 Jun 2004 17:33:17 -0400 [thread overview]
Message-ID: <40E3319D.3050100@techsource.com> (raw)
In-Reply-To: <Pine.SUN.3.96.1040630143510.23723A-100000@grex.cyberspace.org>
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);".
next prev parent reply other threads:[~2004-06-30 21:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-30 18:45 [PATCH] restore floppy boot image Joshua
2004-06-30 18:56 ` Brian Gerst
2004-06-30 20:34 ` Timothy Miller
2004-06-30 21:33 ` Timothy Miller [this message]
2004-06-30 21:52 ` Joshua
2004-06-30 21:55 ` Randy.Dunlap
2004-07-01 14:50 ` Timothy Miller
2004-06-30 23:17 ` Tobias Diedrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40E3319D.3050100@techsource.com \
--to=miller@techsource.com \
--cc=jhudson@cyberspace.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox