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/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/ConfigurationMenu.asm

    r153 r181  
    168168    call    .GetIdeControllerCountToCX
    169169    dec     cx          ; Primary always enabled
    170     jcxz    .PrimaryControllerAlreadyEnabled
     170    j    .PrimaryControllerAlreadyEnabled
    171171    mov     bx, g_MenuitemConfigurationSecondaryIdeController
    172172ALIGN JUMP_ALIGN
     
    191191    call    Buffers_GetRomvarsFlagsToAX
    192192    test    ax, FLG_ROMVARS_FULLMODE
     193    mov     al, 1   ; Assume lite mode
    193194    jz      SHORT .AllowOnlyOneIdeControllerInLiteMode
    194195
    195196    mov     bx, ROMVARS.bIdeCnt
    196197    call    Buffers_GetRomvarsValueToAXfromOffsetInBX
    197     eMOVZX  cx, al
    198     ret
    199198ALIGN JUMP_ALIGN
    200199.AllowOnlyOneIdeControllerInLiteMode:
    201     mov     cx, 1
     200    cbw     ; A maximum of 127 controllers should be sufficient
     201    xchg    cx, ax
    202202    ret
    203203
Note: See TracChangeset for help on using the changeset viewer.