Changeset 281 in xtideuniversalbios


Ignore:
Timestamp:
Feb 28, 2012, 6:18:11 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • All IDE Error Register errors from previous IDE command are ignored when selecting drive for new command.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeCommand.asm

    r279 r281  
    189189    ret
    190190
    191     ; Ignore previously unsupported command (for example some SET FEATURES subcommand)
     191    ; Ignore errors from IDE Error Register (set by previous command)
    192192.ErrorWhenSelectingMasterOrSlave:
    193     sub     ah, 1                           ; Clear CF
    194     jz      SHORT .IgnoreABRTerror          ; RET_HD_INVALID == 1
    195     inc     ah
    196     stc                                     ; Restore error
    197 .IgnoreABRTerror:
     193    cmp     ah, RET_HD_TIMEOUT      ; Do not ignore timeout
     194    stc
     195    je      SHORT .ReturnWithErrorCodeInAHandCF
     196    xor     ah, ah                  ; No errors
     197.ReturnWithErrorCodeInAHandCF:
    198198    ret
    199199
Note: See TracChangeset for help on using the changeset viewer.