1
0
mirror of https://github.com/mnaberez/py65.git synced 2025-01-01 11:29:32 +00:00

Remove unnecessary call to address_for()

This commit is contained in:
Mike Naberezny 2014-12-13 19:09:56 -08:00
parent 37749bbd50
commit 586a227b7f

View File

@ -759,9 +759,7 @@ class Monitor(cmd.Cmd):
self._output("Syntax error: %s" % args)
return self.help_add_breakpoint()
address = self._address_parser.address_for(split[0])
if not address:
address = self._address_parser.number(split[0])
address = self._address_parser.number(split[0])
if address not in self._address_parser.breakpoints:
self._output("Breakpoint %d added at $%04X" % (len(self._address_parser.breakpoints), address))