Changeset 181 in xtideuniversalbios for trunk/Configurator/Src/Menupages/FlashMenu.asm


Ignore:
Timestamp:
Nov 13, 2011, 3:38:40 PM (12 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes to all parts of the project:

  • Size optimizations.
  • Added a define (EXCLUDE_FROM_XTIDECFG) to exclude unused library code from XTIDECFG.
  • Tried to minimize time spent with interrupts disabled.
  • Some minor attempts to improve speed (reordering instructions etc).
  • Tried to improve readability, did some cleanup and fixed some errors in comments.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Configurator/Src/Menupages/FlashMenu.asm

    r145 r181  
    371371FlashMenu_CalculateCompletionPercentage:
    372372    cmp     WORD [si+FLASHVARS.wPagesLeft], 0
     373    mov     ax, 100
    373374    je      SHORT .FlashComplete
    374     mov     ax, 100
    375375    mul     WORD [si+FLASHVARS.wPagesLeft]
    376376    div     WORD [si+FLASHVARS.wTotalPages]     ; AX = Percentage left to write
     
    382382ALIGN JUMP_ALIGN
    383383.FlashComplete:
    384     mov     ax, 100
    385384    stc
    386385    ret
Note: See TracChangeset for help on using the changeset viewer.