Changeset 161 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device


Ignore:
Timestamp:
May 8, 2011, 8:02:52 PM (14 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Minor size optimizations.
  • Tried to minimize the time spent with interrupts disabled in IdeIrq.asm and Int13h.asm
Location:
trunk/XTIDE_Universal_BIOS/Src/Device
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Device/Device.asm

    r160 r161  
    2020    jnz     SHORT ReturnSuccessForSerialPort
    2121    jmp     IdeDPT_Finalize
    22 .FinalizeDptForSerialPortDevice:
    23     jmp     SerialDPT_Finalize
     22;.FinalizeDptForSerialPortDevice:   ; Dead label
     23;   jmp     SerialDPT_Finalize      ; and code
    2424
    2525
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeIrq.asm

    r160 r161  
    4444    stc                                 ; Set CF since wait done by OS
    4545.ReturnFromWaitNotify:
     46    sti                                 ; Enable interrupts
    4647    pop     ds
    47     sti                                 ; Enable interrupts
    4848    ret
    4949
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeTransfer.asm

    r158 r161  
    223223ALIGN JUMP_ALIGN
    224224DualByteReadForXtide:
     225%ifdef USE_186
     226    shr     cx, 2       ; Smaller but slower on 186/286
     227%else
    225228    times 2 shr cx, 1   ; Loop unrolling
     229%endif
    226230    mov     bx, 8       ; Bit mask for toggling data low/high reg
    227231ALIGN JUMP_ALIGN
     
    311315    push    ds
    312316    push    bx
     317%ifdef USE_186
     318    shr     cx, 2       ; Smaller but slower on 186/286
     319%else
    313320    times 2 shr cx, 1   ; Loop unrolling
     321%endif
    314322    mov     bx, 8       ; Bit mask for toggling data low/high reg
    315323    push    es          ; Copy ES...
     
    357365WordWriteForXTIDEmod:
    358366    push    ds
     367%ifdef USE_186
     368    shr     cx, 2       ; Smaller but slower on 186/286
     369%else
    359370    times 2 shr cx, 1   ; Loop unrolling
     371%endif
    360372    push    es          ; Copy ES...
    361373    pop     ds          ; ...to DS
Note: See TracChangeset for help on using the changeset viewer.