Click to See Complete Forum and Search --> : About or ax,ax


lucky6969b
November 11th, 2011, 02:01 PM
This line is attempting to figure out if ax contains any 1s.
But what is its equivalent high level statement for it?
Thanks
Jack

Eri523
November 11th, 2011, 04:50 PM
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 (http://www.codeguru.com/forum/showthread.php?t=518245)), I doubt assembly is the language for you...

lucky6969b
November 11th, 2011, 05:53 PM
Thanks Eri, that solves my puzzle