maziac / DeZogPlugin

Plugin to connect the CSpect emulator with DeZog.
MIT License
5 stars 1 forks source link

Requests while running result in odd behavior #1

Open maziac opened 4 years ago

maziac commented 4 years ago

Loading sprite patters while running (press "Reload" heavily) makes CSpect debugger behave oddly. Here is the Z80 sample program: cspect_problem It does not even make use of sprite patterns. It seems that memory gets corrupted. For some time it is still possible to follow program execution but the data (the colors) to draw is wrong.

The underlying problem seems to be that I can't stop the debugger reliably to do so. Maybe I need to serialize execution completely in Tick() function. But that is called only every 20ms and does not seem to solve the problem either.