Changeset 133 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu/MenuScrollbars.asm


Ignore:
Timestamp:
Mar 12, 2011, 1:48:48 PM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Size optimizations in various files in the Assembly Library. Also a very small change to a string in XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Menu/MenuScrollbars.asm

    r105 r133  
    5959;   Corrupts registers:
    6060;       CX, DX
    61 ;--------------------------------------------------------------------   
     61;--------------------------------------------------------------------
    6262ALIGN JUMP_ALIGN
    6363.GetLastThumbLineToAX:
     
    161161.RotateItemInCX:
    162162    mov     dx, [bp+MENUINIT.wItems]
    163     cmp     cx, BYTE 0
    164     jl      SHORT .RotateNegativeItemInCX
     163    test    cx, cx
     164    js      SHORT .RotateNegativeItemInCX
    165165    cmp     cx, dx
    166166    jae     SHORT .RotatePositiveItemInCX
     
    193193ALIGN JUMP_ALIGN
    194194MenuScrollbars_IsItemInCXonVisiblePage:
    195     cmp     cx, [bp+MENU.wFirstVisibleItem]
    196     jb      SHORT .ItemIsNotVisible
     195    cmp     [bp+MENU.wFirstVisibleItem], cx
     196    ja      SHORT .ItemIsNotVisible
    197197
    198198    call    MenuScrollbars_GetLastVisibleItemOnPageToAX
     
    200200    ja      SHORT .ItemIsNotVisible
    201201    stc     ; Item is visible
    202     ret
    203 ALIGN JUMP_ALIGN
     202ALIGN JUMP_ALIGN, ret
    204203.ItemIsNotVisible:
    205     clc
    206204    ret
    207205
Note: See TracChangeset for help on using the changeset viewer.