CLI changes
This commit is contained in:
+5
-1
@@ -60,11 +60,15 @@ def run_classic_cli():
|
||||
print("Done.")
|
||||
|
||||
def run_exhaustive_cli():
|
||||
print("\nR registers are indexed 0–7; bits within each register are 0–7.")
|
||||
print("Enter -1 to print all bits in the chosen register.")
|
||||
|
||||
steps = prompt_int("How many steps? (1–100): ", 1, 100)
|
||||
target_reg = prompt_int("Target register (0–7): ", 0, 7)
|
||||
target_bit = prompt_int("Target bit (-1 or 0–7): ", -1, 7)
|
||||
|
||||
print("-" * 50)
|
||||
run_exhaustive(steps, target_reg)
|
||||
run_exhaustive(steps, target_reg, target_bit)
|
||||
|
||||
print("\n" + "=" * 50)
|
||||
print("Done.")
|
||||
|
||||
Reference in New Issue
Block a user