Clean up codes
This commit is contained in:
@@ -74,7 +74,7 @@ class MaMaGUI:
|
||||
state = self.journal[self.journal_index]
|
||||
stack = dict(state["stack"])
|
||||
p_prog, p_stack = int(state["p_prog"]), int(state["p_stack"])
|
||||
step, call = int(state["step"]), str(state["call"])
|
||||
step, micro = int(state["step"]), str(state["micro"])
|
||||
|
||||
# Load code structure
|
||||
structure = self.machine.structure()
|
||||
@@ -96,7 +96,7 @@ class MaMaGUI:
|
||||
|
||||
instr_indent = " " * depth
|
||||
prefix = ">> " if addr == p_prog else " "
|
||||
line = f"{prefix}{instr_indent}{addr:>3}: {info['call']}"
|
||||
line = f"{prefix}{instr_indent}{addr:>3}: {info['micro']}"
|
||||
self.prog_list.insert(tk.END, line)
|
||||
opened_macros = macros
|
||||
|
||||
@@ -118,7 +118,7 @@ class MaMaGUI:
|
||||
|
||||
# Update configuration and global stack
|
||||
self.conf_label.config(text=f"({p_stack}, {p_prog}, {list(stack.values())})")
|
||||
self.status.config(text=f"Step {step}/{len(self.journal)-1} | PC={p_prog} | SP={p_stack} | Call: {call}")
|
||||
self.status.config(text=f"Step {step}/{len(self.journal)-1} | PC={p_prog} | SP={p_stack} | Micro: {micro}")
|
||||
|
||||
# Configure auto step speed
|
||||
def __update_speed(self, value: str) -> None:
|
||||
|
||||
Reference in New Issue
Block a user