libc8
CHIP-8 utility library
instruction_format_t Struct Reference

Represents a valid instruction format. More...

#include <symbol.h>

Data Fields

Instruction cmd
 
uint16_t base
 
int pcount
 
Symbol ptype [3]
 
uint16_t pmask [3]
 

Detailed Description

Represents a valid instruction format.

instruction_t's are checked against instruction_format_t's to verify that they will produce valid instructions.

Parameters
cmdinstruction command
basebase hex value of command (without parameters)
pcountparameter count
ptypeparameter types
pmaskparameter masks (where to OR parameters to)

Field Documentation

◆ base

uint16_t base

◆ cmd

◆ pcount

int pcount

◆ pmask

uint16_t pmask[3]

◆ ptype

Symbol ptype[3]

The documentation for this struct was generated from the following file: