RIP-Comm / clementine

Gameboy Advance emulator.
MIT License
49 stars 13 forks source link

ARM: Refactor `Branch`/`BranchLink` ops #105

Closed AlessioC31 closed 1 year ago

AlessioC31 commented 1 year ago

I've fixed an issue with the Branch op since it was not sign extending the offset, so it would not have worked with negative offsets.

I also took it as an opportunity to refactor it a bit: now there's only 1 branch function instead of branch and branch_and_link that do the same thing. I've also united the tests into a single test function