1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-05-31 12:41:31 +00:00
This commit is contained in:
Ethan Sifferman 2024-04-12 17:22:24 -07:00 committed by GitHub
commit b817d51a47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -507,19 +507,22 @@ class Monitor(cmd.Cmd):
if not breakpoints:
while True:
mpu.step()
if mem[mpu.pc] in stopcodes:
mpu.step()
break
mpu.step()
else:
while True:
mpu.step()
pc = mpu.pc
if mem[pc] in stopcodes:
mpu.step()
break
if pc in breakpoints:
msg = "Breakpoint %d reached."
self._output(msg % self._breakpoints.index(pc))
mpu.step()
break
mpu.step()
# Switch back to the previous input mode.
console.restore_mode()