Modified the way shifted radices are printed for readability.
This commit is contained in:
parent
e5a88058ed
commit
66c9f833a6
7
main.py
7
main.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue