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

Feature request: send data to I/O ports #16

Open
boriel opened this issue Sep 23, 2020 · 1 comment
Open

Feature request: send data to I/O ports #16

boriel opened this issue Sep 23, 2020 · 1 comment
Assignees

Comments

@boriel
Copy link

boriel commented Sep 23, 2020

Not a bug but a feature request: It would be nice to programmatically send ports values which could be read by the CPU using IN. This could allow to send simulated "keypresses" or "joystick events" to the program to automate QA testing.

@boriel boriel changed the title Capability to send port events (IN) Feature request: send data to I/O ports Sep 23, 2020
@kosarev
Copy link
Owner

kosarev commented Sep 24, 2020

That's what the emulator actually does; all the keyboard/tape handling is in Python. I guess it would be a good idea to add some documentation, examples and tests as well as provide some public API to that feature. I think we can even provide some high-level API on top of the port-reading hook so key strokes can be emulated in a more natural and high-level way (again, we already do that internally on Python side of the zx code).

Hope to be able to make some progress with this this weekend. Thanks for filing the ticket!

@kosarev kosarev self-assigned this Sep 24, 2020
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

2 participants