[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bootsect.S: 2 questions


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo _at_ vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
Follow-Ups: