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
bool lc3_get_int(const char *token, int *value)
Definition: lc3.c:182
int formBit
Definition: lc3.h:176
#define LC3_VAR
Definition: lc3.h:41
Defines the interface to symbol.c functions (do not modify)
void lc3_read_sym_table(FILE *sym_file)
Definition: lc3.c:252
char * lc3_replace_suffix(char *file_name, char *new_suffix)
Definition: lc3.c:116
void lc3_write_sym_table(FILE *sym_file)
Definition: lc3.c:280
char * lc3_get_suffix(char *file_name)
Definition: lc3.c:100
bool lc3_file_has_suffix(const char *file_name, const char *suffix)
Definition: lc3.c:109
void lc3_set_obj_file_mode(const char *name)
Definition: lc3.c:128
struct inst_format inst_format_t
LC3_inst_t * lc3_get_inst_info(opcode_t opcode)
Definition: lc3.c:91
opcode
Definition: lc3.h:69
operand
Definition: lc3.h:115
struct LC3_inst LC3_inst_t
LC3_VAR sym_table_t * lc3_sym_tab
Definition: lc3.h:63
const char * lc3_get_operand_name(operand_t operand)
Definition: lc3.c:331
char * strdup(const char *)
const char * lc3_get_opcode_name(opcode_t op)
Definition: lc3.c:326
inst_format_t forms[2]
Definition: lc3.h:181
bool lc3_get_address(const char *token, int *value)
Definition: lc3.c:236
char lc3_escaped_char(char c)
Definition: lc3.c:166
format
Definition: lc3.h:143
void lc3_write_LC3_word(FILE *f, int value)
Definition: lc3.c:151
const char * lc3_get_format_name(format_t format)
Definition: lc3.c:349
int lc3_read_LC3_word(FILE *f)
Definition: lc3.c:132