Changeset 116 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AHDh_HReset.asm
- Timestamp:
- Feb 26, 2011, 11:55:06 PM (14 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
r88 r116 100 100 ; HSR2: Check_status 101 101 mov cl, B_TIMEOUT_RESET ; Reset timeout delay 102 mov dx, [RAMVARS.wIdeBase] ; Load base port address 103 jmp HStatus_WaitBsyBase 102 jmp HStatus_WaitBsy 104 103 105 104 … … 125 124 call AH9h_InitializeDriveForUse 126 125 mov cl, ah ; Copy error code to CL 127 ALIGN JUMP_ALIGN128 126 .InitializeSlave: 129 127 pop dx ; Restore base port address … … 132 130 call AH9h_InitializeDriveForUse 133 131 mov ch, ah ; Copy error code to CH 134 ALIGN JUMP_ALIGN135 132 .CombineErrors: 136 133 or cl, ch ; OR error codes, clear CF 137 jnz SHORT .ReturnError 138 ret 139 .ReturnError: 134 jz SHORT .Return 140 135 mov ah, RET_HD_RESETFAIL ; Load Reset Failed error code 141 136 stc 137 .Return: 142 138 ret
Note:
See TracChangeset
for help on using the changeset viewer.