alyosha-tas / GBAHawk

Gameboy Advance Emulator fork of BizHawk
Other
12 stars 2 forks source link

Pokemon R/S link error #16

Closed Fortranm closed 1 year ago

Fortranm commented 1 year ago

image This happened when I tried to trade between Ruby and Sapphire.

Pokemon - Ruby Version (USA) SHA1:F28B6FFC97847E94A6C21A63CACF633EE5C8DF1E MD5:53D1A2027AB49DF34A689FAA1FB14726

Pokemon - Sapphire Version (USA, Europe) (Rev 2) SHA1:89B45FB172E6B55D51FC0E61989775187F6FE63C MD5:9BC2B765CA6997175FAC51E6CDC29089

Movie file: PokeRS.zip

alyosha-tas commented 1 year ago

I'll need to test this on the debug core. Can you send a movie that runs from power on?

alyosha-tas commented 1 year ago

I finally figured out what was wrong here. Turns out its actually an IRQ issue, a serial IRQ was being enabled exactly when IRQ master enable was happening and missed the check. Quite miraculous it happened on exactly the needed cycle. Missing an IRQ threw off the count the consoles were keeping, causing the link error.

This will eventually be fixed with the other open IRQ issue.

In the mean time if you just start the transfer on a different frame you have a good chance of missing the bug.

alyosha-tas commented 1 year ago

should be fixed in v1.7, please try that version.