int 13h parameter Daquan

Source: Internet
Author: User

Http://blog.sina.com.cn/s/blog_5028978101008wk2.html


Direct Disk Service (Service--int 13H)
00h-Disk System Reset
01h-Read Disk System state
02h-Read Sector
03h-Writing Sector
04h-Test Sector
05h-formatted track
06h-format Bad Track
07h-formatted Drive
08h-Read Drive parameters
09h-initialization of hard drive parameters
0ah-Read Long sector
0bh-Write Long sector
0ch-Search
0dh-HDD System Reset
0eh-Read Sector buffer
0fh-Write Sector buffer
10h-Read Drive status
11h-Calibration Drive
12h-Controller RAM Diagnostics
13h-Controller Driver Diagnostics
14h-Controller Internal Diagnostics
15h-Read Disk type
16h-Read disk change state
17h-Set Disk type
18h-Set Format Media type
19h-Head Protection
1ah-formatted ESDI Drive

(1), function 00H
Function Description: Disk system reset
Entry parameters: ah=00h
Dl= Drive, 00H~7FH: floppy disk; 80H~0FFH: Hard Drive
Export parameters: cf=0--operation successful, ah=00h, otherwise, ah= status code, see the description in function number 01H

(2), function 01H
Function Description: Read the disk System state
Entry parameters: ah=01h
Dl= Drive, 00H~7FH: floppy disk; 80H~0FFH: Hard Drive
Export parameter: ah=00h,al= status code, which is defined as follows:
00h-, no mistake.
01h-Illegal Orders
02h-address target not found
03h-Disk write protection (floppy)
04h-Sector not found
05h-Reset failed (hard drive)
06h-floppy disk out (floppy)
07h-Error parameter table (hard disk)
08H-DMA out of bounds (floppy disk)
09H-DMA over 64K limit
0ah-bad Sector flag (hard disk)
0bh-Wrong Track flag (hard drive)
0ch-Media type not found (floppy)
Illegal sector area code (hard Drive) when 0dh-format
0eh-control Data address target found (hard drive)
0FH-DMA arbitration out of bounds (hard drive)
10h-incorrect CRC or ECC encoding
11H-ECC Correction data error (hard drive)
Crc:cyclic Redundancy Check Code
Ecc:error Checking & Correcting code
20h-Controller failed
40h-Lookup failed
80h-Disk timeout (not responding)
aah-Drive not ready (hard drive)
bbh-undefined error (hard drive)
cch-write error (hard drive)
e0h-State Register error (hard drive)
ffh-detection operation failed (hard drive)

(3), function 02H
Function Description: Read sector
Entry parameters: ah=02h
Number of al= sectors
Ch= Cylindrical surface
Cl= sector
Dh= Head
Dl= Drive, 00H~7FH: floppy disk; 80H~0FFH: Hard Drive
Address of the es:bx= buffer
Export parameters: cf=0--operation success, ah=00h,al= the number of sectors transferred, otherwise, ah= status code, see the description in function number 01H

(4), function 03H
Functional Description: Write sector
Entry parameters: ah=03h
Number of al= sectors
Ch= Cylindrical surface
Cl= sector
Dh= Head
Dl= Drive, 00H~7FH: floppy disk; 80H~0FFH: Hard Drive
Address of the es:bx= buffer
Export parameters: cf=0--operation success, ah=00h,al= the number of sectors transferred, otherwise, ah= status code, see the description in function number 01H

(5), function 04H
Function Description: Test sector
Entry parameters: ah=04h
Number of al= sectors
Ch= Cylindrical surface
Cl= sector
Dh= Head
Dl= Drive, 00H~7FH: floppy disk; 80H~0FFH: Hard Drive
Address of the es:bx= buffer
Export parameters: cf=0--operation success, ah=00h,al= the number of sectors inspected, otherwise, ah= status code, see the description in function number 01H

(6), function 05H
Functional Description: Format track
Entry parameters: ah=05h
Al= Alternating (interleave)
Ch= Cylindrical surface
Dh= Head
Dl= Drive, 00H~7FH: floppy disk; 80H~0FFH: Hard Drive
Address of the list of es:bx= address domains
Export parameters: cf=0--operation successful, ah=00h, otherwise, ah= status code, see the description in function number 01H

(7), function 06H
Function Description: Format bad track
Entry parameters: ah=06h
Al= alternating
Ch= Cylindrical surface
Dh= Head
DL=80H~0FFH: Hard Drive
Address of the list of es:bx= address domains
Export parameters: cf=0--operation successful, ah=00h, otherwise, ah= status code, see the description in function number 01H

(8), function 07H
Feature Description: Format drive
Entry parameters: ah=07h
Al= alternating
Ch= Cylindrical surface
DL=80H~0FFH: Hard Drive
Export parameters: cf=0--operation successful, ah=00h, otherwise, ah= status code, see the description in function number 01H

(9), function 08H
Feature Description: Read drive parameters
Entry parameters: ah=08h
Dl= Drive, 00H~7FH: floppy disk; 80H~0FFH: Hard Drive
Export parameters: cf=1--operation failed, ah= status code, see function number 01H, otherwise, bl=01h-360k
=02h-1.2m
=03h-720k
=04h-1.44m

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.