Ignore:
Timestamp:
Apr 16, 2013, 11:41:49 AM (11 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/VariablesAndDPTs/CompatibleDPT.asm

    r542 r543  
    8989;--------------------------------------------------------------------
    9090FillToESDIusingDPTfromDSSI:
     91    mov     ax, [si+DPT.wLchsCylinders]
     92    call    AH8h_LimitAXtoMaximumLCylinders
    9193    test    BYTE [si+DPT.bFlagsLow], MASKL_DPT_TRANSLATEMODE
    9294    jz      SHORT FillStandardDPTtoESDIfromDPTinDSSI
     
    9698; FillTranslatedDPTtoESDIfromDPTinDSSI
    9799;   Parameters:
     100;       AX:     Number of Logical Cylinders
    98101;       CL:     Device Control Byte
    99102;       DS:SI:  Ptr to DPT
     
    106109FillTranslatedDPTtoESDIfromDPTinDSSI:
    107110    xor     dx, dx                      ; Clear for checksum
    108     mov     ax, [si+DPT.wLchsCylinders]
    109     ;MIN_U  ax, MAX_LCHS_CYLINDERS      ; Our DPT can have up to 1027
    110111    call    StoswThenAddALandAHtoDL     ; Bytes 0 and 1 (Logical number of cylinders)
    111112
     
    144145; FillStandardDPTtoESDIfromDPTinDSSI
    145146;   Parameters:
     147;       AX:     Number of Physical Cylinders == Number of Logical Cylinders
    146148;       CL:     Device Control Byte
    147149;       DS:SI:  Ptr to DPT
     
    153155;--------------------------------------------------------------------
    154156FillStandardDPTtoESDIfromDPTinDSSI:
    155     mov     ax, [si+DPT.wLchsCylinders]
    156157    stosw               ; Bytes 0 and 1 (Physical number of cylinders)
    157158    eMOVZX  ax, BYTE [si+DPT.bLchsHeads]
Note: See TracChangeset for help on using the changeset viewer.