RIP-Comm / clementine

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

Fix memory align #218

Closed AlessioC31 closed 9 months ago

AlessioC31 commented 9 months ago

We were not aligning the address when reading/writing word. Also, I noticed that when reading a misaligned address we should rotate the value so that the selected byte ends in bits 0-7 of the destination register.

Source:

image

We should do the same for ARM as well. But we can wait until we run the ARM tests