Article View: comp.os.msdos.programmer
Article #6431INT 13h Help!
From: Douglas R. Nebeker - MIS_SAS
Date: Mon, 14 Dec 1992 20:01
Date: Mon, 14 Dec 1992 20:01
32 lines
1185 bytes
1185 bytes
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
Technical Details
Message-ID:
<|m#@byu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!gatech!news.byu.edu!newsShow Full Headers
Complete Article Headers
Nntp-Posting-Host: dougn.byu.edu Lines: 32 Distribution: inet Path: arc1-ca.pugleaf.net!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