Changeset 181 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot


Ignore:
Timestamp:
Nov 13, 2011, 3:38:40 PM (13 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.
Location:
trunk/XTIDE_Universal_BIOS/Src/Boot
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootInfo.asm

    r165 r181  
    125125    mul     bl                          ; AX = Offset inside BOOTNFO array
    126126    add     ax, BOOTVARS.rgBootNfo      ; Add offset to BOOTNFO array
    127     xchg    bx, ax                      ; Copy result to BX
     127    xchg    bx, ax                      ; Move result to BX
    128128    ret
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenu.asm

    r130 r181  
    102102    CALL_DISPLAY_LIBRARY GetColumnsToALandRowsToAH
    103103    sub     ah, MENU_SCREEN_BOTTOM_LINES*2  ; Leave space for bottom info
    104     MIN_U   ah, cl
     104    cmp     ah, cl
     105    jb      SHORT .Return
     106    mov     ah, cl
     107ALIGN JUMP_ALIGN, ret
     108.Return:
    105109    ret
    106110
     
    148152    call    FloppyDrive_GetCountToCX
    149153    add     cl, 'A'
    150     MAX_U   cl, 'C'
     154    cmp     cl, 'C'
     155    ja      .Return
     156    mov     cl, 'C'
     157ALIGN JUMP_ALIGN, ret
     158.Return:
    151159    ret
    152160
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrintCfg.asm

    r158 r181  
    8585;       AX, DX
    8686;--------------------------------------------------------------------
    87 PushBusType:
     87;PushBusType:
     88    cwd                 ; Clear DX using sign extension
    8889    xchg    ax, bx      ; Store BX to AX
    8990    eMOVZX  bx, BYTE [cs:si+IDEVARS.bDevice]
    9091    mov     bx, [cs:bx+rgwBusTypeValues]    ; Char to BL, Int to BH
    91     eMOVZX  dx, bh
     92    mov     dl, bh
    9293    push    bx          ; Push character
    9394    push    dx          ; Push 1, 8, 16 or 32
Note: See TracChangeset for help on using the changeset viewer.