
How can i make the Procedure return the result directly ?
How to compare two results and branch if they are less/greater ?
Why is cmpsd not recognised as instruction ?
Code:
Code: Select all
EnableExplicit
Procedure.d Dummy(A.d,B.d,*C)
!movsd xmm0,[p.v_A]
!movsd xmm1,[p.v_B]
!divsd xmm0,xmm1;<- A = A / B
;i would like to compare two xmm
;!cmpsd xmm0,xmm1 <- invalid instruction !?
!mov rax,[p.p_C]
!movsd [rax],xmm0;<- returns to variable via ptr
ProcedureReturn
EndProcedure
Procedure.i Main()
Protected test.d
Debug Dummy(100.0,2.0,@test)
Debug test
ProcedureReturn #Null
EndProcedure
End Main()