Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
RTC example ROM non-functional (vs EZO & VBA-m) #1400
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).
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.
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.