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

RTC example ROM non-functional (vs EZO & VBA-m) #1400

Closed
felixjones opened this issue May 2, 2019 · 1 comment
Closed

RTC example ROM non-functional (vs EZO & VBA-m) #1400

felixjones opened this issue May 2, 2019 · 1 comment

Comments

@felixjones
Copy link
Contributor

Attached is an old RTC test of mine written for the EZ Flash Omega cartridge, the C code behind the RTC operation of this ROM is based on the work of the PRET Emerald project (which is guaranteed to produce a working RTC ROM for their toolset).

rtc_test.zip

This test works on Omega, at the time that was good enough for my needs, however I have never been able to get this working on mGBA. Out of curiosity, I tried this on VBA-m and was surprised to find it worked, so I am left a little puzzled as to where the issue lies.

I have tried writing and re-writing my RTC code a few times over the past week and have been unable to get any kind of response working on mGBA. The correct overrides for RTC have been applied, I have also tried using game IDs from known RTC games to use the automatic HW detection of mGBA and still no luck.

@endrift
Copy link
Member

endrift commented May 2, 2019

Can I see your source? I've modified how the RTC works significantly and it seems to be outputting correctly now but I'm still getting errors from your program.

Turns out there was a bug where ROMs that weren't power-of-two sized would break with the RTC, even if the RTC was updating properly.

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

No branches or pull requests

2 participants