Changeset 442 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc


Ignore:
Timestamp:
Aug 21, 2012, 5:17:11 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • ATA ID validation now compares heads to correct maximum number of heads.
  • Added XTCF 8-bit mode transfer functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Inc/IDE_8bit.inc

    r376 r442  
    2323
    2424;--------------------------------------------------------------------
     25; UNROLL_SECTORS_IN_CX_TO_DWORDS
    2526; UNROLL_SECTORS_IN_CX_TO_QWORDS
    2627;   Parameters:
    2728;       CX:     Number of sectors in block
    2829;   Returns:
    29 ;       CX:     Number of QWORDs in block
     30;       CX:     Number of DWORDs or QWORDs in block
    3031;   Corrupts registers:
    3132;       Nothing
    3233;--------------------------------------------------------------------
     34%macro UNROLL_SECTORS_IN_CX_TO_DWORDS 0
     35%ifdef USE_186
     36    shl     cx, 7
     37%else
     38    xchg    cl, ch      ; Sectors to WORDs (SHL CX, 8)
     39    shr     cx, 1
     40%endif
     41%endmacro
     42
    3343%macro UNROLL_SECTORS_IN_CX_TO_QWORDS 0
    3444%ifdef USE_186
    3545    shl     cx, 6
    3646%else
    37     xchg    cl, ch      ; Sectors to WORDs (SHL CX, 8)
    38     shr     cx, 1
     47    UNROLL_SECTORS_IN_CX_TO_DWORDS
    3948    shr     cx, 1
    4049%endif
Note: See TracChangeset for help on using the changeset viewer.