Fix TMS9918A display blank bit - tiles rendered when display blanked#516
Merged
Oliodh merged 2 commits intoJan 19, 2026
mainHexagon/hemulator:mainfrom
copilot/fix-blue-screen-issueHexagon/hemulator:copilot/fix-blue-screen-issueCopy head branch name to clipboard
Merged
Fix TMS9918A display blank bit - tiles rendered when display blanked#516Oliodh merged 2 commits intomainHexagon/hemulator:mainfrom copilot/fix-blue-screen-issueHexagon/hemulator:copilot/fix-blue-screen-issueCopy head branch name to clipboard
Oliodh merged 2 commits into
mainHexagon/hemulator:mainfrom
copilot/fix-blue-screen-issueHexagon/hemulator:copilot/fix-blue-screen-issueCopy head branch name to clipboard
Conversation
Co-authored-by: Oliodh <249356858+Oliodh@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix blue screen issue in Bomb Jack SG 1000
Fix TMS9918A display blank bit - tiles rendered when display blanked
Jan 19, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a bug in the TMS9918A VDP emulation where background tiles were still being rendered even when the display blank bit was set. This affected games like Bomb Jack on SG-1000 that relied on display blanking during initialization, causing them to show garbled tiles instead of just the backdrop color.
Changes:
- Fixed display blank bit handling to disable both tile and sprite rendering when bit 6 of register 1 is set
- Updated documentation in SG-1000 and ColecoVision READMEs to reflect the fix
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| crates/core/src/tms9918a.rs | Moved display blank check to encompass both tile and sprite rendering instead of only sprites |
| crates/systems/sg1000/README.md | Added documentation about the display blanking fix |
| crates/systems/colecovision/README.md | Added documentation about the display blanking fix with proper formatting |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Oliodh
marked this pull request as ready for review
January 19, 2026 13:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The TMS9918A VDP was rendering background tiles even when the display blank bit (register 1, bit 6) was set. This caused games like Bomb Jack on SG-1000 to show a blue screen with garbled tiles instead of just the backdrop color during initialization.
Changes
crates/core/src/tms9918a.rsBefore:
After:
Impact
Affects SG-1000 and ColecoVision (both use TMS9918A). Games using display blanking during screen transitions or initialization will now render correctly.
Documentation:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.