CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: About or ax,ax

  1. #1
    Join Date
    Dec 2010
    Posts
    907

    About or ax,ax

    This line is attempting to figure out if ax contains any 1s.
    But what is its equivalent high level statement for it?
    Thanks
    Jack

  2. #2
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,675

    Re: About or ax,ax

    You didn't specify which high-level language. In C++, for instance, it is as simple as if (ax != 0) (or of course, but that would be less clear for one who's not familiar with C++, its short form if (ax)).

    Just BTW, if you really need to ask questions like this one (or the one over there in the VC++ section), I doubt assembly is the language for you...
    I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

    This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.

  3. #3
    Join Date
    Dec 2010
    Posts
    907

    Re: About or ax,ax

    Thanks Eri, that solves my puzzle

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured