Changeset 439 in xtideuniversalbios for trunk


Ignore:
Timestamp:
Aug 18, 2012, 12:07:44 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Drive identify is now skipped for XT-CF if 8-bit mode is not successfully enabled.
Location:
trunk/XTIDE_Universal_BIOS/Src
Files:
2 edited

Legend:

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

    r437 r439  
    8686    call    Idepack_FakeToSSBP
    8787
     88%ifdef MODULE_8BIT_IDE
    8889    ; Enable 8-bit PIO mode for Lo-tech XT-CF
    8990    call    AH9h_Enable8bitPioModeForXTCF
     91    jc      SHORT .FailedToSet8bitMode
     92%endif
    9093
    9194    ; Prepare to output Identify Device command
     
    9699
    97100    ; Clean stack and return
     101.FailedToSet8bitMode:
    98102    lea     sp, [bp+EXTRA_BYTES_FOR_INTPACK]    ; This assumes BP hasn't changed between Idepack_FakeToSSBP and here
    99103    pop     bp
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH9h_HInit.asm

    r437 r439  
    127127
    128128
     129%ifdef MODULE_8BIT_IDE
    129130;;; Enable 8-bit PIO Transfer Mode for Lo-tech XT-CF (CF and Microdrives only)
    130131    call    AH9h_Enable8bitPioModeForXTCF
    131132    STORE_ERROR_FLAG_TO_DPT     FLG_INITERROR_FAILED_TO_ENABLE_8BIT_PIO_MODE
     133%endif
    132134
    133135
     
    255257
    256258
     259%ifdef MODULE_8BIT_IDE
    257260;--------------------------------------------------------------------
    258261; AH9h_Enable8bitPioModeForXTCF
     
    263266;       CF:     0 if successful, 1 if error
    264267;   Corrupts registers:
    265 ;       AL, BX, CX, DX
     268;       AL, BX, CX, DX, SI
    266269;--------------------------------------------------------------------
    267270AH9h_Enable8bitPioModeForXTCF:
     
    274277    mov     si, FEATURE_ENABLE_8BIT_PIO_TRANSFER_MODE
    275278    jmp     AH23h_SetControllerFeatures
     279%endif ; MODULE_8BIT_IDE
Note: See TracChangeset for help on using the changeset viewer.