Changeset 613 in xtideuniversalbios for trunk/BIOS_Drive_Information_Tool
- Timestamp:
- May 27, 2021, 6:25:17 PM (3 years ago)
- Location:
- trunk/BIOS_Drive_Information_Tool
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BIOS_Drive_Information_Tool/Src/AtaInfo.asm
r612 r613 36 36 37 37 ; Read ATA Information from the drive 38 call Bios_ReadAtaInfoFromDriveDLtoBX 38 call Bios_ReadAtaInfoFromDriveDLtoBX ; Unaltered ATA information 39 39 call Print_ErrorMessageFromAHifError ; AH=25h is not available on many BIOSes 40 40 jc SHORT .SkipAtaInfoSinceError … … 44 44 45 45 ; Print Drive P-CHS parameters 46 call DisplayPCHSusingAtaInfoFromDSBX 46 call DisplayPCHSusingAtaInfoFromDSBX ; Unaltered 47 48 ; Fix and display values (ATA Info will stay fixed) 49 xor ah, ah ; Successfully read ATA ID 50 push ds 51 pop es 52 mov si, bx 53 call AtaID_FixIllegalValuesFromESSI ; Modify ATA information if necessary 54 mov si, g_szWillBeModified 55 call Print_NullTerminatedStringFromSI 56 call DisplayPCHSusingAtaInfoFromDSBX ; Display fixed values 47 57 48 58 ; Print Drive CHS sector count -
trunk/BIOS_Drive_Information_Tool/Src/Bios.asm
r589 r613 118 118 ; Set = BIOS error code stored in AH 119 119 ; Corrupts registers: 120 ; ES120 ; CX, ES 121 121 ;-------------------------------------------------------------------- 122 122 Bios_ReadAtaInfoFromDriveDLtoBX: … … 124 124 push ds 125 125 pop es 126 mov cx, XUB_INT13h_SIGNATURE ; Signature to read unaltered ATA ID 126 127 mov ah, GET_DRIVE_INFORMATION 127 128 int BIOS_DISK_INTERRUPT_13h -
trunk/BIOS_Drive_Information_Tool/Src/Main.asm
r590 r613 25 25 %include "Version.inc" ; From XTIDE Universal BIOS 26 26 %include "ATA_ID.inc" ; From XTIDE Universal BIOS 27 %include "Ramvars.inc" ; From XTIDE Universal BIOS (needed by Int13h.inc) 27 28 %include "Int13h.inc" ; From XTIDE Universal BIOS 28 29 %include "EBIOS.inc" ; From XTIDE Universal BIOS … … 42 43 ; Include library and other sources 43 44 %include "AssemblyLibrary.asm" 45 %include "AtaID.asm" ; From XTIDE Universal BIOS 44 46 %include "AtaGeometry.asm" ; From XTIDE Universal BIOS 45 47 %include "Strings.asm" -
trunk/BIOS_Drive_Information_Tool/Src/Strings.asm
r612 r613 37 37 g_szLBA: db "LBA ",NULL 38 38 g_szFormatCHS: db " Cylinders : %5u, Heads: %3u, Sectors: %2u",NULL 39 g_szWillBeModified: db "Will be modified to:",CR,LF,NULL 39 40 g_szChsSectors: db " CHS sectors: ",NULL 40 41 g_szLBA28: db " LBA28 sectors: ",NULL -
trunk/BIOS_Drive_Information_Tool/makefile
r592 r613 45 45 LIBS += ../Assembly_Library/Src/Util/ 46 46 LIBS += ../XTIDE_Universal_BIOS/Inc/ 47 LIBS += ../XTIDE_Universal_BIOS/Src/Initialization/ 47 48 LIBS += ../XTIDE_Universal_BIOS/Src/VariablesAndDPTs/ 48 49 HEADERS += $(LIBS)
Note:
See TracChangeset
for help on using the changeset viewer.