1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

question about cmp - newbie

Discussion in 'Assembly Language Programming (ALP) Forum' started by mashour06, Apr 19, 2012.

  1. mashour06

    mashour06 New Member

    Joined:
    Apr 19, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello,
    I am new to assembly language programming and reading professional assembly language by Richard Blum, I would like to ask about cmp instruction (at&t syntax):

    cmpl %eax, %ecx
    ja label
    does it mean jump to label if eax is above ecx, or if ecx is above eax?
    and which instruction would be right here ja or jg?
    any help would be greatly appreciated.
    thank you.
     

Share This Page