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

Re-design the input machinery #13

Open
kosarev opened this issue May 27, 2020 · 0 comments
Open

Re-design the input machinery #13

kosarev opened this issue May 27, 2020 · 0 comments

Comments

@kosarev
Copy link
Owner

kosarev commented May 27, 2020

Functions like __generate_key_strokes() should be rewritten to install Python generators that produce input data and perform other actions as the emulator executes __run_quantum(), that is, as part of the usual execution path and without taking control for all the time of generating port inputs, key strokes, etc. Same mechanism should be used to interface with tape, playback players and, later, the time machine.

The problem with control-taking functions that execute out of the usual emulation loop is that we thus may attempt to load file (e.g., via F3) while being in the process of loading another file, and we don't actually (want to) support that.

This seems to be not only a bug-fixing work, but also an enhancement and a refactoring. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant