Ignore:
Timestamp:
Jan 27, 2011, 8:14:13 AM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • Now uses new libraries (untested)
  • Non-working since code size is too large
File:
1 edited

Legend:

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

    r84 r88  
    1 ; File name     :   AHDh_HReset.asm
    2 ; Project name  :   IDE BIOS
    3 ; Created date  :   9.12.2007
    4 ; Last update   :   14.1.2011
    5 ; Author        :   Tomi Tilli,
    6 ;               :   Krister Nordvall (optimizations)
     1; Project name  :   XTIDE Universal BIOS
    72; Description   :   Int 13h function AH=Dh, Reset Hard Disk (Alternate reset).
    83
     
    9489    or      al, FLG_IDE_CTRL_SRST       ; Set Reset bit
    9590    call    HDrvSel_OutputDeviceControlByte
    96     mov     cx, 5                       ; Delay at least 5us
    97     call    SoftDelay_us
     91    mov     ax, 5                       ; Delay at least 5us
     92    call    Delay_MicrosecondsFromAX
    9893
    9994    ; HSR1: Clear_wait
    100     and     al, ~FLG_IDE_CTRL_SRST      ; Clear Reset bit
     95    mov     al, [di+DPT.bDrvCtrl]       ; Load value for ACR
    10196    out     dx, al                      ; End Reset
    102     mov     cx, 2000                    ; Delay at least 2ms
    103     call    SoftDelay_us
     97    mov     ax, 2000                    ; Delay at least 2ms
     98    call    Delay_MicrosecondsFromAX
    10499
    105100    ; HSR2: Check_status
Note: See TracChangeset for help on using the changeset viewer.