38 #define LC3_VAR extern
47 char*
strdup(
const char *);
50 #define LC3_WORD unsigned short
53 #define LC3_MEM_SIZE 65536
56 #define LC3_NUM_REGS 8
59 #define RETURN_ADDR_REG 7
int formBit
Definition: lc3.h:173
LC3_VAR int inHex
Definition: lc3.h:62
#define LC3_VAR
Definition: lc3.h:38
Defines the interface to symbol.c functions (do not modify)
void lc3_read_sym_table(FILE *sym_file)
void lc3_write_sym_table(FILE *sym_file)
struct inst_format inst_format_t
LC3_inst_t * lc3_get_inst_info(opcode_t opcode)
opcode
Definition: lc3.h:71
operand
Definition: lc3.h:115
int lc3_get_address(char *token, int *value)
struct LC3_inst LC3_inst_t
const char * lc3_get_format_name(operands_t format)
LC3_VAR sym_table_t * lc3_sym_tab
Definition: lc3.h:65
struct sym_table sym_table_t
Definition: symbol.h:43
const char * lc3_get_operand_name(operand_t operand)
char * strdup(const char *)
int lc3_get_int(char *token, int *value)
const char * lc3_get_opcode_name(opcode_t op)
inst_format_t forms[2]
Definition: lc3.h:175
char lc3_escaped_char(char c)
void lc3_write_LC3_word(FILE *f, int value)
int lc3_read_LC3_word(FILE *f)
operands
Definition: lc3.h:142