Changeset 442 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc
- Timestamp:
- Aug 21, 2012, 5:17:11 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/IDE_8bit.inc
r376 r442 23 23 24 24 ;-------------------------------------------------------------------- 25 ; UNROLL_SECTORS_IN_CX_TO_DWORDS 25 26 ; UNROLL_SECTORS_IN_CX_TO_QWORDS 26 27 ; Parameters: 27 28 ; CX: Number of sectors in block 28 29 ; Returns: 29 ; CX: Number of QWORDs in block30 ; CX: Number of DWORDs or QWORDs in block 30 31 ; Corrupts registers: 31 32 ; Nothing 32 33 ;-------------------------------------------------------------------- 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 33 43 %macro UNROLL_SECTORS_IN_CX_TO_QWORDS 0 34 44 %ifdef USE_186 35 45 shl cx, 6 36 46 %else 37 xchg cl, ch ; Sectors to WORDs (SHL CX, 8) 38 shr cx, 1 47 UNROLL_SECTORS_IN_CX_TO_DWORDS 39 48 shr cx, 1 40 49 %endif
Note:
See TracChangeset
for help on using the changeset viewer.