x.d=1
y.d=2
!fld qword [v_x]
!fld qword [v_y]
!cmp st0,st1
I want to compare st0,st1 to see if it is greater than, but I get an error on the cpm instructions.
I am trying to do an if statement, if x>y

Code: Select all
x.d=1
y.d=-2
!movsd xmm0, [v_x]
!movsd xmm1, [v_y]
!comisd xmm0, xmm1
!ja x_greater_than_y
End
!x_greater_than_y:
Debug "x > y"
Code: Select all
x.d=1
y.d=-2
!movsd xmm0, [v_x]
!comisd xmm0, [v_y]
!ja x_greater_than_y
End
!x_greater_than_y:
Debug "x > y"