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


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/Handlers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h.asm

    r176 r181  
    5353    cmp     ah, 48h
    5454    ja      SHORT Int13h_UnsupportedFunction
    55     sub     bx, 41h<<1                  ; BX = Offset to eINT 13h jump table
    56     jl      SHORT Int13h_UnsupportedFunction
     55    sub     bl, 41h<<1                  ; BX = Offset to eINT 13h jump table
     56    jb      SHORT Int13h_UnsupportedFunction
    5757    jmp     [cs:bx+g_rgwEbiosFunctionJumpTable]
    5858%endif
     
    169169    mov     di, [RAMVARS.fpOldI13h+2]
    170170    xchg    di, [es:BIOS_DISK_INTERRUPT_13h*4+2]
     171    sti
    171172    mov     [RAMVARS.fpOldI13h+2], di
    172     sti
    173173    pop     es
    174174    ret
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH24h_HSetBlocks.asm

    r170 r181  
    6060    call    Idepack_StoreNonExtParametersAndIssueCommandFromAL
    6161    pop     bx
    62     jc      SHORT .DisableBlockMode
    63 
    64     ; Store new block size to DPT and return
    65     mov     [di+DPT_ATA.bSetBlock], bl              ; Store new block size
     62    jnc     .StoreBlockSize
     63    mov     bl, 1   ; Disable block mode
     64.StoreBlockSize:    ; Store new block size to DPT and return
     65    mov     [di+DPT_ATA.bSetBlock], bl
    6666    ret
    67 .DisableBlockMode:
    68     mov     BYTE [di+DPT_ATA.bSetBlock], 1          ; Disable block mode
    69     ret
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Tools/CommandLookup.asm

    r176 r181  
    55SECTION .text
    66
    7 %ifdef MODULE_EBIOS
    87;--------------------------------------------------------------------
    98; CommandLookup_GetEbiosIndexToBX
     
    1615;       AX, DX
    1716;--------------------------------------------------------------------
     17%ifdef MODULE_EBIOS
    1818ALIGN JUMP_ALIGN
    1919CommandLookup_GetEbiosIndexToBX:
     
    2929    ret
    3030%endif
    31        
     31
    3232;--------------------------------------------------------------------
    3333; CommandLookup_GetOldInt13hIndexToBX
     
    6363    db      COMMAND_VERIFY_SECTORS_EXT
    6464    db      COMMAND_VERIFY_SECTORS
    65     db      COMMAND_VERIFY_SECTORS_EXT     
     65    db      COMMAND_VERIFY_SECTORS_EXT
     66
Note: See TracChangeset for help on using the changeset viewer.