Changeset 183 in xtideuniversalbios for trunk/Assembly_Library/Src


Ignore:
Timestamp:
Nov 15, 2011, 4:35:14 AM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Space optimization, added option to inline offsets for MENUEVENT structure, for situations (such as the XTIDE bios) where only one menu is needed. Ifdef'd change (set in main.asm) so either method can be used.

File:
1 edited

Legend:

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

    r133 r183  
    2121    pop     ds
    2222    mov     si, bp
    23     mov     bl, MENUEVENT.InitializeMenuinitFromDSSI
     23    mov     bl, MENUEVENT_InitializeMenuinitFromDSSI
    2424    jmp     SHORT MenuEvent_SendFromBX
    2525
     
    3737ALIGN JUMP_ALIGN
    3838MenuEvent_ExitMenu:
    39     mov     bl, MENUEVENT.ExitMenu
     39    mov     bl, MENUEVENT_ExitMenu
    4040    jmp     SHORT MenuEvent_SendFromBX
    4141
     
    5353ALIGN JUMP_ALIGN
    5454MenuEvent_IdleProcessing:
    55     mov     bl, MENUEVENT.IdleProcessing
     55    mov     bl, MENUEVENT_IdleProcessing
    5656    jmp     SHORT MenuEvent_SendFromBX
    5757
     
    7171ALIGN JUMP_ALIGN
    7272MenuEvent_RefreshTitle:
    73     mov     bl, MENUEVENT.RefreshTitle
     73    mov     bl, MENUEVENT_RefreshTitle
    7474    SKIP2B  cx  ; mov cx, <next instruction>
    7575
    7676MenuEvent_RefreshInformation:
    77     mov     bl, MENUEVENT.RefreshInformation
     77    mov     bl, MENUEVENT_RefreshInformation
    7878    mov     cx, [bp+MENUINIT.wHighlightedItem]
    7979    jmp     SHORT MenuEvent_SendFromBX
     
    9494ALIGN JUMP_ALIGN
    9595MenuEvent_RefreshItemFromCX:
    96     mov     bl, MENUEVENT.RefreshItemFromCX
     96    mov     bl, MENUEVENT_RefreshItemFromCX
    9797    jmp     SHORT MenuEvent_SendFromBX
    9898
     
    114114    push    dx
    115115
    116     mov     bl, MENUEVENT.ItemHighlightedFromCX
     116    mov     bl, MENUEVENT_ItemHighlightedFromCX
    117117    call    MenuEvent_SendFromBX
    118118
     
    137137ALIGN JUMP_ALIGN
    138138MenuEvent_KeyStrokeInAX:
    139     mov     bl, MENUEVENT.KeyStrokeInAX
     139    mov     bl, MENUEVENT_KeyStrokeInAX
    140140    SKIP2B  dx  ; mov dx, <next instruction>
    141141
     
    153153;--------------------------------------------------------------------
    154154MenuEvent_ItemSelectedFromCX:
    155     mov     bl, MENUEVENT.ItemSelectedFromCX
     155    mov     bl, MENUEVENT_ItemSelectedFromCX
    156156    ; Fall to MenuEvent_SendFromBX
    157157
Note: See TracChangeset for help on using the changeset viewer.