Skip to content

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

Merged
breakintoprogram merged 1 commit intobreakintoprogram:mainfrom
tomm:mos_setkbvector
Aug 3, 2023
Merged

mos_setkbvector OS call, so user programs can access VDP keyboard packets#73
breakintoprogram merged 1 commit intobreakintoprogram:mainfrom
tomm:mos_setkbvector

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