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

Keyboard polling test idea #6

Open
xotmatrix opened this issue May 28, 2017 · 1 comment
Open

Keyboard polling test idea #6

xotmatrix opened this issue May 28, 2017 · 1 comment

Comments

@xotmatrix
Copy link

The Mr. Xerox crack of Dung Beetles has an irritating keyboard wait routine at the graphical title screen.

033E: 8D 10 C0        STA KBDSTRB
0341: AD 00 C0        LDA KEYBOARD
0344: 10 F8           BPL $33E

Because the keyboard strobe is constantly being cleared, there is scarcely any time to poll the keyboard. This caused me some headaches because I was only polling the keyboard once per frame.

@xotmatrix
Copy link
Author

xotmatrix commented Dec 26, 2018

I've been remaking my emulator's keyboard handler and studying schematics and thinking about this code again and wondering how it could reasonably work on real hardware. So I tested it and it's just a bad on the real thing. Often it just not does respond to key presses, as you might expect from looking at it. I don't know what Mr. Xerox was thinking with this code which appears twice in his crack.

My new keyboard emulation is much more accurate despite only running once per frame. If I invoked it at an interval of some multiple of 11 cycles, the length of the loop, I might get in trouble but I don't see any reason why this should be a test.

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

No branches or pull requests

1 participant