Modified prints for readability (again).

This commit is contained in:
Rhinemann 2023-06-25 22:32:34 +03:00
parent 66c9f833a6
commit f508ca51c8
1 changed files with 8 additions and 2 deletions

10
main.py
View File

@ -1,16 +1,22 @@
from bitutilities import *
import timeit
if __name__ == '__main__':
reg: BasicRegister = BasicRegister(get_memory("memory"))
# print(type(reg))
print("\nRegister:")
print(reg)
print()
print("\nReversed:")
reg.reverse()
print(reg)
print("\nShifted left:")
print([int(value) for value in reg.left_shift()])
print(reg)
print()
print("\nShifted right:")
print([int(value) for value in reg.right_shift()])
print(reg)