home *** CD-ROM | disk | FTP | other *** search
- Nntp-Posting-Host: dougn.byu.edu
- Lines: 32
- Distribution: inet
- Path: sparky!uunet!europa.asd.contel.com!gatech!news.byu.edu!news
- Message-ID: <|m#@byu.edu>
- Date: Mon, 14 Dec 92 13:01:27 MST
- Newsgroups: comp.os.msdos.programmer
- From: $dougn@sasb.byu.edu (Douglas R. Nebeker - MIS_SAS)
- Subject: INT 13h Help!
- Keywords: int 13 disk bios read
- Organization: Brigham Young University
-
-
- Help!
-
- I've got an assembly routine that is trying to read a physical sector off a
- hard disk using Bios Int 13h, AH=2....but it doesn't work.
-
- I'm loading the registers as follows:
-
- AX=0201 (I want to read 1 sector)
- BX=0000 (offset into segment)
- CX=0001 (cylinder 0, sector 1)
- DX=0080 (head 0, 1st hard drive)
- ES=segment pointer
-
- INT 13;
-
- What is wrong? My program doesn't work...and if I load all the registers in
- DEBUG and then try a trace through the single instruction "INT 13" that
- doesn't work either. I CAN read any sector on a floppy using the same as
- above....
-
- Also, the carry flag is never set after the operation, as it should be on a
- failed disk read.
-
-
- ANY ideas??
-
- Thanks
-
- ____
-
- Douglas R. Nebeker Internet: $dougn@sasb.byu.edu
-