Changeset 625 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu/Dialog/DialogProgress.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/DialogProgress.asm
r596 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 … … 89 89 ProgressEventHandler: 90 90 jmp [cs:bx+.rgfnEventHandlers] 91 92 93 ALIGN JUMP_ALIGN94 .InitializeMenuinitFromDSSI:95 mov ax, NO_ITEM_HIGHLIGHTED96 call Dialog_EventInitializeMenuinitFromDSSIforSingleItemWithHighlightedItemInAX97 lds si, [bp+DIALOG.fpDialogIO]98 call TimerTicks_ReadFromBdaToAX99 mov [si+PROGRESS_DIALOG_IO.wStartTimeTicks], ax100 101 ; 0 = 65536 but it needs to be adjusted to 65535 to prevent division by zero102 cmp WORD [si+PROGRESS_DIALOG_IO.wMaxProgressValue], BYTE 0103 jne SHORT CalculateProgressNeededBeforeUpdatingCharacter104 dec WORD [si+PROGRESS_DIALOG_IO.wMaxProgressValue]105 jmp SHORT CalculateProgressNeededBeforeUpdatingCharacter106 91 107 92 … … 153 138 154 139 140 ALIGN JUMP_ALIGN 141 .InitializeMenuinitFromDSSI: 142 mov ax, NO_ITEM_HIGHLIGHTED 143 call Dialog_EventInitializeMenuinitFromDSSIforSingleItemWithHighlightedItemInAX 144 lds si, [bp+DIALOG.fpDialogIO] 145 call TimerTicks_ReadFromBdaToAX 146 mov [si+PROGRESS_DIALOG_IO.wStartTimeTicks], ax 147 148 ; 0 = 65536 but it needs to be adjusted to 65535 to prevent division by zero 149 cmp WORD [si+PROGRESS_DIALOG_IO.wMaxProgressValue], BYTE 0 150 jne SHORT CalculateProgressNeededBeforeUpdatingCharacter 151 dec WORD [si+PROGRESS_DIALOG_IO.wMaxProgressValue] 152 ; Fall to CalculateProgressNeededBeforeUpdatingCharacter 153 155 154 ;-------------------------------------------------------------------- 156 155 ; CalculateProgressNeededBeforeUpdatingCharacter … … 163 162 ; AX, BX, DX, SI, DS 164 163 ;-------------------------------------------------------------------- 165 ALIGN JUMP_ALIGN166 164 CalculateProgressNeededBeforeUpdatingCharacter: 167 165 call MenuLocation_GetMaxTextLineLengthToAX … … 216 214 ALIGN JUMP_ALIGN 217 215 .RepeatProgressCharacterCXtimesFromAL: 218 jcxz NothingToRepeat219 216 JMP_DISPLAY_LIBRARY PrintRepeatedCharacterFromALwithCountInCX 220 217 … … 233 230 mov bx, [si+PROGRESS_DIALOG_IO.wMaxProgressValue] 234 231 sub bx, [si+PROGRESS_DIALOG_IO.wMinProgressValue] 235 NothingToRepeat:236 232 ret 237 233
Note:
See TracChangeset
for help on using the changeset viewer.