[cpu] fixed formatting to include cpu class extensions

This commit is contained in:
Anton Lydike 2021-05-22 21:03:37 +02:00
parent 15da68995c
commit c48a5efee3

View File

@ -178,7 +178,8 @@ class CPU:
"""
Returns a representation of the CPU and some of its state.
"""
return "CPU(pc=0x{:08X}, cycle={}, exit={}, instructions={})".format(
return "{}(pc=0x{:08X}, cycle={}, exit={}, instructions={})".format(
self.__class__.__name__,
self.pc,
self.cycle,
self.exit,