Changeset 175 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization


Ignore:
Timestamp:
Oct 22, 2011, 9:04:01 PM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

ifdef of existing serial code, in preperation for checkin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm

    r150 r175  
    2121    mov     bp, ROMVARS.ideVars0            ; CS:BP now points to first IDEVARS
    2222.DriveDetectLoop:
    23     call    DetectDrives_WithIDEVARS        ; Detect Master and Slave
     23    call    .DetectDrives_WithIDEVARS       ; Detect Master and Slave
    2424    add     bp, BYTE IDEVARS_size           ; Point to next IDEVARS
    2525    loop    .DriveDetectLoop
     26
     27%ifdef MODULE_SERIAL
     28    test    BYTE [es:BDA.bKBFlgs1], (1<<2)
     29;;  jz      .done
     30    mov     bp, ROMVARS.ideVarsAutoSerial
     31;;; fall-through       
     32%else
    2633    ret
    27 
     34%endif
    2835
    2936;--------------------------------------------------------------------
     
    4047;       AX, BX, DX, SI, DI
    4148;--------------------------------------------------------------------
    42 DetectDrives_WithIDEVARS:
     49.DetectDrives_WithIDEVARS:
    4350    push    cx
    4451    mov     ax, g_szMaster
     
    5057    call    StartDetectionWithDriveSelectByteInBHandStringInAX
    5158    pop     cx
     59.done: 
    5260    ret
    5361
    54 
     62       
    5563;--------------------------------------------------------------------
    5664; StartDetectionWithDriveSelectByteInBHandStringInAX
Note: See TracChangeset for help on using the changeset viewer.