diff --git a/src/py65/devices/mpu6502.py b/src/py65/devices/mpu6502.py index da91c62..8f4674f 100644 --- a/src/py65/devices/mpu6502.py +++ b/src/py65/devices/mpu6502.py @@ -1,6 +1,5 @@ from py65.utils.conversions import convert_to_bin, convert_to_bcd, itoa from py65.utils.devices import make_instruction_decorator -from os import linesep class MPU: # vectors @@ -40,7 +39,7 @@ class MPU: flags = itoa(self.flags, 2).rjust(8, '0') indent = ' ' * (len(self.name) + 2) - out = "%s PC AC XR YR SP NV-BDIZC" + linesep + \ + out = "%s PC AC XR YR SP NV-BDIZC\n" + \ "%s: %04x %02x %02x %02x %02x %s" return out % (indent, self.name, diff --git a/src/py65/monitor.py b/src/py65/monitor.py index 03d71c4..7d70294 100644 --- a/src/py65/monitor.py +++ b/src/py65/monitor.py @@ -101,17 +101,17 @@ class Monitor(cmd.Cmd): self._mpu.memory = m def _update_prompt(self): - self.prompt = os.linesep + repr(self._mpu) + os.linesep + '.' + self.prompt = "\n%s\n." % repr(self._mpu) def _output(self, stuff): if stuff is not None: - self.stdout.write(stuff + os.linesep) + self.stdout.write(stuff + "\n") def help_version(self): self._output("version\t\tDisplay Py65 version information.") def do_version(self, args): - self._output(os.linesep + "Py65 Monitor") + self._output("\nPy65 Monitor") def help_help(self): self._output("help\t\tPrint a list of available actions.")