Changeset 294 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AHDh_HReset.asm
- Timestamp:
- Mar 4, 2012, 1:35:10 AM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AHDh_HReset.asm
r282 r294 15 15 ; Returns with INTPACK: 16 16 ; AH: Int 13h return status 17 ; CF: 0 if succes full, 1 if error17 ; CF: 0 if successful, 1 if error 18 18 ;-------------------------------------------------------------------- 19 19 ALIGN JUMP_ALIGN … … 37 37 ; Returns: 38 38 ; AH: Int 13h return status 39 ; CF: 0 if succes full, 1 if error39 ; CF: 0 if successful, 1 if error 40 40 ; Corrupts registers: 41 41 ; AL, SI … … 53 53 54 54 ; Initialize Master and Slave drives 55 mov al, [di+DPT.bIdevarsOffset] ;pointer to controller we are looking to reset56 mov ah, 0 ;initialize error code, assume success57 55 eMOVZX ax, [di+DPT.bIdevarsOffset] ; (AL) pointer to controller we are looking to reset 56 ; (AH) initialize error code, assume success 57 58 58 mov si, IterateAndResetDrives 59 59 call FindDPT_IterateAllDPTs … … 70 70 ; IterateAndResetDrives: Iteration routine for use with IterateAllDPTs. 71 71 ; 72 ; When a drive on the controller is found, it is reset, and the error code 72 ; When a drive on the controller is found, it is reset, and the error code 73 73 ; merged into overall error code for this controller. Master will be reset 74 74 ; first. Note that the iteration will go until the end of the DPT list. … … 79 79 push ax 80 80 call AH9h_InitializeDriveForUse ; Reset Master and Slave (Master will come first in DPT list) 81 pop ax 81 pop ax 82 82 jnc .done 83 83 or ah, (RET_HD_RESETFAIL << 1) | 1 ; OR in Reset Failed error code and CF, will SHR into position later
Note:
See TracChangeset
for help on using the changeset viewer.