You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix VIA port B data direction register handling for joystick fire buttons
- Correctly handle DDR in recalculatePortBPins(): output pins use ORB values, input pins default high
- Fix inverted button logic: clear pin bits when buttons are pressed (active low)
- Remove redundant DDR masking that was preventing proper input pin reads
- This fixes ADVAL(0) not detecting mouse joystick fire button presses
The original code wasn't respecting the Data Direction Register, causing joystick
fire button states to not be readable by BBC BASIC's ADVAL(0) function.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments