Read Boot Sector 
Author Message
 Read Boot Sector

Subj:   Re: Reading the boot sector

To:     All
Date:   7/04/95  Time: 3:45:03 p

Quote:

> First, there is a little known(?) bug(?), or undocumented feature of
INT13
> Service 02.
> The docs say to place the drive number (0=A, 1=B, 2=C) into DL. Well, if
> you get a little sneaky and place 80 for C and 81 for D, etc. in DL then
> you will instantly get the info you desire for any hard disk that's
> available. Continue to use 0 for A and 1 for B, but go into the 80
series
> for the HD.

There's nothing sneaky or undocumented about using &H80 + DriveNum for
hard
drives.  If it isn't mentioned in your documentation, you need to get
better documentation.

---
Glen Blankenship

============================================================

For INT 13 Service 2?????

I haven't been able to find a book yet that deals with 80h for HD on this
service. One in particular is "Using Assembly Language" by Wyatt, Que
Corporation, Publisher. Wyatt states that C:=2!

"PC Interrupts" by Ralf Brown is the only publication that even comes
close to saying 80h is OK for Hard Drives. Under INT13 S02, Brown states
that bit 7 must be set (pp 204) for DL.

Which book do you use for interrupts? It's obvious the Wyatt book is
USELESS!

PS: I am just a beginner. Hell, just getting something to print on the
screen is cause for celebration. Sorry I got in the way.

David Milton



Sat, 20 Dec 1997 03:00:00 GMT  
 Read Boot Sector

Quote:

> There's nothing sneaky or undocumented about using &H80 + DriveNum for
> hard drives.  If it isn't mentioned in your documentation, you need to get
> better documentation.


Quote:
> For INT 13 Service 2?????

> I haven't been able to find a book yet that deals with 80h for HD on this
> service. One in particular is "Using Assembly Language" by Wyatt, Que
> Corporation, Publisher. Wyatt states that C:=2!

> "PC Interrupts" by Ralf Brown is the only publication that even comes
> close to saying 80h is OK for Hard Drives. Under INT13 S02, Brown states
> that bit 7 must be set (pp 204) for DL.

Well, setting bit 7 is (essentially) equivalent to adding 80h.   And,
really, it's more precise to say "set bit 7", since 00-7Fh refer to
floppies, and 80h-0FFh refer to hard drives.

Quote:
> Which book do you use for interrupts? It's obvious the Wyatt book is
> USELESS!

Generally, either Ralf Brown's Interrupt List (the online incarnation of
PC INTERRUPTS), or Peter Norton's PROGRAMMER'S GUIDE TO THE IBM PC & PS/2
(more recent editions of which have been retitled THE PC PROGRAMMER'S
BIBLE).  I highly recommend the latter not only as an excellently-
organized reference, but also as a fine tutorial introduction to BIOS and
DOS functions.

Additionally, you might want to consult the FAQ for the comp.lang.asm.x86
newsgroup, which has a number of good book recommendations.

I haven't examined the Wyatt book closely, but, just glancing through
it, I've never been especially impressed.

Quote:
> PS: I am just a beginner. Hell, just getting something to print on the
> screen is cause for celebration. Sorry I got in the way.

No need to apologize.  My earlier remarks weren't meant as a flame.
I just wanted to head off any further confusion.  It's astonishing
how quickly misinformation can propagate across the Net, especially
if you mention the magic word "undocumented".  Everyone just loves
knowing a secret. :-)

---
Glen Blankenship



Sun, 21 Dec 1997 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Reading the boot sector.

2. Reading the boot sector

3. Reading the boot sector and partition table into memory

4. Reading the boot sector and partition table

5. How do I Read/Write BOOT SECTOR in VB 4.0

6. Need some help with boot sectors.

7. Writing to Boot Sector

8. Boot sector.

9. Writing to floppy disk boot sector - how ?

10. Write to boot sector with VB?

11. Crash damaging boot sector

12. Timberland Boots, Cheap Timberland Boots, Hiking Waterproof Work boots

 

 
Powered by phpBB® Forum Software