Timendus / chip8-test-suite

A collection of ROM images with tests that will aid you in developing your own CHIP-8, SUPER-CHIP or XO-CHIP interpreter (or "emulator")
GNU General Public License v3.0
359 stars 7 forks source link

Merge Prettified Corax+ Code #24

Closed GamingMadster closed 2 months ago

GamingMadster commented 2 months ago

Here's the code cleanup I mentioned doing in #22.

I might try and do the same for some of the other source files, just so it's easier for someone looking to contribute to be able to read through the code.

Timendus commented 2 months ago

The Corax+ test is the worst offender of the bunch, I think. Primarily because I've initially tried to keep it just the "stock" Corax89 ROM with a few patches / bug fixes. I've added more and more changes over the years, without ever really taking the time to refactor.

I think your PR is an improvement overall, couple of remarks:

All in all: congratulations on a much cleaner and much easier to review pull request than the last one! Great to see you learning in real time :smile:

GamingMadster commented 2 months ago

To be honest, combing through the code wasn't all too bad, but some areas were sure a doosie.

Oh, and thanks! Again, I'm glad to be contributing to the test suite!

GamingMadster commented 2 months ago

Alright, I've done a little bit more to cleanup stuff.

Timendus commented 2 months ago

Thanks! I've removed many of the newlines again :P Sorry for that, but I do think it's a lot more readable now. Thanks for your help :)