Modified the way shifted radices are printed for readability.

This commit is contained in:
Rhinemann 2023-06-25 21:59:47 +03:00
parent e5a88058ed
commit 66c9f833a6
1 changed files with 5 additions and 2 deletions

View File

@ -3,11 +3,14 @@ from bitutilities import *
if __name__ == '__main__':
reg: BasicRegister = BasicRegister(get_memory("memory"))
# print(type(reg))
print(reg)
print(reg.left_shift())
print()
print([int(value) for value in reg.left_shift()])
print(reg)
print(reg.right_shift())
print()
print([int(value) for value in reg.right_shift()])
print(reg)