libc8
CHIP-8 utility library
Loading...
Searching...
No Matches
instruction.h File Reference
#include "../chip8.h"

Go to the source code of this file.

Functions

int c8_parse_instruction (C8 *c8)
 Execute the instruction at c8->pc
 

Detailed Description

Note
NOT EXPORTED

This file contains the declaration of the instruction parsing and execution functions for the CHIP-8 interpreter.

Function Documentation

◆ c8_parse_instruction()

int c8_parse_instruction ( C8 c8)

Execute the instruction at c8->pc

This function parses and executes the instruction at the current program counter.

If verbose flag is set, this will print the instruction to stdout as well.

Parameters
c8the C8 to execute the instruction from
Returns
amount to increase the program counter, or an exception code if an error occurs.