Changeset 58 in xtideuniversalbios for trunk/Assembly_Library/Src
- Timestamp:
- Nov 18, 2010, 2:42:28 PM (14 years ago)
- google:author:
- aitotat
- Location:
- trunk/Assembly_Library/Src
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/LibraryTests.asm
r52 r58 136 136 ALIGN WORD_ALIGN 137 137 .rgfnSelectionHandler: 138 dw .ExitMenu 138 dw .ExitMenuByItem 139 139 dw .ToggleTitle 140 140 dw .ToggleInfo … … 148 148 149 149 ALIGN JUMP_ALIGN 150 .ExitMenu :150 .ExitMenuByItem: 151 151 CALL_MENU_LIBRARY Close 152 .ExitMenuByMenuLibrary: 152 153 stc 153 154 ret … … 317 318 ALIGN WORD_ALIGN 318 319 .rgfnMenuEvents: 319 dw .InitializeMenu ; .InitializeMenuinitToDSSI320 dw . NotHandled; .ExitMenu321 dw .NotHandled ; .IdleProcessing322 dw .NotHandled ; .ItemHighlightedFromCX323 dw .ItemSelectedFromCX ; .ItemSelectedFromCX324 dw .NotHandled ; .KeyStrokeInDX325 dw .RefreshTitle ; .RefreshTitle326 dw .RefreshInformation ; .RefreshInformation327 dw .RefreshItemFromCX ; .RefreshItemFromCX320 dw .InitializeMenu ; .InitializeMenuinitToDSSI 321 dw .ExitMenuByMenuLibrary ; .ExitMenu 322 dw .NotHandled ; .IdleProcessing 323 dw .NotHandled ; .ItemHighlightedFromCX 324 dw .ItemSelectedFromCX ; .ItemSelectedFromCX 325 dw .NotHandled ; .KeyStrokeInDX 326 dw .RefreshTitle ; .RefreshTitle 327 dw .RefreshInformation ; .RefreshInformation 328 dw .RefreshItemFromCX ; .RefreshItemFromCX 328 329 329 330 .rgszItems: -
trunk/Assembly_Library/Src/Menu/Dialog/Dialog.asm
r52 r58 2 2 ; Project name : Assembly Library 3 3 ; Created date : 6.8.2010 4 ; Last update : 1 2.10.20104 ; Last update : 18.11.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Common functions for many dialogs. … … 63 63 ;-------------------------------------------------------------------- 64 64 ; Dialog_EventAnyThatClosesDialog 65 ; Dialog_EventExitMenu 65 66 ; Parameters: 66 67 ; SS:BP: Ptr to DIALOG … … 73 74 Dialog_EventAnyThatClosesDialog: 74 75 call MenuInit_CloseMenuWindow 76 ALIGN JUMP_ALIGN 77 Dialog_EventExitMenu: 75 78 stc 76 79 ret -
trunk/Assembly_Library/Src/Menu/Dialog/DialogDrive.asm
r54 r58 2 2 ; Project name : Assembly Library 3 3 ; Created date : 22.10.2010 4 ; Last update : 23.10.20104 ; Last update : 18.11.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Displays drive dialog. … … 91 91 istruc MENUEVENT 92 92 at MENUEVENT.InitializeMenuinitFromDSSI, dw .InitializeMenuinitFromDSSI 93 at MENUEVENT.ExitMenu, dw Dialog_Event NotHandled93 at MENUEVENT.ExitMenu, dw Dialog_EventExitMenu 94 94 at MENUEVENT.IdleProcessing, dw Dialog_EventNotHandled 95 95 at MENUEVENT.ItemHighlightedFromCX, dw Dialog_EventNotHandled -
trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm
r54 r58 2 2 ; Project name : Assembly Library 3 3 ; Created date : 6.9.2010 4 ; Last update : 24.10.20104 ; Last update : 18.11.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Displays file dialog. … … 101 101 istruc MENUEVENT 102 102 at MENUEVENT.InitializeMenuinitFromDSSI, dw InitializeMenuinitFromSSBP 103 at MENUEVENT.ExitMenu, dw Dialog_Event NotHandled103 at MENUEVENT.ExitMenu, dw Dialog_EventExitMenu 104 104 at MENUEVENT.IdleProcessing, dw Dialog_EventNotHandled 105 105 at MENUEVENT.ItemHighlightedFromCX, dw Dialog_EventNotHandled -
trunk/Assembly_Library/Src/Menu/Dialog/DialogMessage.asm
r52 r58 2 2 ; Project name : Assembly Library 3 3 ; Created date : 6.8.2010 4 ; Last update : 1 2.10.20104 ; Last update : 18.11.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Displays message dialog. … … 59 59 istruc MENUEVENT 60 60 at MENUEVENT.InitializeMenuinitFromDSSI, dw .InitializeMenuinitFromDSSI 61 at MENUEVENT.ExitMenu, dw Dialog_Event NotHandled61 at MENUEVENT.ExitMenu, dw Dialog_EventExitMenu 62 62 at MENUEVENT.IdleProcessing, dw Dialog_EventNotHandled 63 63 at MENUEVENT.ItemHighlightedFromCX, dw Dialog_EventNotHandled -
trunk/Assembly_Library/Src/Menu/Dialog/DialogProgress.asm
r52 r58 2 2 ; Project name : Assembly Library 3 3 ; Created date : 15.8.2010 4 ; Last update : 1 2.10.20104 ; Last update : 18.11.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Displays progress bar dialog and starts progress task. … … 120 120 istruc MENUEVENT 121 121 at MENUEVENT.InitializeMenuinitFromDSSI, dw .InitializeMenuinitFromDSSI 122 at MENUEVENT.ExitMenu, dw Dialog_Event NotHandled122 at MENUEVENT.ExitMenu, dw Dialog_EventExitMenu 123 123 at MENUEVENT.IdleProcessing, dw .IdleProcessing 124 124 at MENUEVENT.ItemHighlightedFromCX, dw Dialog_EventNotHandled -
trunk/Assembly_Library/Src/Menu/Dialog/DialogSelection.asm
r52 r58 2 2 ; Project name : Assembly Library 3 3 ; Created date : 13.8.2010 4 ; Last update : 1 2.10.20104 ; Last update : 18.11.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Displays selection dialog. … … 51 51 istruc MENUEVENT 52 52 at MENUEVENT.InitializeMenuinitFromDSSI, dw .InitializeMenuinitFromDSSI 53 at MENUEVENT.ExitMenu, dw Dialog_Event NotHandled53 at MENUEVENT.ExitMenu, dw Dialog_EventExitMenu 54 54 at MENUEVENT.IdleProcessing, dw Dialog_EventNotHandled 55 55 at MENUEVENT.ItemHighlightedFromCX, dw Dialog_EventNotHandled -
trunk/Assembly_Library/Src/Menu/Dialog/DialogString.asm
r52 r58 2 2 ; Project name : Assembly Library 3 3 ; Created date : 12.8.2010 4 ; Last update : 1 2.10.20104 ; Last update : 18.11.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Displays word input dialog. … … 62 62 istruc MENUEVENT 63 63 at MENUEVENT.InitializeMenuinitFromDSSI, dw .InitializeMenuinitFromDSSI 64 at MENUEVENT.ExitMenu, dw Dialog_Event NotHandled64 at MENUEVENT.ExitMenu, dw Dialog_EventExitMenu 65 65 at MENUEVENT.IdleProcessing, dw .IdleProcessing 66 66 at MENUEVENT.ItemHighlightedFromCX, dw Dialog_EventNotHandled -
trunk/Assembly_Library/Src/Menu/Dialog/DialogWord.asm
r52 r58 2 2 ; Project name : Assembly Library 3 3 ; Created date : 10.8.2010 4 ; Last update : 1 2.10.20104 ; Last update : 18.11.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Displays word input dialog. … … 62 62 istruc MENUEVENT 63 63 at MENUEVENT.InitializeMenuinitFromDSSI, dw .InitializeMenuinitFromDSSI 64 at MENUEVENT.ExitMenu, dw Dialog_Event NotHandled64 at MENUEVENT.ExitMenu, dw Dialog_EventExitMenu 65 65 at MENUEVENT.IdleProcessing, dw .IdleProcessing 66 66 at MENUEVENT.ItemHighlightedFromCX, dw Dialog_EventNotHandled -
trunk/Assembly_Library/Src/Menu/MenuEvent.asm
r52 r58 34 34 ; SS:BP: Ptr to MENU 35 35 ; Returns: 36 ; CF: Set if event processed37 ; Cleared if event not processed36 ; CF: Set to exit from menu 37 ; Cleared to cancel exit 38 38 ; Corrupts registers: 39 39 ; AX, BX, DX -
trunk/Assembly_Library/Src/Menu/MenuLoop.asm
r52 r58 2 2 ; Project name : Assembly Library 3 3 ; Created date : 22.7.2010 4 ; Last update : 1 2.10.20104 ; Last update : 18.10.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Menu loop for waiting keystrokes. … … 20 20 ALIGN JUMP_ALIGN 21 21 MenuLoop_Enter: 22 call KeystrokeProcessing 23 call TimeoutProcessing 24 call IdleTimeProcessing 22 25 test BYTE [bp+MENU.bFlags], FLG_MENU_EXIT 23 jnz SHORT .ExitMenu24 call IdleTimeProcessing25 26 call MenuTime_UpdateSelectionTimeout27 mov ah, MENU_KEY_ENTER ; Fake ENTER to select item28 jc SHORT .ProcessFakedKeystrokeCausedByTimeout29 30 call Keyboard_GetKeystrokeToAX31 26 jz SHORT MenuLoop_Enter 32 .ProcessFakedKeystrokeCausedByTimeout: 33 call ProcessKeystrokeFromAX 34 jmp SHORT MenuLoop_Enter 35 36 ALIGN JUMP_ALIGN 37 .ExitMenu: 38 jmp MenuEvent_ExitMenu 27 ret 39 28 40 29 41 30 ;-------------------------------------------------------------------- 42 31 ; IdleTimeProcessing 32 ; TimeoutProcessing 33 ; KeystrokeProcessing 43 34 ; Parameters 44 35 ; SS:BP: Ptr to MENU … … 46 37 ; Nothing 47 38 ; Corrupts registers: 48 ; A X, BX, DX39 ; All, except SS:BP 49 40 ;-------------------------------------------------------------------- 50 41 ALIGN JUMP_ALIGN 51 42 IdleTimeProcessing: 52 jmp MenuEvent_IdleProcessing ; User idle processing 43 jmp MenuEvent_IdleProcessing ; User idle processing 44 45 ALIGN JUMP_ALIGN 46 TimeoutProcessing: 47 call MenuTime_UpdateSelectionTimeout 48 mov ah, MENU_KEY_ENTER ; Fake ENTER to select item 49 jc SHORT ProcessKeystrokeFromAX ; Process faked ENTER 50 ret 51 52 ALIGN JUMP_ALIGN 53 KeystrokeProcessing: 54 call Keyboard_GetKeystrokeToAX 55 jnz SHORT ProcessKeystrokeFromAX 56 ret 53 57 54 58 … … 101 105 ALIGN JUMP_ALIGN 102 106 .LeaveMenuWithoutSelectingItem: 107 call MenuEvent_ExitMenu 108 jnc SHORT .CancelMenuExit 103 109 call MenuInit_CloseMenuWindow 104 110 mov WORD [bp+MENUINIT.wHighlightedItem], NO_ITEM_HIGHLIGHTED 111 .CancelMenuExit: 105 112 stc 106 113 ret
Note:
See TracChangeset
for help on using the changeset viewer.