Ignore:
Timestamp:
Dec 11, 2010, 12:47:34 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to Assembly Library:

  • Fixed library dependencies.
  • Progress Dialog now properly checks maximum progress value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Menu/Dialog/DialogProgress.asm

    r69 r73  
    8383    call    TimerTicks_ReadFromBdaToAX
    8484    mov     [si+PROGRESS_DIALOG_IO.wStartTimeTicks], ax
    85     MAX_U   WORD [si+PROGRESS_DIALOG_IO.wMaxProgressValue], 1   ; Max cannot be zero
     85
     86    ; 0 = 65536 but it needs to be adjusted to 65535 prevent division by zero
     87    cmp     WORD [si+PROGRESS_DIALOG_IO.wMaxProgressValue], BYTE 0
     88    jne     SHORT CalculateProgressNeededBeforeUpdatingCharacter
     89    dec     WORD [si+PROGRESS_DIALOG_IO.wMaxProgressValue]
    8690    jmp     SHORT CalculateProgressNeededBeforeUpdatingCharacter
    8791
Note: See TracChangeset for help on using the changeset viewer.