From a6e4b4b4d6fe301c2325e7568413eee320a56240 Mon Sep 17 00:00:00 2001 From: Rhinemann Date: Mon, 26 Jun 2023 00:24:47 +0300 Subject: [PATCH] revert e80304f84dcfeabdeb940f4b3266684bf7e282a9 revert Delete 'main.py' --- main.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..1e06d59 --- /dev/null +++ b/main.py @@ -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)