- Timestamp:
- Sep 18, 2011, 11:38:58 AM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/Assembly_Library
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Inc/Math.inc
r41 r172 1 ; File name : Math.inc2 1 ; Project name : Assembly Library 3 ; Created date : 12.8.20104 ; Last update : 12.8.20105 ; Author : Tomi Tilli6 2 ; Description : Math related macros. 7 3 %ifndef MATH_INC … … 68 64 69 65 66 ;-------------------------------------------------------------------- 67 ; SHR_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 SHR_DXAX 1 76 %ifnidni %1, cx 77 mov cx, %1 78 %endif 79 ALIGN JUMP_ALIGN 80 .ShiftNextBit: 81 shr dx, 1 82 rcr ax, 1 83 loop .ShiftNextBit 84 %endmacro 85 86 70 87 %endif ; MATH_INC -
trunk/Assembly_Library/Src/AssemblyLibrary.asm
r162 r172 75 75 %include "Bit.asm" 76 76 %endif 77 %include "Math.asm" 77 78 %include "Registers.asm" 78 79 %include "Memory.asm"
Note:
See TracChangeset
for help on using the changeset viewer.