mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mad Hatter <slokus@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: bootsect.S: 2 questions
Date: Mon, 13 Jan 2003 08:28:27 -0800 (PST)	[thread overview]
Message-ID: <20030113162827.46498.qmail@web13709.mail.yahoo.com> (raw)

Hi,

I was looking through the linux (2.5.56) arch/i386/boot/bootsect.S and was
puzzled about a couple of things:

1. Near line 221 we have:
       sread:  .word 0             # sectors read of current track
       head:   .word 0             # current head
       track:  .word 0             # current track

   However, since a diskette can have at most 2 heads, 80 tracks and 36 sectors
   per track, why are these not bytes instead of words especially since space is
   at such a tight premium in this code ?

2. Near line 272 we have "movw    $7, %bx" but the documentation I've
    been able to find about the "int 0x10" BIOS call says that for service
    code 0xe (write character and advance cursor), it does not take an
    attribute byte input parameter but rather uses the existing attribute. Is
    this movw instruction superfluous ?

Thanks. 

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

             reply	other threads:[~2003-01-13 16:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-13 16:28 Mad Hatter [this message]
2003-01-13 16:50 ` Richard B. Johnson
2003-01-13 16:59 ` Randy.Dunlap
2003-01-14  1:15   ` Mad Hatter

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=20030113162827.46498.qmail@web13709.mail.yahoo.com \
    --to=slokus@yahoo.com \
    --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

all inboxes | Powered by JetHome®