> (REG xor W) + 2 * (REG and W) Some thought gives the short solution: addwf REG,W Thomas Vegeby