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

[Feature Request]: Implement GS_BGCOLOR support #12242

Open
fjtrujy opened this issue Jan 27, 2025 · 0 comments
Open

[Feature Request]: Implement GS_BGCOLOR support #12242

fjtrujy opened this issue Jan 27, 2025 · 0 comments
Labels
Enhancement / Feature Request FR: Low Priority Niche request that does not benefit many users. FR: Medium Complexity Requires some codebase knowledge. A proficient developer should be able to manage. GS

Comments

@fjtrujy
Copy link
Contributor

fjtrujy commented Jan 27, 2025

Description

Performing changes on the GS_BGCOLOR currently doesn't produce any output on the emulation.

The next piece of code:

int main(void) { 
    *((volatile unsigned long int *)0x120000E0) = 0xFFFFFF;
    while(1){}
    return 0; 
}

It turns the screen fully white in the real hardware, however, it does nothing in PCSX2, and the screen remains black.

Reason

To change the GS_BGCOLOR is a common practice done in the PS2DEV to identify in a dummy and quick way if you program is stuck in a concrete step without making the binary way bigger.
This is for instance used in the majority of the elf-loaders.

Cheers.

Examples

PCSX2
Image

Real PS2 Hardware

Image

ELF

Here you have a dummy elf with that specific code

dummy.elf.zip

@fjtrujy fjtrujy added Enhancement / Feature Request FR: Awaiting Consideration The feature request is awaiting a team members consideration. labels Jan 27, 2025
@fjtrujy fjtrujy changed the title [Feature Request]: Implement GS_BGCOLOR support [Feature Request]: Implement GS_BGCOLOR support Jan 27, 2025
@Mrlinkwii Mrlinkwii added the GS label Jan 27, 2025
@F0bes F0bes added FR: Low Priority Niche request that does not benefit many users. FR: Medium Complexity Requires some codebase knowledge. A proficient developer should be able to manage. and removed FR: Awaiting Consideration The feature request is awaiting a team members consideration. labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement / Feature Request FR: Low Priority Niche request that does not benefit many users. FR: Medium Complexity Requires some codebase knowledge. A proficient developer should be able to manage. GS
Projects
None yet
Development

No branches or pull requests

3 participants