From a2e206eaee99a1a25b9e4c175fec7f6fc4cf15fb Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Wed, 19 May 2021 09:51:51 +0200 Subject: [PATCH] renamed CPU.__run -> CPU._run, it's now overwriteable by subclasses --- riscemu/CPU.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/riscemu/CPU.py b/riscemu/CPU.py index a51103d..f116a4e 100644 --- a/riscemu/CPU.py +++ b/riscemu/CPU.py @@ -94,7 +94,7 @@ class CPU: print(FMT_CPU + '[CPU] Allocated {} bytes of stack'.format(self.stack.size) + FMT_NONE) print(FMT_CPU + '[CPU] Started running from 0x{:08X} ({})'.format(le.run_ptr, le.name) + FMT_NONE) - self.__run() + self._run() def continue_from_debugger(self, verbose=True): """ @@ -102,7 +102,7 @@ class CPU: :param verbose: If True, will print each executed instruction to STDOUT """ - self.__run(verbose) + self._run(verbose) def step(self): """ @@ -123,7 +123,7 @@ class CPU: self.pc -= 1 print(ex.message()) - def __run(self, verbose=False): + def _run(self, verbose=False): if self.pc <= 0: return False ins = None