Changeset 194 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Tools
- Timestamp:
- Nov 17, 2011, 11:07:58 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Tools/Address.asm
r193 r194 85 85 ALIGN JUMP_ALIGN 86 86 Address_OldInt13hAddressToIdeAddress: 87 call Address_ExtractLCHSparametersFromOldInt13hAddress 87 call Address_ExtractLCHSparametersFromOldInt13hAddress 88 89 CustomDPT_GetUnshiftedAddressModeToALZF 88 90 89 CustomDPT_GetUnshiftedAddressModeToALZF 90 jz DoNotConvertLCHS ; 0, ADDR_DPT_LCHS91 ;;; 0: ADDR_DPT_LCHS 92 jz DoNotConvertLCHS 91 93 92 ;; 93 ;; Since we are only checking for zero, we can do our math in the high order bits, 94 ;; in this case effectively subtracting 1 from the address mode. 95 ;; 96 sub al,(1<<ADDRESSING_MODE_FIELD_POSITION) 97 jz ConvertLCHStoPCHS ; 1, ADDR_DPT_PCHS 98 99 ;; Fall-through ; 2, ADDR_DPT_LBA28 and 3, ADDR_DPT_LBA48 94 ;;; 1: ADDR_DPT_PCHS 95 ; 96 ; Since we are only checking for zero, we can do our math in the high order bits, 97 ; in this case effectively subtracting 1 from the address mode. 98 ; 99 sub al,(1<<ADDRESSING_MODE_FIELD_POSITION) 100 jz ConvertLCHStoPCHS 101 102 ;;; 2: ADDR_DPT_LBA28 and 3: ADDR_DPT_LBA48 103 ; Fall through to ConvertLCHStoLBARegisterValues 100 104 101 105 ;---------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.