Changeset 589 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu
- Timestamp:
- May 22, 2016, 12:26:57 PM (9 years ago)
- Location:
- trunk/Assembly_Library/Src/Menu
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/CharOutLineSplitter.asm
r526 r589 162 162 push si 163 163 push cx 164 WAIT_RETRACE_IF_NECESSARY_THEN rep movsb164 CALL_WAIT_FOR_RETRACE_IF_NECESSARY_THEN rep movsb 165 165 pop cx 166 166 pop si -
trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm
r568 r589 239 239 ; AppendFileFromDTAinDSSItoOffScreenBuffer 240 240 ; Parameters: 241 ; CX: Files/director es found241 ; CX: Files/directories found 242 242 ; DL: Zero if root directory selected 243 243 ; DS:SI: Ptr to DTA containing file information -
trunk/Assembly_Library/Src/Menu/MenuLoop.asm
r581 r589 106 106 %ifndef MENU_NO_ESC 107 107 cmp al, ESC 108 je SHORT .LeaveMenuWithoutSelectingItem 109 %endif 110 cmp al, CR 111 je SHORT .SelectItem 112 113 test BYTE [bp+MENU.bFlags], FLG_MENU_USER_HANDLES_SCROLLING 114 jz SHORT MenuLoop_ProcessScrollingKeysFromAX 115 ret ; Return with CF cleared since keystroke not processed 116 117 %ifndef MENU_NO_ESC 118 ALIGN MENU_JUMP_ALIGN 119 .LeaveMenuWithoutSelectingItem: 108 jne SHORT .NotEscape 109 110 ; Leave menu without selecting item 120 111 call MenuEvent_ExitMenu 121 112 jnc SHORT .CancelMenuExit … … 128 119 129 120 ALIGN MENU_JUMP_ALIGN 130 .SelectItem: 121 .NotEscape: 122 cmp al, CR 123 jne SHORT .NotCarriageReturn 124 125 ; Select item 131 126 mov cx, [bp+MENUINIT.wHighlightedItem] 132 127 call MenuEvent_ItemSelectedFromCX 133 128 stc 134 ret 129 .Return: 130 ret 131 132 ALIGN MENU_JUMP_ALIGN 133 .NotCarriageReturn: 134 test BYTE [bp+MENU.bFlags], FLG_MENU_USER_HANDLES_SCROLLING 135 jnz SHORT .Return ; With CF cleared since keystroke not processed 136 ; Fall to MenuLoop_ProcessScrollingKeysFromAX 135 137 136 138 … … 172 174 .ChangeToPreviousPage: 173 175 call MenuScrollbars_GetMaxVisibleItemsOnPageToCX 174 xchg ax, cx 175 neg ax 176 mov cx, [bp+MENUINIT.wHighlightedItem] 177 add cx, ax 176 neg cx 177 mov ax, cx 178 add cx, [bp+MENUINIT.wHighlightedItem] 178 179 jge SHORT .MoveHighlightedItemByAX ; No rotation for PgUp 179 180 ; Fall to .SelectFirstItem … … 187 188 .ChangeToNextPage: 188 189 call MenuScrollbars_GetMaxVisibleItemsOnPageToCX 189 xchg ax, cx 190 mov cx, [bp+MENUINIT.wHighlightedItem] 191 add cx, ax 190 mov ax, cx 191 add cx, [bp+MENUINIT.wHighlightedItem] 192 192 cmp cx, [bp+MENUINIT.wItems] 193 193 jb SHORT .MoveHighlightedItemByAX ; No rotation for PgDn
Note:
See TracChangeset
for help on using the changeset viewer.