Changeset 568 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AtaGeometry.asm
- Timestamp:
- Dec 21, 2014, 5:37:53 PM (9 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AtaGeometry.asm
r567 r568 142 142 ; GetSectorCountToDXAXfromCHSinAXBLBH 143 143 ; Parameters: 144 ; ES:SI: Ptr to 512-byte ATA information read from the drive145 144 ; AX: Number of cylinders (1...16383) 146 145 ; BL: Number of heads (1...255) … … 328 327 cmp ax, cx 329 328 jbe SHORT .NumberOfHeadsNowInCX 330 eSHL_IM c l, 1 ; Double number of heads331 j nzSHORT .CompareNextValidNumberOfHeads ; Reached 256 heads?332 dec c l; If so, limit heads to 255329 eSHL_IM cx, 1 ; Double number of heads 330 jpo SHORT .CompareNextValidNumberOfHeads ; Reached 256 heads? 331 dec cx ; If so, limit heads to 255 333 332 .NumberOfHeadsNowInCX: 334 333 mov bx, cx ; Number of heads are returned in BL
Note: See TracChangeset
for help on using the changeset viewer.