Changeset 287 in xtideuniversalbios for trunk/Assembly_Library/Inc/Math.inc


Ignore:
Timestamp:
Mar 2, 2012, 12:31:39 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to Assembly Library:

  • Hopefully fixed a problem of wrong sized MDA cursor.
  • Some minor improvements.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Inc/Math.inc

    r181 r287  
    6565
    6666;--------------------------------------------------------------------
     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
     79ALIGN JUMP_ALIGN
     80.ShiftNextBit:
     81    shl     ax, 1
     82    rcl     dx, 1
     83    loop    .ShiftNextBit
     84%endmacro
     85
     86
     87;--------------------------------------------------------------------
    6788; SHR_DXAX
    6889;   Parameters:
Note: See TracChangeset for help on using the changeset viewer.