Fixed nasty bug regarding BNE instruction, possibly same fix to be applied to the rest of branch instructions.