Changeset 285 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Device


Ignore:
Timestamp:
Feb 29, 2012, 7:20:36 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Some minor optimizations.
  • Boot menu now displays JR-IDE/ISA bus type (M8).
  • Drive detection now displays ROM segment as JR-IDE/ISA Device address.
File:
1 edited

Legend:

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

    r281 r285  
    129129
    130130    ; Output Sector Address High (only used by LBA48)
     131%ifdef MODULE_EBIOS
    131132    eMOVZX  ax, BYTE [bp+IDEPACK.bLbaLowExt]    ; Zero sector count
    132133    mov     cx, [bp+IDEPACK.wLbaMiddleAndHighExt]
    133134    call    IDEDEVICE%+OutputSectorCountAndAddress
     135%endif
    134136
    135137    ; Output Sector Address Low
     
    186188    eCMOVE  bh, TIMEOUT_IDENTIFY_DEVICE
    187189    call    IDEDEVICE%+Wait_PollStatusFlagInBLwithTimeoutInBH
    188     jc      SHORT .ErrorWhenSelectingMasterOrSlave
    189     ret
    190190
    191191    ; 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:
    194197    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.