melonDS-emu / melonDS

DS emulator, sorta
https://melonds.kuribo64.net
GNU General Public License v3.0
3.17k stars 523 forks source link

Misc Interpreter fixes #2052

Closed Jaklyy closed 1 month ago

Jaklyy commented 4 months ago

fixes a few homebrew programs

fixes: writeback should be done before swapping spsr improve handling of data aborts for the majority of load/store instructions (i think its still slightly wrong though? timings need testing too) implements r15 stores being +12 of addr implements quirky behavior of non-word r15 loads implements swp/swpb 15 loads failing (only on arm9) fix unused pu region sizing bits being settable fix unused cpsr bits being settable implements the "vram access" scfg bit changing the bus width to 32 bit improve load/store timings for the arm9 fix jumps with clz not working properly (a few more instructions still need fixes tho) "odd" code cycles in thumb probably shouldn't be 0 on the arm9 (untested?)