Bitwise operations: Difference between revisions

+AutoHotkey
m (→‎{{header|x86 assembly}}: one ( too much)
(+AutoHotkey)
Line 142:
+170, 8r0252, TFTFTFTF
+85, 8r0125, FTFTFTFT</pre>
 
 
=={{header|AutoHotkey}}==
<lang AutoHotkey>
bitwise(3, 4)
bitwise(a, b)
{
msgbox % "a and b: " . a & b
msgbox % "a or b: " . a | b
msgbox % "a xor b: " . a ^ b
msgbox % "not a: " . ~a ; treated as unsigned integer
msgbox % "a << b: " . a << b ; left shift
msgbox % "a >> b: " . a >> b ; arithmetic right shift
}
 
</lang>
 
=={{header|AWK}}==
Anonymous user