Changeset 543 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h


Ignore:
Timestamp:
Apr 16, 2013, 11:41:49 AM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Compatible DPTs can no longer have more than 1024 cylinders.
File:
1 edited

Legend:

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

    r526 r543  
    2020; Section containing code
    2121SECTION .text
     22
    2223
    2324;--------------------------------------------------------------------
     
    101102AH8h_GetDriveParameters:
    102103    call    AccessDPT_GetLCHStoAXBLBH
    103 %ifdef RESERVE_DIAGNOSTIC_CYLINDER
    104     dec     ax
    105 %endif
    106     MIN_U   ax, MAX_LCHS_CYLINDERS
     104    call    AH8h_LimitAXtoMaximumLCylinders
    107105    ; Fall to .PackReturnValues
    108106
     
    141139    ret
    142140
     141
     142;--------------------------------------------------------------------
     143; AH8h_LimitAXtoMaximumLCylinders
     144;   Parameters:
     145;       AX:     Number of total L-CHS cylinders (1...1027)
     146;   Returns:
     147;       AX:     Number of usable L-CHS cylinders (1...1024)
     148;   Corrupts registers:
     149;       Nothing
     150;--------------------------------------------------------------------
     151AH8h_LimitAXtoMaximumLCylinders:
     152%ifdef RESERVE_DIAGNOSTIC_CYLINDER
     153    dec     ax
     154%endif
     155    MIN_U   ax, MAX_LCHS_CYLINDERS
     156    ret
     157
     158
    143159%ifdef MODULE_SERIAL_FLOPPY
    144160;
Note: See TracChangeset for help on using the changeset viewer.