improved debugging output on early exit and reformatted cpu file

float_support
Anton Lydike 4 years ago
parent 21b974cfbd
commit a1fe631844

@ -90,7 +90,6 @@ class CPU:
self.pc -= 1
print(ex.message())
def __run(self, verbose=False):
if self.pc <= 0:
return False
@ -122,8 +121,7 @@ class CPU:
sys.exit(self.exit_code)
else:
print()
print(FMT_CPU + "Program stopped without exiting!" + FMT_NONE)
print(FMT_CPU + "Program stopped without exiting - perhaps you stopped the debugger?" + FMT_NONE)
def __run_instruction(self, ins: 'LoadedInstruction'):
if ins.name in self.instructions:

@ -33,7 +33,7 @@ def launch_debug_session(cpu: 'CPU', mmu: 'MMU', reg: 'Registers', prompt=""):
print("Current instruction at 0x{:08X}:".format(cpu.pc))
return mmu.read_ins(cpu.pc)
def cont(verbose=True):
def cont(verbose=False):
cpu.continue_from_debugger(verbose)
def step():

Loading…
Cancel
Save