title: how to calculate bitwise OR using AND, XOR and shift?
body: <p>The question seems pretty well formulated</p>
  
  <p>I have a virtual machine which implements only AND, XOR, SHL and SHR, yet I have to do a "OR 0x01" operation.</p>