mirror of
https://github.com/mnaberez/py65.git
synced 2024-06-08 03:29:32 +00:00
Compare commits
2 Commits
9401f73807
...
273fb8cb86
Author | SHA1 | Date | |
---|---|---|---|
|
273fb8cb86 | ||
|
84e87293d7 |
|
@ -504,19 +504,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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user