I have the next instruction:
cmp al, 1
jz mub
When al is 2 (10 in binary). What would do this instruction? As I know, I can use JE,JNE,JA etc., but what is meaning jz after cmp instruction?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
jzis “jump if zero”.cmpsubtracts its two operands, and sets flags accordingly. (See here for reference.)If the two operands are equal, the subtraction will result in zero and the
ZFflag will be set.So in your sample, the jump will be taken if
alwas 1, not taken otherwise.