Changeset 426 in xtideuniversalbios for trunk/BIOS_Drive_Information_Tool/Src/AtaInfo.asm
- Timestamp:
- May 16, 2012, 5:29:06 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BIOS_Drive_Information_Tool/Src/AtaInfo.asm
r424 r426 64 64 .SkipLBA48: 65 65 66 ; Print block mode information 67 call DisplayBlockModeInformationUsingAtaInfoFromDSBX 68 69 ; Print PIO mode information 70 call DisplayPioModeInformationUsingAtaInfoFromDSBX 71 66 72 ; Print L-CHS generated by XTIDE Universal BIOS 67 73 call DisplayXTUBcompatibilityInfoUsingAtaInfoFromDSBX 68 69 ; Print block mode information70 call DisplayBlockModeInformationUsingAtaInfoFromDSBX71 72 ; Print PIO mode information73 call DisplayPioModeInformationUsingAtaInfoFromDSBX74 74 75 75 .SkipAtaInfoSinceError: … … 166 166 167 167 ;-------------------------------------------------------------------- 168 ; DisplayXTUBcompatibilityInfoUsingAtaInfoFromDSBX169 ; Parameters:170 ; BX: Offset to ATA Information171 ; Returns:172 ; Nothing173 ; Corrupts registers:174 ; AX, CX, DX, BP, SI, DI175 ;--------------------------------------------------------------------176 DisplayXTUBcompatibilityInfoUsingAtaInfoFromDSBX:177 push bx178 179 ; Display header180 mov ax, g_szXTUBversion181 mov si, g_szXTUB182 call Print_FormatStringFromSIwithParameterInAX183 184 ; Display translation mode and L-CHS185 mov si, bx ; DS == ES186 mov dx, TRANSLATEMODE_AUTO187 call AtaGeometry_GetLCHStoAXBLBHfromAtaInfoInESSIandTranslateModeInDX188 dec ax ; Reserve diagnostics cylinder189 MIN_U ax, MAX_LCHS_CYLINDERS190 call Print_ModeFromDLandCHSfromAXLBH191 192 pop bx193 ret194 195 196 ;--------------------------------------------------------------------197 168 ; DisplayBlockModeInformationUsingAtaInfoFromDSBX 198 169 ; Parameters: … … 205 176 DisplayBlockModeInformationUsingAtaInfoFromDSBX: 206 177 eMOVZX ax, BYTE [bx+ATA1.bBlockSel] ; ATA2+ has flag on high word 207 mov dx,[bx+ATA1.bBlckSize]178 eMOVZX dx, BYTE [bx+ATA1.bBlckSize] 208 179 mov si, g_szBlockMode 209 180 jmp Print_FormatStringFromSIwithParametersInAXDX … … 247 218 dw PIO_1_MIN_CYCLE_TIME_NS 248 219 dw PIO_2_MIN_CYCLE_TIME_NS 220 221 222 ;-------------------------------------------------------------------- 223 ; DisplayXTUBcompatibilityInfoUsingAtaInfoFromDSBX 224 ; Parameters: 225 ; BX: Offset to ATA Information 226 ; Returns: 227 ; Nothing 228 ; Corrupts registers: 229 ; AX, BX, CX, DX, BP, SI, DI 230 ;-------------------------------------------------------------------- 231 DisplayXTUBcompatibilityInfoUsingAtaInfoFromDSBX: 232 ; Display header 233 mov ax, g_szXTUBversion 234 mov si, g_szXTUB 235 call Print_FormatStringFromSIwithParameterInAX 236 237 ; Display translation mode and L-CHS 238 mov si, bx ; DS == ES 239 mov dx, TRANSLATEMODE_AUTO 240 call AtaGeometry_GetLCHStoAXBLBHfromAtaInfoInESSIandTranslateModeInDX 241 dec ax ; Reserve diagnostics cylinder 242 MIN_U ax, MAX_LCHS_CYLINDERS 243 jmp Print_ModeFromDLandCHSfromAXLBH
Note: See TracChangeset
for help on using the changeset viewer.