Changeset 363 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/IDE_8bit.inc
- Timestamp:
- Mar 26, 2012, 4:20:43 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/IDE_8bit.inc
r152 r363 4 4 %ifndef IDE_8BIT_INC 5 5 %define IDE_8BIT_INC 6 7 ;-------------------------------------------------------------------- 8 ; UNROLL_SECTORS_IN_CX_TO_QWORDS 9 ; Parameters: 10 ; CX: Number of sectors in block 11 ; Returns: 12 ; CX: Number of QWORDs in block 13 ; Corrupts registers: 14 ; Nothing 15 ;-------------------------------------------------------------------- 16 %macro UNROLL_SECTORS_IN_CX_TO_QWORDS 0 17 %ifdef USE_186 18 shl cx, 6 19 %else 20 xchg cl, ch ; Sectors to WORDs (SHL CX, 8) 21 shr cx, 1 22 shr cx, 1 23 %endif 24 %endmacro 25 6 26 7 27 ;--------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.