1
0
mirror of https://github.com/mnaberez/py65.git synced 2025-01-21 06:30:15 +00:00

Interactive assembler continues at same address on error.

This commit is contained in:
Mike Naberezny 2009-08-21 21:01:09 -07:00
parent 87de997a78
commit 475c929011

View File

@ -239,8 +239,8 @@ class Monitor(cmd.Cmd):
bytes = self._assembler.assemble(line) bytes = self._assembler.assemble(line)
if bytes is None: if bytes is None:
self._output("Assemble failed: %s\n" % line) self.stdout.write("\r$%04x ???\n" % start)
return continue
end = start + len(bytes) end = start + len(bytes)
self._mpu.memory[start:end] = bytes self._mpu.memory[start:end] = bytes