Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Bitwise-operations/Robotic/bitwise-operations.robotic
Normal file
15
Task/Bitwise-operations/Robotic/bitwise-operations.robotic
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
input string "First value"
|
||||
set "local1" to "input"
|
||||
input string "Second value"
|
||||
set "local2" to "input"
|
||||
|
||||
. ">>> is an arithmetic shift; >> is a logical shift"
|
||||
[ "a AND b = ('local1' a 'local2')"
|
||||
[ "a OR b = ('local1' o 'local2')"
|
||||
[ "a XOR b = ('local1' x 'local2')"
|
||||
[ "NOT a = (~'local1')"
|
||||
[ "a << b = ('local1' << 'local2')"
|
||||
[ "a >> b = ('local1' >> 'local2')"
|
||||
[ "a >>> b = ('local1' >>> 'local2')"
|
||||
end
|
||||
. "Bitwise rotation is not natively supported"
|
||||
Loading…
Add table
Add a link
Reference in a new issue