Changeset 492 in xtideuniversalbios for trunk/Assembly_Library/Inc


Ignore:
Timestamp:
Dec 21, 2012, 1:01:55 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Removed the dependency between MODULE_BOOT_MENU and MODULE_HOTKEYS. With these changes, 0, 1, or 2 of them can be included in a build. This change also means that the hotkeys don't work while the menu is up. But the most important hotkey there was for Rom Boot, and that has been added to the menu as a choice proper. Lots of changes across the board in the hotkeys code - even if we eventually back this change out (becaue, for example we want hotkeys to work in the menu) we should probably start from this base and add that functionality back in, as these changes results in approximately 120 bytes of savings and includes new functionality, such as the Rom Boot menu item and the Com Detect hotkey.

File:
1 edited

Legend:

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

    r198 r492  
    5050    ;   DS:SI:      Ptr to initialized MENUINIT struct
    5151    .InitializeMenuinitFromDSSI     resb    2
    52 %define MENUEVENT_InitializeMenuinitFromDSSI MENUEVENT.InitializeMenuinitFromDSSI
     52MENUEVENT_InitializeMenuinitFromDSSI    equ     MENUEVENT.InitializeMenuinitFromDSSI
    5353
    5454    ; Parameters:
     
    5858    ;               Clear to cancel exit
    5959    .ExitMenu                       resb    2
    60 %define MENUEVENT_ExitMenu MENUEVENT.ExitMenu
     60MENUEVENT_ExitMenu                  equ     MENUEVENT.ExitMenu
    6161
    6262%ifdef MENUEVENT_IDLEPROCESSING_ENABLE
     
    6565    ; See the definition of MENUEVENT_IDLEPROCESSING_ENABLE below.
    6666    .IdleProcessing                 resb    2
    67 %define MENUEVENT_IdleProcessing MENUEVENT.IdleProcessing
     67MENUEVENT_IdleProcessing            equ     MENUEVENT.IdleProcessing
    6868%endif
    6969
     
    7272    ;   DX:         Index of previously highlighted item or NO_ITEM_HIGHLIGHTED
    7373    .ItemHighlightedFromCX          resb    2
    74 %define MENUEVENT_ItemHighlightedFromCX MENUEVENT.ItemHighlightedFromCX
     74MENUEVENT_ItemHighlightedFromCX     equ     MENUEVENT.ItemHighlightedFromCX
    7575
    7676    ; Parameters:
    7777    ;   CX:         Index of selected item
    7878    .ItemSelectedFromCX             resb    2
    79 %define MENUEVENT_ItemSelectedFromCX MENUEVENT.ItemSelectedFromCX
     79MENUEVENT_ItemSelectedFromCX        equ     MENUEVENT.ItemSelectedFromCX
    8080
    8181    ; Parameters:
     
    8383    ;   AH:         Keyboard library scan code for the key
    8484    .KeyStrokeInAX                  resb    2
    85 %define MENUEVENT_KeyStrokeInAX MENUEVENT.KeyStrokeInAX
     85MENUEVENT_KeyStrokeInAX             equ     MENUEVENT.KeyStrokeInAX
    8686
    8787    ; Parameters:
     
    9090    .RefreshTitle                   resb    2
    9191    .RefreshInformation             resb    2
    92 %define MENUEVENT_RefreshTitle MENUEVENT.RefreshTitle
    93 %define MENUEVENT_RefreshInformation MENUEVENT.RefreshInformation
     92MENUEVENT_RefreshTitle              equ     MENUEVENT.RefreshTitle
     93MENUEVENT_RefreshInformation        equ     MENUEVENT.RefreshInformation
    9494
    9595    ; Parameters:
     
    9797    ;   Cursor has been positioned to the beginning of item line
    9898    .RefreshItemFromCX              resb    2
    99 %define MENUEVENT_RefreshItemFromCX MENUEVENT.RefreshItemFromCX
     99MENUEVENT_RefreshItemFromCX         equ     MENUEVENT.RefreshItemFromCX
    100100endstruc
    101101
Note: See TracChangeset for help on using the changeset viewer.