Jump to content

Bitwise operations: Difference between revisions

m
→‎{{header|Ada}}: Changed variable names
m (→‎{{header|Ada}}: Added a blank line in output between shifting and NOT operator)
m (→‎{{header|Ada}}: Changed variable names)
Line 26:
Put_Line("Not A = "); Byte_IO.Put(Item => not A, Base => 2);
New_Line(2);
Put_Line(Unsigned_8'Image(Shift_Left(AX, BN))); -- Left shift
Put_Line(Unsigned_8'Image(Shift_Right(AX, BN))); -- Right shift
Put_Line(Unsigned_8'Image(Shift_Right_Arithmetic(AX, BN))); -- Right Shift Arithmetic
Put_Line(Unsigned_8'Image(Rotate_Left(A, B))); -- Left rotate
Put_Line(Unsigned_8'Image(Rotate_Right(A, B))); -- Right rotate
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.