The Chip-8 performs a number of tasks every step. This includes fetching the next instruction (word_t fetch(Chip8VM_t * vm)), decoding and dispatching that instruction (void decode(Chip8VM_t * vm, word_t opcode)), and performing additional updates to the vm state (void update(Chip8VM_t * vm)). All of these tasks are performed by the void step(Chip8VM_t * vm); function. All of these functions are declared in includes/chip8.h and defined in src/chip8.c.
For this issue implement the step, fetch, and update functions. The decode function is handled by a different GitHub issue.
The Chip-8 performs a number of tasks every step. This includes fetching the next instruction (
word_t fetch(Chip8VM_t * vm)
), decoding and dispatching that instruction (void decode(Chip8VM_t * vm, word_t opcode)
), and performing additional updates to the vm state (void update(Chip8VM_t * vm)
). All of these tasks are performed by thevoid step(Chip8VM_t * vm);
function. All of these functions are declared inincludes/chip8.h
and defined insrc/chip8.c
.For this issue implement the
step
,fetch
, andupdate functions
. Thedecode
function is handled by a different GitHub issue.