kernel-mode #1

Manually merged
anton merged 69 commits from kernel-mode into master 2021-11-16 08:02:40 +01:00
Showing only changes of commit a2e206eaee - Show all commits

View File

@ -94,7 +94,7 @@ class CPU:
print(FMT_CPU + '[CPU] Allocated {} bytes of stack'.format(self.stack.size) + FMT_NONE) 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) 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): def continue_from_debugger(self, verbose=True):
""" """
@ -102,7 +102,7 @@ class CPU:
:param verbose: If True, will print each executed instruction to STDOUT :param verbose: If True, will print each executed instruction to STDOUT
""" """
self.__run(verbose) self._run(verbose)
def step(self): def step(self):
""" """
@ -123,7 +123,7 @@ class CPU:
self.pc -= 1 self.pc -= 1
print(ex.message()) print(ex.message())
def __run(self, verbose=False): def _run(self, verbose=False):
if self.pc <= 0: if self.pc <= 0:
return False return False
ins = None ins = None