Changeset 52 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm
- Timestamp:
- Oct 12, 2010, 6:51:07 PM (15 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm
r51 r52 2 2 ; Project name : Assembly Library 3 3 ; Created date : 6.9.2010 4 ; Last update : 1 0.10.20104 ; Last update : 12.10.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Displays file dialog. … … 49 49 .ItemSelectedFromCX: 50 50 call LoadItemStringBufferToESDI 51 call LineSplitter_GetOffsetToSIforLineCXfromStringInESDI 52 push es 53 pop ds 51 call Memory_CopyESDItoDSSI 52 call ItemLineSplitter_GetLineToDSSIandLengthToCXfromStringInDSSIwithIndexInCX 54 53 jmp ParseSelectionFromItemLineInDSSI 55 54 … … 115 114 call SortDirectoryContentsStringFromESDIwithCountInCX 116 115 call Memory_CopySSBPtoDSSI 117 call Dialog_EventInitializeMenuinitFromDSSI 116 xor ax, ax 117 call Dialog_EventInitializeMenuinitFromDSSIwithHighlightedItemInAX 118 118 call GetInfoLinesToCXandDialogFlagsToAX 119 119 mov [bp+MENUINIT.bInfoLines], cl 120 120 CALL_DISPLAY_LIBRARY GetColumnsToALandRowsToAH 121 121 mov [bp+MENUINIT.bHeight], ah ; Always max height 122 xor ax, ax 123 mov [bp+MENU.wHighlightedItem], ax 124 mov [bp+MENU.wFirstVisibleItem], ax 122 mov WORD [bp+MENU.wFirstVisibleItem], 0 125 123 ret 126 124 … … 256 254 mov bx, di 257 255 CALL_DISPLAY_LIBRARY PushDisplayContext 258 CALL_DISPLAY_LIBRARY PrepareOffScreenBufferInESBXtoESDI 256 mov cx, -1 257 CALL_DISPLAY_LIBRARY PrepareOffScreenBufferInESBXwithLengthInCX 259 258 260 259 call .FormatFileOrDirectoryToBufferFromDTAinDSSI … … 299 298 ;-------------------------------------------------------------------- 300 299 .FormatFile: 300 ; Convert file name to lower case 301 xchg si, ax 302 mov dx, StringProcess_ConvertToLowerCase 303 call StringProcess_DSSIwithFunctionInDX 304 xchg ax, si 305 301 306 ; Push parameters for file name 302 xchg si, ax303 call String_ConvertDSSItoLowerCase304 xchg ax, si305 307 push ax ; Push directory name offset 306 308 push ds ; Push directory name segment
Note:
See TracChangeset
for help on using the changeset viewer.