Changeset 612 in xtideuniversalbios
- Timestamp:
- May 26, 2021, 1:42:14 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BIOS_Drive_Information_Tool/Src/AtaInfo.asm
r592 r612 243 243 mov dx, TRANSLATEMODE_AUTO 244 244 call AtaGeometry_GetLCHStoAXBLBHfromAtaInfoInESSIwithTranslateModeInDX 245 dec ax ; Reserve diagnostics cylinder246 245 MIN_U ax, MAX_LCHS_CYLINDERS 247 246 jmp Print_ModeFromDLandCHSfromAXLBH -
trunk/BIOS_Drive_Information_Tool/Src/Strings.asm
r592 r612 22 22 23 23 g_szProgramName: db "BIOS Drive Information Tool v1.0.3",CR,LF 24 db "(C) 2012-20 18by XTIDE Universal BIOS Team",CR,LF24 db "(C) 2012-2021 by XTIDE Universal BIOS Team",CR,LF 25 25 db "Released under GNU GPL v2",CR,LF 26 26 db "http://xtideuniversalbios.org/",CR,LF,NULL -
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeCommand.asm
r611 r612 173 173 ; Output Sector Address High (only used by LBA48) 174 174 %ifdef MODULE_EBIOS 175 eMOVZX ax, [bp+IDEPACK.bLbaLowExt] ; Zero sector count176 x chg al, ah ; LBA low ext to AH, zero sectors to AL175 mov ah, [bp+IDEPACK.bLbaLowExt] 176 xor al, al ; Zero sector count 177 177 mov cx, [bp+IDEPACK.wLbaMiddleAndHighExt] 178 178 call OutputSectorCountAndAddress -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH8h_HParams.asm
r606 r612 102 102 AH8h_GetDriveParameters: 103 103 call AccessDPT_GetLCHStoAXBLBH 104 call A H8h_LimitAXtoMaximumLCylinders104 call AtaGeometry_LimitAXtoMaximumLCylinders 105 105 ; Fall to .PackReturnValues 106 106 … … 136 136 eSHR_IM bl, FLGH_DPT_SERIAL_FLOPPY_TYPE_FIELD_POSITION 137 137 %endif 138 ret139 140 141 ;--------------------------------------------------------------------142 ; AH8h_LimitAXtoMaximumLCylinders143 ; Parameters:144 ; AX: Number of total L-CHS cylinders (1...1027)145 ; Returns:146 ; AX: Number of usable L-CHS cylinders (1...1024)147 ; Corrupts registers:148 ; Nothing149 ;--------------------------------------------------------------------150 AH8h_LimitAXtoMaximumLCylinders:151 MIN_U ax, MAX_LCHS_CYLINDERS152 138 ret 153 139 -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AtaGeometry.asm
r609 r612 84 84 dec dx ; Set ZF if TRANSLATEMODE_LARGE, SF if TRANSLATEMODE_NORMAL 85 85 jns SHORT .CheckIfLargeTranslationWanted 86 call A H8h_LimitAXtoMaximumLCylinders ; TRANSLATEMODE_NORMAL maximum cylinders86 call AtaGeometry_LimitAXtoMaximumLCylinders ; TRANSLATEMODE_NORMAL maximum cylinders 87 87 inc dx 88 88 .CheckIfLargeTranslationWanted: … … 239 239 mov bl, [es:si+ATA1.wHeadCnt] ; Heads (1...16) 240 240 mov bh, [es:si+ATA1.wSPT] ; Sectors per Track (1...63) 241 %ifndef EXCLUDE_FROM_BIOSDRVS ; We want the true value in BIOSDRVS 242 ; Some CF cards (for example Sandisk Ultra 16/32 GB) violates 243 ; the ATA specification by reporting more than 16383 cylinders. 244 MIN_U ax, MAX_PCHS_CYLINDERS ; Limit the count to avoid problems. 245 %endif 241 246 ret 242 247 … … 360 365 ret 361 366 367 368 ;-------------------------------------------------------------------- 369 ; AtaGeometry_LimitAXtoMaximumLCylinders 370 ; Parameters: 371 ; AX: Number of total L-CHS cylinders (1...1027) 372 ; Returns: 373 ; AX: Number of usable L-CHS cylinders (1...1024) 374 ; Corrupts registers: 375 ; Nothing 376 ;-------------------------------------------------------------------- 377 AtaGeometry_LimitAXtoMaximumLCylinders: 378 MIN_U ax, MAX_LCHS_CYLINDERS 379 ret 380 -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/CompatibleDPT.asm
r589 r612 96 96 FillToESDIusingDPTfromDSSI: 97 97 mov ax, [si+DPT.wLchsCylinders] 98 call A H8h_LimitAXtoMaximumLCylinders98 call AtaGeometry_LimitAXtoMaximumLCylinders 99 99 test BYTE [si+DPT.bFlagsLow], MASKL_DPT_TRANSLATEMODE 100 100 jz SHORT FillStandardDPTtoESDIfromDPTinDSSI -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm
r605 r612 92 92 g_szNfoMainFlash: db "Flash loaded BIOS image to EEPROM.",NULL 93 93 g_szNfoMainSave: db "Save BIOS changes back to original file from which it was loaded.",NULL 94 g_szNfoMainLicense: db "XTIDE Universal BIOS and XTIDECFG Copyright (C) 2009-2010 by Tomi Tilli, 2011-20 19by XTIDE Universal BIOS Team."94 g_szNfoMainLicense: db "XTIDE Universal BIOS and XTIDECFG Copyright (C) 2009-2010 by Tomi Tilli, 2011-2021 by XTIDE Universal BIOS Team." 95 95 db " Released under GNU GPL v2, with ABSOLUTELY NO WARRANTY. Press ENTER for more details...",NULL 96 96 g_szNfoMainHomePage: db "Visit http://xtideuniversalbios.org (home page) and http://vcfed.org/forum (support)",NULL 97 97 98 98 g_szHelpMainLicense: db "XTIDE Universal BIOS and XTIDECFG Configuration program are Copyright 2009-2010 by Tomi Tilli," 99 db " 2011-20 19by XTIDE Universal BIOS Team. Released under GNU GPL v2. This software comes with ABSOLUTELY NO WARRANTY."99 db " 2011-2021 by XTIDE Universal BIOS Team. Released under GNU GPL v2. This software comes with ABSOLUTELY NO WARRANTY." 100 100 db " This is free software, and you are welcome to redistribute it under certain conditions." 101 101 db " See the LICENSE.TXT file that was included with this distribution,"
Note:
See TracChangeset
for help on using the changeset viewer.