meganesu / generate-gb-opcodes

A helper project to dynamically generate the opcodes for each Game Boy CPU instruction mnemonic
https://meganesu.github.io/generate-gb-opcodes/
42 stars 9 forks source link

Generate Game Boy CPU Opcodes

Build Status

This is a side project that came out of my attempt to make a Game Boy emulator. I was trying to make a table of opcodes for the Game Boy CPU (similar to the one on pastraiser), but doing it by hand was quite tedious. So this project dynamically creates a similar table!

Support me on Ko-fi

Code Key

Note: Some conditional jump instructions take a different number of cycles depending on whether or not the specified condition is true (e.g., JP NZ, a16).

Additional Resources

Credits

Game Boy Resources

Things That Helped Me Build This Project