Changeset 69 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu
- Timestamp:
- Dec 10, 2010, 8:17:22 AM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/Dialog/DialogProgress.asm
r64 r69 2 2 ; Project name : Assembly Library 3 3 ; Created date : 15.8.2010 4 ; Last update : 5.12.20104 ; Last update : 10.12.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Displays progress bar dialog and starts progress task. … … 83 83 call TimerTicks_ReadFromBdaToAX 84 84 mov [si+PROGRESS_DIALOG_IO.wStartTimeTicks], ax 85 MAX_U WORD [si+PROGRESS_DIALOG_IO.wMaxProgressValue], 0FFFFh; Max cannot be zero85 MAX_U WORD [si+PROGRESS_DIALOG_IO.wMaxProgressValue], 1 ; Max cannot be zero 86 86 jmp SHORT CalculateProgressNeededBeforeUpdatingCharacter 87 87 … … 169 169 DrawProgressBarFromDialogIoInDSSI: 170 170 call .GetFullCharsToCXandEmptyCharsToDXwithDialogIoInDSSI 171 jcxz .DrawEmptyCharsOnly172 171 173 172 mov al, PROGRESS_COMPLETE_CHARACTER 174 CALL_DISPLAY_LIBRARY PrintRepeatedCharacterFromALwithCountInCX 175 176 .DrawEmptyCharsOnly: 173 call .RepeatProgressCharacterCXtimesFromAL 174 177 175 mov cx, dx 178 jcxz .NothingLeftToDraw179 176 mov al, PROGRESS_INCOMPLETE_CHARACTER 180 CALL_DISPLAY_LIBRARY PrintRepeatedCharacterFromALwithCountInCX 181 182 .NothingLeftToDraw: 183 ret 177 jmp SHORT .RepeatProgressCharacterCXtimesFromAL 184 178 185 179 ;-------------------------------------------------------------------- … … 205 199 sub ax, cx 206 200 xchg dx, ax ; DX = Number of empty chars 201 ret 202 203 ;-------------------------------------------------------------------- 204 ; .RepeatProgressCharacterCXtimesFromAL 205 ; Parameters: 206 ; AL: Progress bar character to repeat 207 ; CX: Number of times to repeat the progress character 208 ; Returns: 209 ; Nothing 210 ; Corrupts: 211 ; AX, CX, DI 212 ;-------------------------------------------------------------------- 213 ALIGN JUMP_ALIGN 214 .RepeatProgressCharacterCXtimesFromAL: 215 jcxz .NothingToRepeat 216 CALL_DISPLAY_LIBRARY PrintRepeatedCharacterFromALwithCountInCX 217 ALIGN JUMP_ALIGN, ret 218 .NothingToRepeat: 207 219 ret 208 220
Note:
See TracChangeset
for help on using the changeset viewer.