Changeset 287 in xtideuniversalbios for trunk/Assembly_Library/Inc/Math.inc
- Timestamp:
- Mar 2, 2012, 12:31:39 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Inc/Math.inc
r181 r287 65 65 66 66 ;-------------------------------------------------------------------- 67 ; SHL_DXAX 68 ; Parameters: 69 ; %1: Number of bits to shift 70 ; Returns: 71 ; DX:AX Shifted value 72 ; Corrupts registers: 73 ; CX 74 ;-------------------------------------------------------------------- 75 %macro SHL_DXAX 1 76 %ifnidni %1, cx 77 mov cx, %1 78 %endif 79 ALIGN JUMP_ALIGN 80 .ShiftNextBit: 81 shl ax, 1 82 rcl dx, 1 83 loop .ShiftNextBit 84 %endmacro 85 86 87 ;-------------------------------------------------------------------- 67 88 ; SHR_DXAX 68 89 ; Parameters:
Note:
See TracChangeset
for help on using the changeset viewer.