Changeset 181 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm
- Timestamp:
- Nov 13, 2011, 3:38:40 PM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm
r170 r181 265 265 .FilterCurrentDirectory: 266 266 cmp WORD [si+DTA.szFile], CURRENTDIR_CHARACTERS 267 je SHORT . ReturnWithFiltering267 je SHORT .DoFilter 268 268 ret 269 269 … … 274 274 cmp WORD [si+DTA.szFile], UPDIR_CHARACTERS 275 275 jne SHORT .ReturnWithoutFiltering 276 . ReturnWithFiltering:276 .DoFilter: 277 277 add sp, BYTE 2 ; Remove return address from stack 278 278 ALIGN JUMP_ALIGN, ret … … 375 375 SortDirectoryContentsStringFromESDIwithCountInCX: 376 376 call Registers_CopyESDItoDSSI 377 call .AddDirectoryContentsStringLengthToDI 378 mov bx, .FileStringComparator 379 xchg dx, cx 380 mov cx, FILE_STRING_LENGTH 381 jmp Sort_ItemsFromDSSIwithCountInDXsizeInCXandComparatorInBX 382 383 ALIGN JUMP_ALIGN 384 .AddDirectoryContentsStringLengthToDI: 377 378 ; Add directory contents string length to DI 385 379 mov ax, FILE_STRING_LENGTH 380 push ax 386 381 mul cx 387 382 add di, ax 388 ret 383 384 mov dx, cx 385 pop cx 386 mov bx, .FileStringComparator 387 jmp Sort_ItemsFromDSSIwithCountInDXsizeInCXandComparatorInBX 389 388 390 389 ;-------------------------------------------------------------------- … … 395 394 ; ES:DI: Ptr to second item to compare 396 395 ; Returns: 397 ; FLAGS: Signed compari tion between first and second item396 ; FLAGS: Signed comparison between first and second item 398 397 ; Corrupts registers: 399 398 ; Nothing
Note:
See TracChangeset
for help on using the changeset viewer.