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 revisionPrevious revision
crpl:docs:xor [2021/02/05 11:43] – Rmoved discussion tag Karsten75crpl:docs:xor [2022/07/01 14:46] (current) – Reformat Karsten75
Line 3: Line 3:
 =====  xor  ===== =====  xor  =====
  
-^Arguments^Result^Notation^ +xor
-|Two items on the stack|The conditional XOR of the two arguments |''b1 b2 -- b3 ''+
  
 === Description === === Description ===
Line 12: Line 10:
 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.
 === Examples === === Examples ===
-<code>TRUE TRUE Trace     #prints out 0 (FALSE) to the tracelog+<code 4RPL> 
 +TRUE TRUE Trace     #prints out 0 (FALSE) to the tracelog
 TRUE FALSE Trace    #prints out 1 (TRUE) to the tracelog TRUE FALSE Trace    #prints out 1 (TRUE) to the tracelog
 FALSE TRUE Trace    #prints out 1 (TRUE) to the tracelog FALSE TRUE Trace    #prints out 1 (TRUE) to the tracelog
 FALSE FALSE Trace   #prints out 0 (FALSE) to the tracelog</code>  FALSE FALSE Trace   #prints out 0 (FALSE) to the tracelog</code> 
  
crpl/docs/xor.txt · Last modified: 2022/07/01 14:46 by Karsten75