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"))
|
2023-06-25 21:59:47 +03:00
|
|
|
# print(type(reg))
|
2023-06-17 21:41:51 +03:00
|
|
|
|
|
|
|
print(reg)
|
|
|
|
|
2023-06-25 21:59:47 +03:00
|
|
|
print()
|
|
|
|
print([int(value) for value in reg.left_shift()])
|
2023-06-17 21:41:51 +03:00
|
|
|
print(reg)
|
|
|
|
|
2023-06-25 21:59:47 +03:00
|
|
|
print()
|
|
|
|
print([int(value) for value in reg.right_shift()])
|
2023-06-17 21:41:51 +03:00
|
|
|
print(reg)
|