Changeset 426 in xtideuniversalbios for trunk/BIOS_Drive_Information_Tool/Src
- Timestamp:
- May 16, 2012, 5:29:06 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/BIOS_Drive_Information_Tool/Src
- Files:
-
- 3 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 -
trunk/BIOS_Drive_Information_Tool/Src/Print.asm
r424 r426 140 140 mov bp, sp 141 141 142 xor dh, dh 143 mov si, dx 144 shl si, 1 ; Shift for WORD lookup 145 push WORD [si+.rgszXlateModeToString] 146 142 ; Push CHS parameters 147 143 ePUSH_T si, g_szFormatCHS 148 144 push ax ; Cylinders … … 152 148 push ax ; Sectors per track 153 149 154 mov si, g_szXlateAndCHS 150 ; Push translation mode 151 xor dh, dh 152 mov si, dx 153 shl si, 1 ; Shift for WORD lookup 154 push WORD [si+.rgszXlateModeToString] 155 156 mov si, g_szChsAndMode 155 157 jmp SHORT JumpToFormatNullTerminatedStringFromSI 156 158 … … 181 183 mov si, g_szFormatCHS 182 184 CALL_DISPLAY_LIBRARY FormatNullTerminatedStringFromCSSI 185 CALL_DISPLAY_LIBRARY PrintNewlineCharacters 183 186 184 187 pop si -
trunk/BIOS_Drive_Information_Tool/Src/Strings.asm
r424 r426 31 31 32 32 g_szAtaInfoHeader: db "ATA-information from AH=25h...",CR,LF,NULL 33 g_szFormatDrvName: db " Name : %s",CR,LF,NULL34 g_sz XlateAndCHS: db " Mode: %s, %s",NULL33 g_szFormatDrvName: db " Name : %s",CR,LF,NULL 34 g_szChsAndMode: db "%s, Mode: %s",CR,LF,NULL 35 35 g_szNormal: db "NORMAL",NULL 36 36 g_szLarge: db "LARGE ",NULL 37 37 g_szLBA: db "LBA ",NULL 38 g_szFormatCHS: db " Cylinders : %5 -u, Heads: %3-u, Sectors: %2-u",CR,LF,NULL38 g_szFormatCHS: db " Cylinders : %5u, Heads: %3u, Sectors: %2u",NULL 39 39 g_szChsSectors: db " CHS sectors: ",NULL 40 40 g_szLBA28: db " LBA28 sectors: ",NULL 41 41 g_szLBA48: db " LBA48 sectors: ",NULL 42 g_szBlockMode: db " Block set : %u, Max block:%u sectors",CR,LF,NULL43 g_szPIO: db " Max PIO mode : %u, Min cycle time without IORDY %u, with IORDY %d ns",CR,LF,NULL42 g_szBlockMode: db " Block mode : Set to %u from max %u sectors",CR,LF,NULL 43 g_szPIO: db " PIO mode : Max %u, Min cycle times: %u ns, with IORDY %d ns",CR,LF,NULL 44 44 g_szXTUB: db "XTIDE Universal BIOS %s generates following L-CHS...",CR,LF,NULL 45 45 g_szXTUBversion: db ROM_VERSION_STRING ; This one is NULL terminated
Note:
See TracChangeset
for help on using the changeset viewer.