jsmolka / gba-tests

A collection of Game Boy Advance tests.
MIT License
101 stars 9 forks source link

Add pipeline test for bad data processing opcodes #8

Closed fleroviux closed 3 years ago

fleroviux commented 3 years ago

The pipeline shouldn't be flushed for TST/TEQ/CMP/CMN even if rD = 15. This PR adds a test for that and also makes the previous test immune to that fault vector (inserted two nops).

I realize this could be code golfed to be two instructions (bad opcode + branch to pass) but think this is cleaner / easier to understand.

jsmolka commented 3 years ago

Thanks for this. Good luck with the DS emulator :)

fleroviux commented 3 years ago

Thanks!