revert e80304f84dcfeabdeb940f4b3266684bf7e282a9
revert Delete 'main.py'
This commit is contained in:
parent
b64516243c
commit
a6e4b4b4d6
22
main.py
Normal file
22
main.py
Normal file
@ -0,0 +1,22 @@
|
||||
from bitutilities import *
|
||||
import timeit
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
reg: BasicRegister = BasicRegister(get_memory("memory"))
|
||||
# print(type(reg))
|
||||
|
||||
print("\nRegister:")
|
||||
print(reg)
|
||||
|
||||
print("\nReversed:")
|
||||
reg.reverse()
|
||||
print(reg)
|
||||
|
||||
print("\nShifted left:")
|
||||
print([int(value) for value in reg.left_shift()])
|
||||
print(reg)
|
||||
|
||||
print("\nShifted right:")
|
||||
print([int(value) for value in reg.right_shift()])
|
||||
print(reg)
|
Loading…
x
Reference in New Issue
Block a user