Ignore:
Timestamp:
Jan 29, 2012, 1:33:44 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • EBIOS functions now work in lite mode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH15h_HSize.asm

    r155 r227  
    5353    jmp     SHORT ConvertAH08hReturnValuesToSectorCount
    5454
    55 ALIGN JUMP_ALIGN
    5655AH15h_GetSectorCountToDXAX:
    5756    call    AH8h_GetDriveParameters
     
    6059ConvertAH08hReturnValuesToSectorCount:
    6160    call    Address_ExtractLCHSparametersFromOldInt13hAddress
    62     xor     ax, ax          ; Zero AX
    63     inc     cx              ; Max cylinder number to cylinder count
    64     xchg    al, bh          ; AX=Max head number, BX=Sectors per track
    65     inc     ax              ; AX=Head count
    66     mul     bx              ; AX=Head count * Sectors per track
    67     mul     cx              ; DX:AX = Total sector count
    68     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
    6968    ret
Note: See TracChangeset for help on using the changeset viewer.