awiggs / chip-gr8

Chip-Gr8
http://chipgr8.io
MIT License
4 stars 1 forks source link

Chip-8 Decode #10

Closed ejrbuss closed 5 years ago

ejrbuss commented 5 years ago

The Chip-8 emulator needs to decode instructions and call the appropriate operation function. This can be done using a variety of techniques (switch case, lookup table, etc.) The function void decode(Chip8VM_t * vm, word_t opcode) declared in includes/chip8.h and defined in src/chip8.c should perform this task.

john-curry commented 5 years ago

Implemented a decode method and an evaluation method. Decode decides what instruction is being called and and evaluate gets the registers and values from the instruction. It then calls the appropriate method in ops.c