title: Logical AND implementation in x86_64 Linux assembly
body: <p>I'm trying to implement logical NOT and logical AND
  in assembly, I did logical NOT already using <code>x &lt; 1</code>
  but I can't think of how to implement AND, I can use
  binary and but that's broken for negative numbers (it
  assumes -1 is <code>true</code>) and it doesn't make any sense
  when NOT obviously works because <code>-1 &lt; 1</code> would return <code>1</code></p>
  <p>So I'm confused, how could I do it, any known implementation
  which I could use? I can't find it, been looking for a while</p>