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(reg)
|
|
|
|
|
2023-06-18 14:52:56 +03:00
|
|
|
print(reg.left_shift())
|
2023-06-17 21:41:51 +03:00
|
|
|
print(reg)
|
|
|
|
|
2023-06-18 14:52:56 +03:00
|
|
|
print(reg.right_shift())
|
2023-06-17 21:41:51 +03:00
|
|
|
print(reg)
|