Changeset 103 in xtideuniversalbios for trunk/Assembly_Library/Src/Util


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.

Location:
trunk/Assembly_Library/Src/Util
Files:
3 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
  • trunk/Assembly_Library/Src/Util/Memory.asm

    r54 r103  
    1 ; File name     :   Memory.asm
    21; Project name  :   Assembly Library
    3 ; Created date  :   14.7.2010
    4 ; Last update   :   24.10.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Functions for memory access.
    73
     
    2622
    2723    shr     cx, 1           ; Operate with WORDs for performance
    28     jcxz    %%HandleRemainingByte
     24    jz  %%HandleRemainingByte
    2925    %1      %2w
    3026%%HandleRemainingByte:
     
    7066    push    di
    7167    push    ax
    72     call    Registers_CopySSBPtoESDI
     68    Registers_CopySSBPtoESDI
    7369    call    Memory_ZeroESDIwithSizeInCX
    7470    pop     ax
  • trunk/Assembly_Library/Src/Util/Registers.asm

    r66 r103  
    1 ; File name     :   Registers.asm
    21; Project name  :   Assembly Library
    3 ; Created date  :   24.10.2010
    4 ; Last update   :   6.12.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Functions for register operations.
    73
     
    9086;       Nothing
    9187;--------------------------------------------------------------------
    92 ALIGN JUMP_ALIGN
    93 Registers_CopySSBPtoESDI:
     88%macro Registers_CopySSBPtoESDI 0
    9489    push    ss
    9590    pop     es
    9691    mov     di, bp
    97     ret
     92%endmacro
    9893
    99 ALIGN JUMP_ALIGN
    100 Registers_CopySSBPtoDSSI:
     94%macro Registers_CopySSBPtoDSSI 0
    10195    push    ss
    10296    pop     ds
    10397    mov     si, bp
    104     ret
     98%endmacro
    10599
    106 ALIGN JUMP_ALIGN
    107 Registers_CopyDSSItoESDI:
     100%macro Registers_CopyDSSItoESDI 0
    108101    push    ds
    109102    pop     es
    110103    mov     di, si
    111     ret
     104%endmacro
    112105
    113 ALIGN JUMP_ALIGN
    114 Registers_CopyESDItoDSSI:
     106%macro Registers_CopyESDItoDSSI 0
    115107    push    es
    116108    pop     ds
    117109    mov     si, di
    118     ret
     110%endmacro
    119111
    120112
Note: See TracChangeset for help on using the changeset viewer.