Skip to content
Snippets Groups Projects
Commit 96c144d7 authored by Johannes Kung's avatar Johannes Kung Committed by Martin Högstedt
Browse files

Apply 3 suggestion(s) to 2 file(s)

parent a25746b1
Branches
No related tags found
1 merge request!13We know have asm instructions, can step forward and backward between clock cycle and asm instructions
Pipeline #131573 failed
......@@ -21,10 +21,10 @@ class RunThread(QRunnable):
self.run_continuously = run_continuously
self.steps = steps
self.delay = delay
self.is_asm_instruciton = is_asm_instruciton
self.step_asm = step_asm
def run(self):
if self.is_asm_instruciton:
if self.step_asm:
while self.steps > 0:
self.cpu.do_tick()
......
......@@ -97,7 +97,7 @@ class MiaMemory(MiaBusConnector, Memory):
self.label_adress_mapping[adress] = instr
def get_label(self, adress: int) -> str:
"""Returns the label at the given value if it exists, else an empty string"""
"""Return the label at the given memory address if it exists, else an empty string"""
if adress in self.label_adress_mapping.keys():
return self.label_adress_mapping[adress]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment