Changeset 160 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeDPT.asm


Ignore:
Timestamp:
May 4, 2011, 5:49:22 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • Support for XTIDE mod now works.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeDPT.asm

    r150 r160  
    1010;       DS:DI:  Ptr to Disk Parameter Table
    1111;       ES:SI:  Ptr to 512-byte ATA information read from the drive
     12;       CS:BP:  Ptr to IDEVARS for the controller
    1213;   Returns:
    1314;       Nothing
     
    2324;       DS:DI:  Ptr to Disk Parameter Table
    2425;       ES:SI:  Ptr to 512-byte ATA information read from the drive
     26;       CS:BP:  Ptr to IDEVARS for the controller
    2527;   Returns:
    2628;       Nothing
     
    3234    mov     ah, [es:si+ATA1.bBlckSize]      ; Max block size in sectors
    3335    mov     [di+DPT_ATA.wSetAndMaxBlock], ax
    34     ; Fall to .EndDPT
     36    ; Fall to IdeDPT_StoreReversedAddressLinesFlagIfNecessary
    3537
     38;--------------------------------------------------------------------
     39; IdeDPT_StoreReversedAddressLinesFlagIfNecessary
     40;   Parameters:
     41;       DS:DI:  Ptr to Disk Parameter Table
     42;       CS:BP:  Ptr to IDEVARS for the controller
     43;   Returns:
     44;       Nothing
     45;   Corrupts registers:
     46;       Nothing
     47;--------------------------------------------------------------------
     48IdeDPT_StoreReversedAddressLinesFlagIfNecessary:
     49    cmp     BYTE [cs:bp+IDEVARS.bDevice], DEVICE_XTIDE_WITH_REVERSED_A3_AND_A0
     50    jne     SHORT .EndDPT
     51    or      BYTE [di+DPT.bFlagsHigh], FLGH_DPT_REVERSED_A0_AND_A3
    3652
    3753.EndDPT:
Note: See TracChangeset for help on using the changeset viewer.