Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Bitwise-operations/Logo/bitwise-operations-1.logo
Normal file
11
Task/Bitwise-operations/Logo/bitwise-operations-1.logo
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
to bitwise :a :b
|
||||
(print [a and b:] BitAnd :a :b)
|
||||
(print [a or b:] BitOr :a :b)
|
||||
(print [a xor b:] BitXor :a :b)
|
||||
(print [not a:] BitNot :a)
|
||||
; shifts are to the left if positive, to the right if negative
|
||||
(print [a lshift b:] LShift :a :b)
|
||||
(print [a lshift -b:] LShift :a minus :b)
|
||||
(print [-a ashift -b:] AShift minus :a minus :b)
|
||||
end
|
||||
bitwise 255 5
|
||||
7
Task/Bitwise-operations/Logo/bitwise-operations-2.logo
Normal file
7
Task/Bitwise-operations/Logo/bitwise-operations-2.logo
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
a and b: 5
|
||||
a or b: 255
|
||||
a xor b: 250
|
||||
not a: -256
|
||||
a lshift b: 8160
|
||||
a lshift -b: 7
|
||||
-a ashift -b: -8
|
||||
Loading…
Add table
Add a link
Reference in a new issue