Changeset 305 in xtideuniversalbios
- Timestamp:
- Mar 9, 2012, 7:21:05 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH25h_HDrvID.asm
r294 r305 24 24 mov al, 1 ; Read 1 sector 25 25 call Prepare_BufferToESSIforOldInt13hTransfer 26 mov ah, COMMAND_IDENTIFY_DEVICE 27 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_DRQ) 26 28 %ifdef USE_186 27 29 push Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH 28 ; Fall to AH25h_GetDriveInformationToBufferInESSI30 jmp Idepack_TranslateOldInt13hAddressAndIssueCommandFromAH 29 31 %else 30 call AH25h_GetDriveInformationToBufferInESSI32 call Idepack_TranslateOldInt13hAddressAndIssueCommandFromAH 31 33 jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH 32 34 %endif 33 34 35 ;--------------------------------------------------------------------36 ; AH25h_GetDriveInformationToBufferInESSI37 ; Parameters:38 ; DS:DI: Ptr to DPT (in RAMVARS segment)39 ; ES:SI: Ptr to buffer to receive 512-byte drive information40 ; Returns with INTPACK:41 ; AH: Int 13h return status42 ; CF: 0 if successful, 1 if error43 ; Corrupts registers:44 ; AL, BX, CX, DX45 ;--------------------------------------------------------------------46 ;ALIGN JUMP_ALIGN47 AH25h_GetDriveInformationToBufferInESSI:48 push es49 push bp50 push di51 push si52 53 call AccessDPT_GetDriveSelectByteToAL54 mov bh, al55 eMOVZX ax, [di+DPT.bIdevarsOffset]56 xchg bp, ax57 call Device_IdentifyToBufferInESSIwithDriveSelectByteInBH58 59 pop si60 pop di61 pop bp62 pop es63 ret -
trunk/XTIDE_Universal_BIOS/Src/Main.asm
r294 r305 54 54 db " (XT)=-",NULL 55 55 %endif 56 at ROMVARS.szVersion, db "v2.0.0",BETA," (",__DATE__,")",NULL56 at ROMVARS.szVersion, db "v2.0.0",BETA,"1 (",__DATE__,")",NULL 57 57 58 58 ;;; For OR'ing into wFlags below
Note:
See TracChangeset
for help on using the changeset viewer.