Changeset 227 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH15h_HSize.asm
- Timestamp:
- Jan 29, 2012, 1:33:44 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH15h_HSize.asm
r155 r227 53 53 jmp SHORT ConvertAH08hReturnValuesToSectorCount 54 54 55 ALIGN JUMP_ALIGN56 55 AH15h_GetSectorCountToDXAX: 57 56 call AH8h_GetDriveParameters … … 60 59 ConvertAH08hReturnValuesToSectorCount: 61 60 call Address_ExtractLCHSparametersFromOldInt13hAddress 62 x or ax, ax ; Zero AX63 inc cx ; Max cylinder number to cylinder count64 xchg al, bh ; AX=Max head number, BX=Sectors per track 65 inc ax ; AX=Head count66 mul bx ; AX=Head count * Sectors per track67 mul cx ; DX:AX = Total sector count68 xor bx, bx ; Zero BX for 48-bit sector count (and clear CF)61 xchg ax, cx 62 inc ax ; Max cylinder number to cylinder count 63 .MultiplyChsInAXBLBHtoBXDXAX: 64 xchg bx, ax 65 mul ah ; Multiply heads and sectors 66 mul bx ; Multiply with cylinders 67 xor bx, bx 69 68 ret
Note:
See TracChangeset
for help on using the changeset viewer.