Changeset 88 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AHDh_HReset.asm
- Timestamp:
- Jan 27, 2011, 8:14:13 AM (14 years ago)
- google:author:
- aitotat
- 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 7 2 ; Description : Int 13h function AH=Dh, Reset Hard Disk (Alternate reset). 8 3 … … 94 89 or al, FLG_IDE_CTRL_SRST ; Set Reset bit 95 90 call HDrvSel_OutputDeviceControlByte 96 mov cx, 5 ; Delay at least 5us97 call SoftDelay_us91 mov ax, 5 ; Delay at least 5us 92 call Delay_MicrosecondsFromAX 98 93 99 94 ; HSR1: Clear_wait 100 and al, ~FLG_IDE_CTRL_SRST ; Clear Reset bit95 mov al, [di+DPT.bDrvCtrl] ; Load value for ACR 101 96 out dx, al ; End Reset 102 mov cx, 2000 ; Delay at least 2ms103 call SoftDelay_us97 mov ax, 2000 ; Delay at least 2ms 98 call Delay_MicrosecondsFromAX 104 99 105 100 ; HSR2: Check_status
Note:
See TracChangeset
for help on using the changeset viewer.