Data Fields
inst_info Struct Reference

#include <lc3.h>

Data Fields

char * name [2]
 
opcode_t opcode
 
int opBit
 
inst_field_t format [2]
 

Detailed Description

This structure stores the information about a single instruction. See the usage in lc3.c where the information for each LC3 instruction is defined.

Field Documentation

inst_field_t inst_info::format[2]

primary/secondary parameter format

char* inst_info::name[2]

printable name(s) of instruction e.g. "ADD"

int inst_info::opBit
      -1 if instruction has only one format,

else bit that differentiates format. (e.g. bit 5 for ADD/AND)

opcode_t inst_info::opcode

opcode of this instruction


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