Changeset 491 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu/Dialog
- Timestamp:
- Dec 15, 2012, 2:46:29 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/Dialog/DialogProgress.asm
r376 r491 3 3 4 4 ; 5 ; XTIDE Universal BIOS and Associated Tools 5 ; XTIDE Universal BIOS and Associated Tools 6 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. 7 7 ; … … 10 10 ; the Free Software Foundation; either version 2 of the License, or 11 11 ; (at your option) any later version. 12 ; 12 ; 13 13 ; This program is distributed in the hope that it will be useful, 14 14 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 15 15 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 ; GNU General Public License for more details. 16 ; GNU General Public License for more details. 17 17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 18 18 ; 19 19 20 20 21 21 ; Section containing code … … 99 99 mov [si+PROGRESS_DIALOG_IO.wStartTimeTicks], ax 100 100 101 ; 0 = 65536 but it needs to be adjusted to 65535 prevent division by zero101 ; 0 = 65536 but it needs to be adjusted to 65535 to prevent division by zero 102 102 cmp WORD [si+PROGRESS_DIALOG_IO.wMaxProgressValue], BYTE 0 103 103 jne SHORT CalculateProgressNeededBeforeUpdatingCharacter … … 288 288 div cx ; AX = Estimated ticks left 289 289 xchg dx, ax 290 SKIP2B f ; cmp ax, <next instruction>290 SKIP2B ax 291 291 .PreventDivisionByZero: 292 292 xor dx, dx … … 309 309 mov bp, sp 310 310 mov si, g_szTimeFormat 311 call TimerTicks_GetMinutesToAX fromTicksInDX311 call TimerTicks_GetMinutesToAXandRemainderTicksToDXfromTicksInDX 312 312 push ax 313 313 call TimerTicks_GetSecondsToAXfromTicksInDX
Note:
See TracChangeset
for help on using the changeset viewer.