libc8
CHIP-8 utility library
Loading...
Searching...
No Matches
C8_InstructionFormat Struct Reference

Represents a valid instruction format. More...

#include <symbol.h>

Data Fields

C8_InstructionIdentifier cmd
 Instruction command.
 
uint16_t base
 Base hex value of command (without parameters)
 
int pcount
 Parameter count.
 
C8_SymbolIdentifier ptype [3]
 Parameter types.
 
uint16_t pmask [3]
 Parameter masks (where to OR parameters to)
 

Detailed Description

Represents a valid instruction format.

C8_Instructions are checked against C8_InstructionFormats to verify that they will produce valid instructions.

Field Documentation

◆ base

uint16_t base

Base hex value of command (without parameters)

◆ cmd

Instruction command.

◆ pcount

int pcount

Parameter count.

◆ pmask

uint16_t pmask[3]

Parameter masks (where to OR parameters to)

◆ ptype

Parameter types.


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