Xor
From Unofficial QEdit Wiki Guide
Contents
Syntax
Syntax: xor register1, register2
- register1 = Register to perform bitwise XOR function on
- register2 = Register to perform bitwise XOR function with
Use
Used to perform a bitwise XOR operation of one register with the value of another. For performing XOR on registers with integers see xori
Example
100: leti R1, 0000000A //Set R1 to 00000000000000000000000000001010
leti R2, 0000000F //Set R2 to 00000000000000000000000000001111
window_msg 'Register 1 = <r1>' //Display the value of R1 in a window message currently 10
xor R1, R2 //R1 XOR R2. Now equals 00000000000000000000000000000101
add_msg 'Register 1 = <r1>' //Display the new value of R1 in a window message now 5
winend //Close window message
ret
Also see
leti, window_msg, add_msg, winend, ret