added open-file" and load-file"
[rrq/rrqforth.git] / adoc / p_xor.adoc
index 04f763ae708055901d7b913ba4381e1c0239ce48..5c8b6378f2e1385916c7bfb71b47ead6b36f1b00 100644 (file)
@@ -1,9 +1,13 @@
+// logic.asm:  WORD p_xor, 'XOR',fasm
+
 anchor:p_xor[]
 
-Word: XOR
-----------
+=== Word: XOR
 
-----
-logic.asm:     WORD p_xor, 'XOR',fasm
-----
+....
+Data stack: ( v1 v2 -- v3 )
+....
 
+"XOR" is a function word that replaces a value pair with their bitwise
+exclusion; each bit is 1 if the corresponding bits of the two operands
+differ and 0 if not.