Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loop freezes interface and renders application inoperable #21

Open
daniel-Jones opened this issue Jan 6, 2018 · 1 comment
Labels
ui Issues related to user interface
Milestone

Comments

@daniel-Jones
Copy link

daniel-Jones commented Jan 6, 2018

GNUSim8085 1.3.8

Although a silly example a simple infinite loop like this will freeze the application:

START:	MVI A,1
JMP START

I've accidentally had myself in a similar situation. I've seen this referenced in a blog post as early as 2011 (http://opensourceforu.com/2011/08/gnusim8085-review/) however haven't found an issue open for it.

@onkarshinde
Copy link
Contributor

If you wrote a program with infinite loop and ran that on actual 8085 kit, the kit will keep looping. So I guess the simulator is trying its best to simulate the behaviour. 😉
I do agree though that the application UI should be kept responsive at all times irrespective of the fault in logic. Or at least we should add logic to detect high number of instruction executions and put program on pause. This one is not going to be easy to fix.

@onkarshinde onkarshinde added this to the 1.4.0 milestone Jun 8, 2018
@onkarshinde onkarshinde added the ui Issues related to user interface label Jun 8, 2018
@onkarshinde onkarshinde modified the milestones: 1.4.0, 1.4.5 Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui Issues related to user interface
Projects
None yet
Development

No branches or pull requests

2 participants