;===========================================;TEST UNIT READY INVOKE ResetEvent, hEventSRB CALL RESET_SRB_EXEC MOV SRB_EXEC.SRB_Cmd,SC_EXEC_SCSI_CMD MOV EAX,scAdapId MOV SRB_EXEC.SRB_HaId,AL MOV SRB_EXEC.SRB_Flags,SRB_EVENT_NOTIFY MOV EAX,scSCSIid MOV SRB_EXEC.SRB_Target,AL MOV SRB_EXEC.SRB_SenseLen,SENSE_LEN MOV SRB_EXEC.SRB_CDBLen,6 MOV EAX,hEventSRB MOV SRB_EXEC.SRB_PostProc,EAX LEA EDI,SRB_EXEC.CDBByte MOV AL,SCSI_TST_U_RDY MOV [EDI],AL MOV EAX,fnSendASPI32Command PUSH OFFSET SRB_EXEC CALL EAX ADD ESP,4 ;absolutely required CMP SRB_EXEC.SRB_Status,SS_PENDING JNZ FFSF1_1 INVOKE WaitForSingleObject, hEventSRB, INFINITE FFSF1_1: CMP SRB_EXEC.SRB_Status,SS_COMP JNZ FFS_CHECK_SENSE