Changeset 606 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
- Timestamp:
- May 15, 2021, 8:27:11 PM (4 years ago)
- Location:
- trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AtaGeometry.asm
r592 r606 74 74 ; BH: Number of L-CHS sectors per track (1...63) 75 75 ; CX: Number of bits shifted (0...3) 76 ; D L: CHS Translate Mode77 ; Corrupts registers: 78 ; DH76 ; DX: CHS Translate Mode 77 ; Corrupts registers: 78 ; Nothing 79 79 ;-------------------------------------------------------------------- 80 80 AtaGeometry_GetLCHStoAXBLBHfromAtaInfoInESSIwithTranslateModeInDX: … … 100 100 cmp ax, 8192 101 101 jbe SHORT ConvertPCHfromAXBLtoEnhancedCHinAXBL 102 %else 103 ; Check if the drive is within the limits of NORMAL addressing. 104 ; If it is, then no CHS translation is necessary. 105 cmp ax, MAX_LCHS_CYLINDERS 106 jbe SHORT ConvertPCHfromAXBLtoEnhancedCHinAXBL 102 107 %endif 103 108 … … 161 166 ; BH: Number of sectors per track (always 63) 162 167 ; CX: Number of bits shifted (0) 163 ; D L: TRANSLATEMODE_ASSISTED_LBA164 ; Corrupts registers: 165 ; DH168 ; DX: TRANSLATEMODE_ASSISTED_LBA 169 ; Corrupts registers: 170 ; Nothing 166 171 ;-------------------------------------------------------------------- 167 172 ConvertChsSectorCountFromDXAXtoLbaAssistedLCHSinAXBLBH: … … 213 218 xchg bh, cl ; Sectors per Track to BH, zero to CL (CX) 214 219 mov dl, TRANSLATEMODE_ASSISTED_LBA 220 ; All combinations of value CH from 1 to 262128 divided by number of heads 221 ; (16/32/64/128/255) has been verified to return with DH cleared. 215 222 ReturnLCHSinAXBLBH: 216 223 ret -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/CreateDPT.asm
r605 r606 108 108 ; Store P-CHS and flags 109 109 call AtaGeometry_GetPCHStoAXBLBHfromAtaInfoInESSI 110 dec d l; Set ZF if TRANSLATEMODE_LARGE, SF if TRANSLATEMODE_NORMAL110 dec dx ; Set ZF if TRANSLATEMODE_LARGE, SF if TRANSLATEMODE_NORMAL 111 111 jle SHORT .JumpOverSetBitForAssistedLBA 112 112
Note:
See TracChangeset
for help on using the changeset viewer.