Changeset 196 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm
- Timestamp:
- Nov 19, 2011, 11:18:39 AM (12 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm
r189 r196 21 21 mov bp, ROMVARS.ideVars0 ; CS:BP now points to first IDEVARS 22 22 .DriveDetectLoop: 23 mov si,g_szDetect 23 mov si, g_szDetect 24 %ifdef MODULE_SERIAL 25 cmp byte [cs:bp+IDEVARS.bDevice], DEVICE_SERIAL_PORT 26 jnz .DriveNotSerial 27 mov si, g_szDetectCOM 28 .DriveNotSerial: 29 %endif 24 30 call .DetectDrives_WithIDEVARS ; Detect Master and Slave 25 31 add bp, BYTE IDEVARS_size ; Point to next IDEVARS … … 30 36 jz .done 31 37 mov bp, ROMVARS.ideVarsSerialAuto 32 mov si, g_szSerial38 mov si, g_szDetectCOMAuto 33 39 ;;; fall-through 34 40 %else … … 52 58 .DetectDrives_WithIDEVARS: 53 59 push cx 54 55 push si 60 61 push si 56 62 mov ax, g_szMaster 57 63 mov bh, MASK_DRVNHEAD_SET ; Select Master drive 58 64 call StartDetectionWithDriveSelectByteInBHandStringInAX ; Detect and create DPT + BOOTNFO 59 65 pop si 60 66 61 67 mov ax, g_szSlave 62 68 mov bh, MASK_DRVNHEAD_SET | FLG_DRVNHEAD_DRV … … 112 118 ;call ReadAtapiInfoFromDrive ; Assume CD-ROM 113 119 ;jnc SHORT _CreateBiosTablesForCDROM 114 jmp DetectPrint_DriveNotFound120 jmp short DetectDrives_DriveNotFound 115 121 116 122 … … 130 136 CreateBiosTablesForHardDisk: 131 137 call CreateDPT_FromAtaInformation 132 jc SHORT .InvalidAtaInfo138 jc SHORT DetectDrives_DriveNotFound 133 139 call BootInfo_CreateForHardDisk 134 jmp DetectPrint_DriveNameFromBootnfoInESBX 135 .InvalidAtaInfo: 136 jmp DetectPrint_DriveNotFound 140 jmp short DetectPrint_DriveNameFromBootnfoInESBX 141 142 ;-------------------------------------------------------------------- 143 ; DetectDrives_DriveNotFound 144 ; Parameters: 145 ; Nothing 146 ; Returns: 147 ; Nothing 148 ; Corrupts registers: 149 ; AX, SI 150 ;-------------------------------------------------------------------- 151 DetectDrives_DriveNotFound: 152 mov si, g_szNotFound 153 jmp BootMenuPrint_NullTerminatedStringFromCSSIandSetCF 154
Note: See TracChangeset
for help on using the changeset viewer.