|
|
|
|
|
|
|
|
print(f"Div: {AlgoDatValue.div_operation}") |
|
|
print(f"Div: {AlgoDatValue.div_operation}") |
|
|
print(f"Bit: {AlgoDatValue.bit_operation}") |
|
|
print(f"Bit: {AlgoDatValue.bit_operation}") |
|
|
|
|
|
|
|
|
|
|
|
@staticmethod |
|
|
|
|
|
def reset(): |
|
|
|
|
|
AlgoDatValue.memory = 0 |
|
|
|
|
|
AlgoDatValue.read = 0 |
|
|
|
|
|
AlgoDatValue.write = 0 |
|
|
|
|
|
AlgoDatValue.compare = 0 |
|
|
|
|
|
AlgoDatValue.add_operation = 0 |
|
|
|
|
|
AlgoDatValue.sub_operation = 0 |
|
|
|
|
|
AlgoDatValue.mul_operation = 0 |
|
|
|
|
|
AlgoDatValue.div_operation = 0 |
|
|
|
|
|
AlgoDatValue.bit_operation = 0 |
|
|
|
|
|
|
|
|
def __init__(self, value): |
|
|
def __init__(self, value): |
|
|
AlgoDatValue.memory += 1 |
|
|
AlgoDatValue.memory += 1 |
|
|
AlgoDatValue.write += 1 |
|
|
AlgoDatValue.write += 1 |