A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
15
Task/Bitwise-operations/Inform-6/bitwise-operations.inf
Normal file
15
Task/Bitwise-operations/Inform-6/bitwise-operations.inf
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[ bitwise a b temp;
|
||||
print "a and b: ", a & b, "^";
|
||||
print "a or b: ", a | b, "^";
|
||||
print "not a: ", ~a, "^";
|
||||
@art_shift a b -> temp;
|
||||
print "a << b (arithmetic): ", temp, "^";
|
||||
temp = -b;
|
||||
@art_shift a temp -> temp;
|
||||
print "a >> b (arithmetic): ", temp, "^";
|
||||
@log_shift a b -> temp;
|
||||
print "a << b (logical): ", temp, "^";
|
||||
temp = -b;
|
||||
@log_shift a temp -> temp;
|
||||
print "a >> b (logical): ", temp, "^";
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue