Changeset 242 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm
- Timestamp:
- Feb 10, 2012, 3:12:40 AM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm
r233 r242 29 29 30 30 mov cx, g_szDetectSlave 31 mov bh, MASK_DRVNHEAD_SET | FLG_DRVNHEAD_DRV 31 mov bh, MASK_DRVNHEAD_SET | FLG_DRVNHEAD_DRV 32 32 call StartDetectionWithDriveSelectByteInBHandStringInAX 33 33 34 34 pop cx 35 35 36 36 add bp, BYTE IDEVARS_size ; Point to next IDEVARS 37 37 38 %ifdef MODULE_SERIAL 38 %ifdef MODULE_SERIAL 39 39 jcxz .done ; Set to zero on .ideVarsSerialAuto iteration (if any) 40 40 %endif 41 41 42 42 loop .DriveDetectLoop 43 43 44 %ifdef MODULE_SERIAL 44 %ifdef MODULE_SERIAL 45 45 ; 46 46 ; if serial drive detected, do not scan (avoids duplicate drives and isn't needed - we already have a connection) … … 49 49 jc .done 50 50 51 mov bp, ROMVARS.ideVarsSerialAuto ; Point to our special IDEVARS s ructure, just for serial scans52 51 mov bp, ROMVARS.ideVarsSerialAuto ; Point to our special IDEVARS structure, just for serial scans 52 53 53 mov al,[cs:ROMVARS.wFlags] ; Configurator set to always scan? 54 54 or al,[es:BDA.bKBFlgs1] ; Or, did the user hold down the ALT key? 55 55 and al,8 ; 8 = alt key depressed, same as FLG_ROMVARS_SERIAL_ALWAYSDETECT 56 jnz .DriveDetectLoop 56 jnz .DriveDetectLoop 57 57 %endif 58 58 … … 61 61 62 62 %if FLG_ROMVARS_SERIAL_SCANDETECT != 8 63 %error "DetectDrives is currently coded to assume that FLG_ROMVARS_SERIAL_SCANDETECT is the same bit as the ALT key code in the BDA. Changes in the code will be needed if these values are no longer the same."63 %error "DetectDrives is currently coded to assume that FLG_ROMVARS_SERIAL_SCANDETECT is the same bit as the ALT key code in the BDA. Changes in the code will be needed if these values are no longer the same." 64 64 %endif 65 65 66 66 67 67 ;-------------------------------------------------------------------- 68 68 ; StartDetectionWithDriveSelectByteInBHandStringInAX … … 110 110 ;call ReadAtapiInfoFromDrive ; Assume CD-ROM 111 111 ;jnc SHORT _CreateBiosTablesForCDROM 112 112 113 113 ;jmp short DetectDrives_DriveNotFound 114 114 ;;; fall-through instead of previous jmp instruction … … 122 122 ; AX, SI 123 123 ;-------------------------------------------------------------------- 124 DetectDrives_DriveNotFound: 124 DetectDrives_DriveNotFound: 125 125 mov si, g_szNotFound 126 jmp BootMenuPrint_NullTerminatedStringFromCSSIandSetCF 126 jmp BootMenuPrint_NullTerminatedStringFromCSSIandSetCF 127 127 128 128
Note: See TracChangeset
for help on using the changeset viewer.