Fix multiple breakpoints at the same memory address

This commit is contained in:
Jeremy Penner 2021-10-07 22:16:09 -04:00
parent 06ccd4a2b3
commit e8665e7c0a

View file

@ -70,7 +70,7 @@
(var last-addr ?last-addr)
(while (let [state manager.machine.debugger.execution_state
addr (. manager.machine.devices ::maincpu :state :PC :value)]
(not (and (= state :stop) (not= addr ?last-addr))))
(not (and (= state :stop) (not= addr last-addr))))
(when (= :run manager.machine.debugger.execution_state)
(set last-addr nil))
(coroutine.yield))))