Changeset 491 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu
- Timestamp:
- Dec 15, 2012, 2:46:29 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/Assembly_Library/Src/Menu
- Files:
-
- 3 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 -
trunk/Assembly_Library/Src/Menu/MenuScrollbars.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 … … 79 79 ; AX: Item line for last thumb character 80 80 ; Corrupts registers: 81 ; CX,DX81 ; DX 82 82 ;-------------------------------------------------------------------- 83 83 ALIGN MENU_JUMP_ALIGN … … 95 95 ; AX: Item line for first thumb character 96 96 ; Corrupts registers: 97 ; CX,DX97 ; DX 98 98 ;-------------------------------------------------------------------- 99 99 ALIGN MENU_JUMP_ALIGN -
trunk/Assembly_Library/Src/Menu/MenuTime.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 … … 101 101 ; AX: Seconds until timeout 102 102 ; Corrupts registers: 103 ; AX103 ; Nothing 104 104 ;-------------------------------------------------------------------- 105 105 ALIGN MENU_JUMP_ALIGN … … 116 116 xchg dx, ax 117 117 call TimerTicks_GetSecondsToAXfromTicksInDX 118 SKIP2B f ; cmp ax, <next instruction>118 SKIP2B dx 119 119 .TimeoutHasOccurredSoMakeSureTicksAreNotBelowZero: 120 120 xor ax, ax
Note:
See TracChangeset
for help on using the changeset viewer.