libc8
CHIP-8 utility library
instruction_t Struct Reference

Represents an instruction. More...

#include <symbol.h>

Data Fields

int line
 
Instruction cmd
 
int pcount
 
Symbol ptype [3]
 
int p [3]
 
instruction_format_tformat
 

Detailed Description

Represents an instruction.

During the second pass, this structure is used to verify the instruction's validity and generate the bytecode.

Parameters
lineline number
cmdinstruction command
pcountparameter count
ptypeparameter types
pparameter values
formatcorresponding instruction_format_t (if valid)

Field Documentation

◆ cmd

◆ format

◆ line

int line

◆ p

int p[3]

◆ pcount

int pcount

◆ ptype

Symbol ptype[3]

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