Changeset 625 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm
- Timestamp:
- Feb 19, 2023, 9:26:52 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm
r602 r625 4 4 ; 5 5 ; XTIDE Universal BIOS and Associated Tools 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-20 13 by XTIDE Universal BIOS Team.6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2023 by XTIDE Universal BIOS Team. 7 7 ; 8 8 ; This program is free software; you can redistribute it and/or modify … … 121 121 .rgszInfoStringLookup: 122 122 dw g_szChangeDrive 123 %ifndef EXCLUDE_FROM_XTIDECFG 123 124 dw g_szSelectDirectory 124 125 dw g_szCreateNew 126 %endif 125 127 126 128 .rgfnEventHandlers: … … 156 158 call LoadItemStringBufferToESDI 157 159 call SortDirectoryContentsStringFromESDIwithCountInCX 158 call RemoveLastLFandTerminateESDIwithNull159 160 xor ax, ax 161 mov [es:di-1], al ; Terminate with NULL 160 162 call Registers_CopySSBPtoDSSI 161 xor ax, ax162 163 call Dialog_EventInitializeMenuinitFromDSSIwithHighlightedItemInAX 163 164 call GetInfoLinesToCXandDialogFlagsToAX … … 436 437 437 438 ;-------------------------------------------------------------------- 438 ; RemoveLastLFandTerminateESDIwithNull439 ; Parameters:440 ; ES:DI: Ptr to end of buffer to terminate441 ; Returns:442 ; Nothing443 ; Corrupts registers:444 ; AX445 ;--------------------------------------------------------------------446 ALIGN JUMP_ALIGN447 RemoveLastLFandTerminateESDIwithNull:448 dec di449 xor ax, ax450 stosb451 ret452 453 454 ;--------------------------------------------------------------------455 439 ; GetInfoLinesToCXandDialogFlagsToAX 456 440 ; Parameters: … … 586 570 HandleFunctionKeyFromAH: 587 571 call GetDialogFlagsToAL 572 %ifndef EXCLUDE_FROM_XTIDECFG 588 573 cmp ah, KEY_FILEDIALOG_NEW_FILE_OR_DIR 589 574 je SHORT HandleFunctionKeyForCreatingNewFileOrDirectory 590 575 cmp ah, KEY_FILEDIALOG_SELECT_DIRECTORY 591 576 je SHORT HandleFunctionKeyForSelectingDirectoryInsteadOfFile 577 %endif 592 578 cmp ah, KEY_FILEDIALOG_CHANGE_DRIVE 593 579 je SHORT HandleFunctionKeyForDriveChange … … 607 593 ; All, except BP 608 594 ;-------------------------------------------------------------------- 595 %ifndef EXCLUDE_FROM_XTIDECFG 609 596 ALIGN JUMP_ALIGN 610 597 HandleFunctionKeyForCreatingNewFileOrDirectory: … … 649 636 jz SHORT ReturnWithoutHandlingKeystroke 650 637 ; Fall to CloseFileDialogAfterSuccessfulSelection 638 %endif ; EXCLUDE_FROM_XTIDECFG 651 639 652 640 ;--------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.