binaryCalculatorPrototype/main.py

17 lines
321 B
Python
Raw Normal View History

2023-06-25 19:39:37 +03:00
from bitutilities import *
2023-06-17 21:41:51 +03:00
if __name__ == '__main__':
reg: BasicRegister = BasicRegister(get_memory("memory"))
# print(type(reg))
2023-06-17 21:41:51 +03:00
print(reg)
print()
print([int(value) for value in reg.left_shift()])
2023-06-17 21:41:51 +03:00
print(reg)
print()
print([int(value) for value in reg.right_shift()])
2023-06-17 21:41:51 +03:00
print(reg)