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

mos_setkbvector OS call, so user programs can access VDP keyboard packets #73

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

tomm
Copy link
Contributor

@tomm tomm commented Jul 1, 2023

This PR lets userspace programs have access to VDP keyboard packets, without having to override the whole uart0 interrupt. There is example code here: https://github.com/tomm/agon-mos/tree/main/bin

For BBC BASIC, INKEY with a negative argument (to perform a non-blocking lookup of key up/down state) is implemented using this mos_setkbvector call: https://github.com/tomm/agon-bbc-basic/tree/inkey-with-negative-arg

@tomm
Copy link
Contributor Author

tomm commented Jul 1, 2023

Corresponding BBC BASIC INKEY implementation: breakintoprogram/agon-bbc-basic#56

@breakintoprogram
Copy link
Owner

Thanks for the changes - I am going to improve the keyboard handling anyway, but this makes sense too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

2 participants