Closed ejrbuss closed 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
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 inincludes/chip8.h
and defined insrc/chip8.c
should perform this task.