Changeset 589 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/IdeIO.inc
- Timestamp:
- May 22, 2016, 12:26:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/IdeIO.inc
r526 r589 105 105 106 106 107 ;-------------------------------------------------------------------- 108 ; UNROLL_SECTORS_IN_CX_TO_DWORDS 109 ; UNROLL_SECTORS_IN_CX_TO_QWORDS 110 ; UNROLL_SECTORS_IN_CX_TO_OWORDS 111 ; Parameters: 112 ; CX: Number of sectors in block 113 ; Returns: 114 ; CX: Number of DWORDs, QWORDs or OWORDs in block 115 ; Corrupts registers: 116 ; Nothing 117 ;-------------------------------------------------------------------- 118 %macro UNROLL_SECTORS_IN_CX_TO_DWORDS 0 119 %ifdef USE_186 120 shl cx, 7 121 %else 122 xchg cl, ch ; Sectors to WORDs (SHL CX, 8) 123 shr cx, 1 124 %endif 125 %endmacro 126 127 %macro UNROLL_SECTORS_IN_CX_TO_QWORDS 0 128 %ifdef USE_186 129 shl cx, 6 130 %else 131 UNROLL_SECTORS_IN_CX_TO_DWORDS 132 shr cx, 1 133 %endif 134 %endmacro 135 136 %macro UNROLL_SECTORS_IN_CX_TO_OWORDS 0 137 %ifdef USE_186 138 shl cx, 5 139 %else 140 ; UNROLL_SECTORS_IN_CX_TO_QWORDS 141 ; shr cx, 1 142 mov ch, cl ; 2 bytes shorter but possibly slower 143 mov cl, 3 144 shr cx, cl 145 %endif 146 %endmacro 147 148 107 149 %endif ; IDE_IO_INC
Note:
See TracChangeset
for help on using the changeset viewer.