projects
/
rrq
/
rrqforth.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
5c8b6378f2e1385916c7bfb71b47ead6b36f1b00
[rrq/rrqforth.git]
/
adoc
/
p_xor.adoc
1
// logic.asm: WORD p_xor, 'XOR',fasm
2
3
anchor:p_xor[]
4
5
=== Word: XOR
6
7
....
8
Data stack: ( v1 v2 -- v3 )
9
....
10
11
"XOR" is a function word that replaces a value pair with their bitwise
12
exclusion; each bit is 1 if the corresponding bits of the two operands
13
differ and 0 if not.