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

[Gambatte] Some addresses are displayed wrong on ram watch #1672

Closed
gnaomo opened this issue Sep 15, 2019 · 1 comment
Closed

[Gambatte] Some addresses are displayed wrong on ram watch #1672

gnaomo opened this issue Sep 15, 2019 · 1 comment

Comments

@gnaomo
Copy link

gnaomo commented Sep 15, 2019

I was trying to read from addresses 0xFF18 and 0xFF19 with a lua script while playing a gb game (these are registers used to control square 2 sound channel http://gbdev.gg8.se/wiki/articles/Gameboy_sound_hardware) but their displayed values is not correct (e.g. FF or BF), these addresses should change instead, tried to RAM Watch the addresses to see if lua was the problem, but the result is the same. These addresses are displayed correctly using VBA instead
Here's a video, pay attention to the ram watch of Bizhawk and VBA: https://streamable.com/e4r2r

(The case is the same for addresses 0xFF13,0xFF14 and 0xFF1D)

@alyosha-tas
Copy link
Contributor

This is not a bug. Certain audio registers cannot be read from. (Reference the 'Register Reading' section in your link.) VBA is returning values that are either just incorrect, or expecting that you want to know the actual register data and just returning that to you instead.

Your best option here is to track writes to those addresses instead using event.onmemorywrite

@YoshiRulz YoshiRulz added Question/Support and removed App: EmuHawk Relating to EmuHawk frontend labels Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants