Changeset 86 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm
- Timestamp:
- Jan 25, 2011, 9:13:56 PM (14 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm
r33 r86 1 ; File name : DetectDrives.asm2 1 ; Project name : IDE BIOS 3 ; Created date : 17.3.20104 ; Last update : 23.8.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for detecting drive for the BIOS. 7 8 3 9 4 ; Section containing code … … 80 75 DetectDrives_DetectMasterDrive: 81 76 mov bh, MASK_IDE_DRVHD_SET ; Select Master drive 82 jmp SHORT DetectDrives_StartDetection 83 ALIGN JUMP_ALIGN 77 SKIP2B ax ; mov ax, <next instruction> 84 78 DetectDrives_DetectSlaveDrive: 85 79 mov bh, MASK_IDE_DRVHD_SET | FLG_IDE_DRVHD_DRV … … 134 128 call AH25h_GetDriveInfo 135 129 mov si, di ; ES:SI now points to ATA information 136 ret137 138 139 ;--------------------------------------------------------------------140 ; Reads ATAPI information from the drive (for CD/DVD-ROMs).141 ;142 ; DetectDrives_ReadAtapiInfoFromDrive143 ; Parameters:144 ; BH: Drive Select byte for Drive and Head Register145 ; CS:BP: Ptr to IDEVARS for the drive146 ; DS: RAMVARS segment147 ; ES: Zero (BDA segment)148 ; Returns:149 ; ES:SI Ptr to ATAPI information (read with IDENTIFY PACKET DEVICE command)150 ; CF: Cleared if ATAPI-information read successfully151 ; Set if any error152 ; Corrupts registers:153 ; AX, BL, CX, DX, DI154 ;--------------------------------------------------------------------155 ALIGN JUMP_ALIGN156 DetectDrives_ReadAtapiInfoFromDrive:157 stc158 130 ret 159 131 … … 188 160 189 161 ;-------------------------------------------------------------------- 162 ; Reads ATAPI information from the drive (for CD/DVD-ROMs). 163 ; 164 ; DetectDrives_ReadAtapiInfoFromDrive 165 ; Parameters: 166 ; BH: Drive Select byte for Drive and Head Register 167 ; CS:BP: Ptr to IDEVARS for the drive 168 ; DS: RAMVARS segment 169 ; ES: Zero (BDA segment) 170 ; Returns: 171 ; ES:SI Ptr to ATAPI information (read with IDENTIFY PACKET DEVICE command) 172 ; CF: Cleared if ATAPI-information read successfully 173 ; Set if any error 174 ; Corrupts registers: 175 ; AX, BL, CX, DX, DI 176 ;-------------------------------------------------------------------- 177 ALIGN JUMP_ALIGN 178 DetectDrives_ReadAtapiInfoFromDrive: 179 ;stc 180 ;ret 181 ; Fall through to DetectDrives_CreateBiosTablesForCDROM 182 183 184 ;-------------------------------------------------------------------- 190 185 ; Creates all BIOS tables for detected CD/DVD-ROM. 191 186 ;
Note:
See TracChangeset
for help on using the changeset viewer.