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

Represents an instruction. More...

#include <symbol.h>

Data Fields

int line
 Line number.
 
C8_InstructionIdentifier cmd
 Instruction command.
 
int pcount
 Parameter count.
 
C8_SymbolIdentifier ptype [3]
 Parameter types.
 
int p [3]
 Parameter values.
 
C8_InstructionFormatformat
 Corresponding instruction format.
 

Detailed Description

Represents an instruction.

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

Field Documentation

◆ cmd

Instruction command.

◆ format

Corresponding instruction format.

◆ line

int line

Line number.

◆ p

int p[3]

Parameter values.

◆ pcount

int pcount

Parameter count.

◆ ptype

Parameter types.


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