source: xtideuniversalbios/trunk/Assembly_Library/Src/Menu/Dialog/DialogSelection.asm@ 605

Last change on this file since 605 was 596, checked in by Krister Nordvall, 6 years ago

Changes:

  • Made changes to HotkeyBar.asm to give the Boot Menu and Hotkey Bar a more consistent look. It will probably seem a bit strange at first to people used to the classic theme.
  • Added the missing parts of USE_NEC_V that should have been committed with the rest in r593.
  • Removed DEFINES_ALL_FEATURES from the BIOS makefile. It didn't work anymore and never really made sense anyway. Added all the official builds to 'make unused' instead which actually uncovered some unused code in the Tiny build.
  • XTIDECFG will no longer load color themes from unrecognized versions of the BIOS.
  • Other fixes in comments and some minor optimizations.
File size: 2.6 KB
RevLine 
[41]1; Project name : Assembly Library
2; Description : Displays selection dialog.
3
[376]4;
[526]5; XTIDE Universal BIOS and Associated Tools
6; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2013 by XTIDE Universal BIOS Team.
[376]7;
8; This program is free software; you can redistribute it and/or modify
9; it under the terms of the GNU General Public License as published by
10; the Free Software Foundation; either version 2 of the License, or
11; (at your option) any later version.
[526]12;
[376]13; This program is distributed in the hope that it will be useful,
14; but WITHOUT ANY WARRANTY; without even the implied warranty of
15; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[526]16; GNU General Public License for more details.
[376]17; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
18;
19
[526]20
[41]21; Section containing code
22SECTION .text
23
24;--------------------------------------------------------------------
25; DialogSelection_GetSelectionToAXwithInputInDSSI
26; Parameters:
27; DS:SI: Ptr to DIALOG_INPUT
28; SS:BP: Ptr to parent MENU
29; Returns:
30; Nothing
31; Corrupts registers:
[596]32; AX, BX, CX, DX, DI
[41]33;--------------------------------------------------------------------
34ALIGN JUMP_ALIGN
35DialogSelection_GetSelectionToAXwithInputInDSSI:
36 mov bx, SelectionEventHandler
37 jmp Dialog_DisplayWithDialogInputInDSSIandHandlerInBX
38
39
40;--------------------------------------------------------------------
41; SelectionEventHandler
42; Common parameters for all events:
43; BX: Menu event (anything from MENUEVENT struct)
44; SS:BP: Ptr to DIALOG
45; Common return values for all events:
46; CF: Set if event processed
47; Cleared if event not processed
48; Corrupts registers:
49; All
50;--------------------------------------------------------------------
51ALIGN JUMP_ALIGN
52SelectionEventHandler:
53 jmp [cs:bx+.rgfnEventHandlers]
54
55
56ALIGN JUMP_ALIGN
57.InitializeMenuinitFromDSSI:
[52]58 xor ax, ax
59 jmp Dialog_EventInitializeMenuinitFromDSSIwithHighlightedItemInAX
[41]60
61
62ALIGN WORD_ALIGN
63.rgfnEventHandlers:
64istruc MENUEVENT
65 at MENUEVENT.InitializeMenuinitFromDSSI, dw .InitializeMenuinitFromDSSI
[58]66 at MENUEVENT.ExitMenu, dw Dialog_EventExitMenu
[41]67 at MENUEVENT.IdleProcessing, dw Dialog_EventNotHandled
68 at MENUEVENT.ItemHighlightedFromCX, dw Dialog_EventNotHandled
69 at MENUEVENT.ItemSelectedFromCX, dw Dialog_EventAnyThatClosesDialog
70 at MENUEVENT.KeyStrokeInAX, dw Dialog_EventNotHandled
71 at MENUEVENT.RefreshTitle, dw Dialog_EventRefreshTitle
72 at MENUEVENT.RefreshInformation, dw Dialog_EventRefreshInformation
73 at MENUEVENT.RefreshItemFromCX, dw Dialog_EventRefreshItemFromCX
74iend
Note: See TracBrowser for help on using the repository browser.