User Tools

Site Tools


crpl:docs:xor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
crpl:docs:xor [2014/10/01 15:02]
127.0.0.1 external edit
crpl:docs:xor [2019/12/21 09:22] (current)
rytan451 Typo fix: NOR => XOR. Add clarification that xor means "exclusive or"
Line 4: Line 4:
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-|Two items on the stack|The conditional ​NOR of the two arguments |''​b1 b2 -- b3 ''​|+|Two items on the stack|The conditional ​XOR of the two arguments |''​b1 b2 -- b3 ''​|
  
  
 === Description === === Description ===
-Pops two items from the stack, treats them as boolean values, '​xors'​ them, and pushes 0 or 1 back to the stack.+Pops two items from the stack, treats them as boolean values, '​xors' ​(exclusive or) them, and pushes 0 or 1 back to the stack.
  
 If both items are TRUE, 0 is pushed to the stack. If both items are FALSE, 0 is pushed to the stack. If one item is TRUE and the other is FALSE, 1 is pushed to the stack. If both items are TRUE, 0 is pushed to the stack. If both items are FALSE, 0 is pushed to the stack. If one item is TRUE and the other is FALSE, 1 is pushed to the stack.
crpl/docs/xor.txt ยท Last modified: 2019/12/21 09:22 by rytan451