Changeset 103 in xtideuniversalbios for trunk/Assembly_Library/Src/Util/Bit.asm


Ignore:
Timestamp:
Feb 2, 2011, 1:33:48 AM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Optimizations to Assembly Library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Util/Bit.asm

    r41 r103  
    1 ; File name     :   Bit.asm
    21; Project name  :   Assembly Library
    3 ; Created date  :   3.9.2010
    4 ; Last update   :   3.9.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Functions for bit handling.
    73
     
    5147    shr     ax, 1
    5248    jz      SHORT .LastBitInCF
    53     adc     cx, BYTE 0
     49    adc     cl, ch
    5450    jmp     SHORT .BitScanLoop
    5551ALIGN JUMP_ALIGN
    5652.LastBitInCF:
    57     adc     cx, BYTE 0
     53    adc     cl, ch
    5854
    5955    pop     ax
Note: See TracChangeset for help on using the changeset viewer.