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

Go to the source code of this file.

Functions

int parse_instruction (c8_t *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

◆ parse_instruction()

int parse_instruction ( c8_t 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_t to execute the instruction from
Returns
amount to increase the program counter, or an exception code if an error occurs.