- #1
mathmari
Gold Member
MHB
- 5,049
- 7
Hey!
I want to check using bitwise operations if x XOR y=0.
The only conditional command we have is JMN a, which means Jump to a if the currect value is <0.
So, we have to check if it doesn't hold that x XOR y <0 and x XOR y >0, right? (Wondering)
But how can we check the condition x XOR y >0 ? (Wondering)
Using the operation NOT ( x XOR y ) we don't get -(x XOR y) right? (Wondering)
I want to check using bitwise operations if x XOR y=0.
The only conditional command we have is JMN a, which means Jump to a if the currect value is <0.
So, we have to check if it doesn't hold that x XOR y <0 and x XOR y >0, right? (Wondering)
But how can we check the condition x XOR y >0 ? (Wondering)
Using the operation NOT ( x XOR y ) we don't get -(x XOR y) right? (Wondering)