41 #define LC3_VAR extern
48 char*
strdup(
const char *);
51 #define LC3_WORD unsigned short
54 #define LC3_MEM_SIZE (1 << 16)
57 #define LC3_NUM_REGS 8
60 #define RETURN_ADDR_REG 7
int formBit
Definition: lc3.h:173
Defines the interface to symbol.c functions (do not modify)
void lc3_write_sym_table(FILE *sym_file, sym_table_t *symTab)
Definition: lc3.c:243
char * lc3_replace_suffix(char *file_name, char *new_suffix)
Definition: lc3.c:133
char * lc3_get_suffix(char *file_name)
Definition: lc3.c:117
bool lc3_file_has_suffix(const char *file_name, const char *suffix)
Definition: lc3.c:126
void lc3_read_sym_table(FILE *sym_file, sym_table_t *symTab)
Definition: lc3.c:215
void lc3_set_obj_file_mode(const char *name)
Definition: lc3.c:145
struct inst_format inst_format_t
LC3_inst_t * lc3_get_inst_info(opcode_t opcode)
Definition: lc3.c:93
opcode
Definition: lc3.h:66
bool lc3_get_address(sym_table_t *symTab, const char *token, int *value)
Definition: lc3.c:199
inst_format_t * lc3_get_inst_format(const char *name)
Definition: lc3.c:102
operand
Definition: lc3.h:112
struct LC3_inst LC3_inst_t
const char * lc3_get_operand_name(operand_t operand)
Definition: lc3.c:294
char * strdup(const char *)
const char * lc3_get_opcode_name(opcode_t op)
Definition: lc3.c:289
inst_format_t forms[2]
Definition: lc3.h:178
char lc3_escaped_char(char c)
Definition: lc3.c:183
format
Definition: lc3.h:140
void lc3_write_LC3_word(FILE *f, int value)
Definition: lc3.c:168
const char * lc3_get_format_name(format_t format)
Definition: lc3.c:312
int lc3_read_LC3_word(FILE *f)
Definition: lc3.c:149