Changeset 189 in xtideuniversalbios for trunk/Assembly_Library


Ignore:
Timestamp:
Nov 16, 2011, 6:29:32 AM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Additional space optimizations, including making IdleProcessing an option in MENUEVENT. Note the fall-through from one file to another, but that there are assembler checks to ensure the proper linkage is maintained. First version of StringsCompress.pl, a perl script to make StringsCompressed.asm from Strings.asm.

Location:
trunk/Assembly_Library
Files:
3 edited

Legend:

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

    r183 r189  
    5151    ; Parameters:
    5252    ;   None
     53    ; See the definition of MENUEVENT_IDLEPROCESSING_ENABLE below.
    5354    .IdleProcessing                 resb    2
    5455%define MENUEVENT_IdleProcessing MENUEVENT.IdleProcessing
     
    8889%endif ; MENUEVENTS_INLINE_OFFSETS
    8990
     91;
     92; If user level idle processing is desired, %define this symbol and .IdleProcessing will be called.
     93;
     94;%define MENUEVENT_IDLEPROCESSING_ENABLE
     95
    9096%endif ; MENUEVENTS_INC
  • trunk/Assembly_Library/Src/Menu/MenuEvent.asm

    r183 r189  
    4141
    4242
     43%ifdef MENUEVENT_IDLEPROCESSING_ENABLE
    4344;--------------------------------------------------------------------
    4445; MenuEvent_IdleProcessing
     
    5556    mov     bl, MENUEVENT_IdleProcessing
    5657    jmp     SHORT MenuEvent_SendFromBX
    57 
     58%endif
    5859
    5960;--------------------------------------------------------------------
  • trunk/Assembly_Library/Src/Menu/MenuLoop.asm

    r178 r189  
    1818    call    KeystrokeProcessing
    1919    call    TimeoutProcessing
     20%ifdef MENUEVENT_IDLEPROCESSING_ENABLE
    2021    call    MenuEvent_IdleProcessing    ; User idle processing
     22%endif
    2123    test    BYTE [bp+MENU.bFlags], FLG_MENU_EXIT
    2224    jz      SHORT MenuLoop_Enter
Note: See TracChangeset for help on using the changeset viewer.