Changeset 408 in xtideuniversalbios for trunk


Ignore:
Timestamp:
Apr 25, 2012, 8:57:37 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Restored polling BSY before selecting drive since 4GB Magicstor microdrive seems to require it.
Location:
trunk/XTIDE_Universal_BIOS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Inc/RomVars.inc

    r400 r408  
    3434    .wFlags             resb    2   ; Word for ROM flags
    3535    .wDisplayMode       resb    2   ; Display mode for boot menu
    36     .wfDisplayBootMenu:             ; Zero = no Boot Menu, non-zero = Boot Menu timeout
    3736    .wBootTimeout       resb    2   ; Boot Menu selection timeout in system timer ticks
    3837    .bIdeCnt            resb    1   ; Number of available IDE controllers
  • trunk/XTIDE_Universal_BIOS/Src/Device/IDE/IdeCommand.asm

    r400 r408  
    195195ALIGN JUMP_ALIGN
    196196IdeCommand_SelectDrive:
     197    ; Wait until neither Master or Slave Drive is busy
     198    mov     bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_BSY, FLG_STATUS_BSY)
     199    cmp     BYTE [bp+IDEPACK.bCommand], COMMAND_IDENTIFY_DEVICE
     200    eCMOVE  bh, TIMEOUT_IDENTIFY_DEVICE
     201    call    IdeWait_PollStatusFlagInBLwithTimeoutInBH
     202
    197203    ; Select Master or Slave Drive
    198204    mov     al, [bp+IDEPACK.bDrvAndHead]
Note: See TracChangeset for help on using the changeset viewer.