Changeset 544 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/EBIOS


Ignore:
Timestamp:
Apr 17, 2013, 5:16:00 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Comparing BX:DX:AX against 15,482,880 sectors now works correctly.
  • P-Cylinders are now stored to Compatible DPTs if EBIOS functions are disabled by CHS adressing mode.
File:
1 edited

Legend:

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

    r542 r544  
    136136    ; Store P-CHS. Based on phoenix specification this is returned only if
    137137    ; total sector count is 15,482,880 or less.
    138     sub     ax, MAX_SECTOR_COUNT_TO_RETURN_PCHS & 0FFFFh
    139     sbb     dx, MAX_SECTOR_COUNT_TO_RETURN_PCHS >> 16
     138    sub     ax, (MAX_SECTOR_COUNT_TO_RETURN_PCHS+1) & 0FFFFh
     139    sbb     dx, (MAX_SECTOR_COUNT_TO_RETURN_PCHS+1) >> 16
    140140    sbb     bx, cx      ; Zero
    141     ja      SHORT .ReturnWithSuccess
     141    jnc     SHORT .ReturnWithSuccess
    142142    or      BYTE [di+EDRIVE_INFO.wFlags], FLG_CHS_INFORMATION_IS_VALID
    143143
Note: See TracChangeset for help on using the changeset viewer.