Changeset 285 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device
- Timestamp:
- Feb 29, 2012, 7:20:36 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeCommand.asm
r281 r285 129 129 130 130 ; Output Sector Address High (only used by LBA48) 131 %ifdef MODULE_EBIOS 131 132 eMOVZX ax, BYTE [bp+IDEPACK.bLbaLowExt] ; Zero sector count 132 133 mov cx, [bp+IDEPACK.wLbaMiddleAndHighExt] 133 134 call IDEDEVICE%+OutputSectorCountAndAddress 135 %endif 134 136 135 137 ; Output Sector Address Low … … 186 188 eCMOVE bh, TIMEOUT_IDENTIFY_DEVICE 187 189 call IDEDEVICE%+Wait_PollStatusFlagInBLwithTimeoutInBH 188 jc SHORT .ErrorWhenSelectingMasterOrSlave189 ret190 190 191 191 ; Ignore errors from IDE Error Register (set by previous command) 192 .ErrorWhenSelectingMasterOrSlave: 193 cmp ah, RET_HD_TIMEOUT ; Do not ignore timeout 192 cmp ah, RET_HD_TIMEOUT 193 je SHORT .FailedToSelectDrive 194 xor ax, ax ; Always success unless timeout 195 ret 196 .FailedToSelectDrive: 194 197 stc 195 je SHORT .ReturnWithErrorCodeInAHandCF196 xor ah, ah ; No errors197 .ReturnWithErrorCodeInAHandCF:198 198 ret 199 199
Note:
See TracChangeset
for help on using the changeset viewer.