News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Need help on logical operators

Started by Gimena, April 11, 2014, 10:32:31 PM

Previous topic - Next topic

Gimena

if (E > J && J =< X)
          E= J MULTIPLY X
if (A > B || X >= E
D = X/5



i wanted to know how to make my first code and my second  all true using logical operators
i just wanted to know how to make and,or all true ?




mov e,sval (input(E:))
mov j,sval (input(J:))
mov x,sval (input(J:))

mov eax,e
cmp eax,j
jl end01

mov eax,j
cmp eax,x
jg end01

mul eax,x
mov e,eax
jmp end01


end01
print str$(e)