Skip to content

PCjr: Fix inverted horizontal screen movement#6434

Merged
OBattler merged 1 commit into
86Box:masterfrom
pixel-jupiter:pcjr-hshift-fix
Nov 4, 2025
Merged

PCjr: Fix inverted horizontal screen movement#6434
OBattler merged 1 commit into
86Box:masterfrom
pixel-jupiter:pcjr-hshift-fix

Conversation

@pixel-jupiter

Copy link
Copy Markdown
Contributor

Summary

The IBM PCjr allows for horizontal screen movement using the Ctrl + Alt + Left/Right Arrow Keys shortcut.
Currently, it's inverted:

  • Ctrl + Alt + Left moves the screen right (should move left)
  • Ctrl + Alt + Right moves the screen left (should move right)

The section “Centering Information on the Screen” in the IBM PCjr Guide To Operations confirms the intended behavior.
Also, increasing the value in the R2 register of the CRTC should shift the display left, and decreasing it should shift it right. If you look at the register values while shifting the screen, you'll see that the current calculation does the opposite.

This PR fixes the issue.

Checklist

References

Provide links to datasheets or other documentation that helped you implement this pull request.

@OBattler
OBattler merged commit 2369b1c into 86Box:master Nov 4, 2025
45 checks passed
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

Successfully merging this pull request may close these issues.

2 participants