I Accidentally Wrote an Emulator (Part 2)

In the previous post I mentioned how opcodes are decoded into groups using bitwise operators. Now we re going to expand upon that to look at how to fetch, decode and execute Z80 opcodes. The code for the emulator can be found on my Git here. If you look at the Decoding Z80 Opcodes guide you can see that it lends itself to look-up tables, and if you compare the document with the tables in z80.h,…