Changeset 105 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu
- Timestamp:
- Feb 17, 2011, 2:52:42 PM (14 years ago)
- google:author:
- aitotat
- Location:
- trunk/Assembly_Library/Src/Menu
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm
r103 r105 45 45 .ItemSelectedFromCX: 46 46 call LoadItemStringBufferToESDI 47 Registers_CopyESDItoDSSI47 COPY_ESDI_to_DSSI 48 48 call ItemLineSplitter_GetLineToDSSIandLengthToCXfromStringInDSSIwithIndexInCX 49 49 jmp ParseSelectionFromItemLineInDSSI … … 128 128 call RemoveLastLFandTerminateESDIwithNull 129 129 130 Registers_CopySSBPtoDSSI130 COPY_SSBP_TO_DSSI 131 131 xor ax, ax 132 132 call Dialog_EventInitializeMenuinitFromDSSIwithHighlightedItemInAX … … 198 198 ALIGN JUMP_ALIGN 199 199 .ClearDLifInRootDirectory: 200 Registers_CopyESDItoDSSI200 COPY_ESDI_to_DSSI 201 201 call Directory_WriteCurrentPathToDSSI 202 202 mov dl, [si] … … 374 374 ALIGN JUMP_ALIGN 375 375 SortDirectoryContentsStringFromESDIwithCountInCX: 376 Registers_CopyESDItoDSSI376 COPY_ESDI_to_DSSI 377 377 call .AddDirectoryContentsStringLengthToDI 378 378 mov bx, .FileStringComparator -
trunk/Assembly_Library/Src/Menu/MenuBorders.asm
r104 r105 394 394 db DOUBLE_BOTTOM_LEFT_CORNER 395 395 db DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL 396 db "%A Autoselection in %2u s",NULL396 db "%ASelection in %2u s",NULL 397 397 398 398 -
trunk/Assembly_Library/Src/Menu/MenuLoop.asm
r60 r105 1 ; File name : MenuLoop.asm2 1 ; Project name : Assembly Library 3 ; Created date : 22.7.20104 ; Last update : 25.11.20105 ; Author : Tomi Tilli6 2 ; Description : Menu loop for waiting keystrokes. 7 3 … … 22 18 call KeystrokeProcessing 23 19 call TimeoutProcessing 24 call IdleTimeProcessing20 call MenuEvent_IdleProcessing ; User idle processing 25 21 test BYTE [bp+MENU.bFlags], FLG_MENU_EXIT 26 22 jz SHORT MenuLoop_Enter … … 29 25 30 26 ;-------------------------------------------------------------------- 31 ; IdleTimeProcessing27 ; KeystrokeProcessing 32 28 ; TimeoutProcessing 33 ; KeystrokeProcessing34 29 ; Parameters 35 30 ; SS:BP: Ptr to MENU … … 40 35 ;-------------------------------------------------------------------- 41 36 ALIGN JUMP_ALIGN 42 IdleTimeProcessing: 43 jmp MenuEvent_IdleProcessing ; User idle processing 37 KeystrokeProcessing: 38 call Keyboard_GetKeystrokeToAX 39 jnz SHORT ProcessKeystrokeFromAX 40 NoKeystrokeToProcess: 41 ret 44 42 45 43 ALIGN JUMP_ALIGN 46 44 TimeoutProcessing: 47 45 call MenuTime_UpdateSelectionTimeout 46 jnc NoKeystrokeToProcess 48 47 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 48 ; Fall to ProcessKeystrokeFromAX 57 49 58 50 … … 74 66 xchg ax, cx 75 67 call .ProcessMenuSystemKeystrokeFromAX 76 jc SHORT .Return68 jc SHORT NoKeystrokeToProcess 77 69 jmp MenuEvent_KeyStrokeInAX 78 ALIGN JUMP_ALIGN, ret79 .Return:80 ret81 70 82 71 ;-------------------------------------------------------------------- -
trunk/Assembly_Library/Src/Menu/MenuScrollbars.asm
r67 r105 1 ; File name : MenuScrollbars.asm2 1 ; Project name : Assembly Library 3 ; Created date : 20.7.20104 ; Last update : 9.12.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for drawing scroll bars over menu borders. 7 3 … … 185 181 186 182 ;-------------------------------------------------------------------- 187 ; .IsItemInCXonVisiblePage183 ; MenuScrollbars_IsItemInCXonVisiblePage 188 184 ; Parameters 189 185 ; CX: Item whose visibility is to be checked … … 197 193 ALIGN JUMP_ALIGN 198 194 MenuScrollbars_IsItemInCXonVisiblePage: 199 cmp cx, [bp+MENUINIT.wItems]200 jae SHORT .ItemIsNotVisible201 202 195 cmp cx, [bp+MENU.wFirstVisibleItem] 203 196 jb SHORT .ItemIsNotVisible … … 215 208 216 209 ;-------------------------------------------------------------------- 217 ; Menu Location_GetLastVisibleItemOnPageToAX210 ; MenuScrollbars_GetLastVisibleItemOnPageToAX 218 211 ; Parameters 219 212 ; SS:BP: Ptr to MENU -
trunk/Assembly_Library/Src/Menu/MenuTime.asm
r62 r105 1 ; File name : MenuTime.asm2 1 ; Project name : Assembly Library 3 ; Created date : 25.7.20104 ; Last update : 30.11.20105 ; Author : Tomi Tilli6 2 ; Description : Menu timeouts other time related functions. 7 3 … … 41 37 MenuTime_StopSelectionTimeout: 42 38 test BYTE [bp+MENU.bFlags], FLG_MENU_TIMEOUT_COUNTDOWN 43 jz SHORT .TimeoutAlreadyStopped39 jz SHORT TimeoutAlreadyStopped 44 40 and BYTE [bp+MENU.bFlags], ~FLG_MENU_TIMEOUT_COUNTDOWN 45 41 jmp MenuBorders_RedrawBottomBorderLine 46 ALIGN JUMP_ALIGN47 .TimeoutAlreadyStopped:48 ret49 42 50 43 … … 77 70 call MenuBorders_RedrawBottomBorderLine 78 71 clc 79 ALIGN JUMP_ALIGN80 72 .ReturnSinceTimeoutDisabled: 73 TimeoutAlreadyStopped: 81 74 ret 82 75
Note:
See TracChangeset
for help on using the changeset viewer.