Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:docs:dos:api:int21:1b [2020/12/08 08:44] – prokushev | en:docs:dos:api:int21:1b [2024/05/02 02:39] (current) – prokushev | ||
---|---|---|---|
Line 22: | Line 22: | ||
AL = sectors per cluster (allocation unit) | AL = sectors per cluster (allocation unit) | ||
- | | + | CX = bytes per sector |
- | DX = total number of clusters | + | DX = total number of clusters |
- | DS:BX -> media ID byte (see #01356) | + | DS:BX -> media ID byte (see #01356) |
===== Notes ===== | ===== Notes ===== | ||
- | under DOS 1.x, DS:BX points at an actual copy of the FAT; later | + | under DOS 1.x, DS:BX points at an actual copy of the FAT; later versions return a pointer to a copy of the FAT's ID byte |
- | | + | |
- | this function may not be properly supported on CD-ROMs and other | + | this function may not be properly supported on CD-ROMs and other installable file systems (use AX=4402h" |
- | | + | |
- | | + | BUG: DOS 7.10 (Win95B/ |
- | BUG: DOS 7.10 (Win95B/ | + | |
- | | + | |
- | | + | |
- | | + | |
Values for media ID byte: | Values for media ID byte: | ||
- | FFh floppy, double-sided, | + | |
- | | + | | FFh |
- | | + | | FEh |
- | | + | | FDh |
- | | + | | FCh |
- | | + | | FAh |
- | | + | | F9h |
- | | + | | F8h |
- | | + | | F0h |
- | | + | |
- | | + | |
| | ||
===== See also ===== | ===== See also ===== | ||
- | AH=1Ch, | + | AH=[[en: |
===== Note ===== | ===== Note ===== |