My Project
|
#include <assembler.h>
Data Fields | |
line_info_t * | next |
int | lineNum |
int | address |
opcode_t | opcode |
inst_format_t * | format |
int | DR |
int | SR1 |
int | SR2 |
int | immediate |
char * | reference |
Structure containing all the values that might be found in a source line. The contents of this structure are set during pass_one()
and used to build the 16 bit instruction during pass_two
. This is only used in assembler.c
, but is declared here for documentation purposes.
int line_info::address |
LC3 address of instruction
int line_info::DR |
DR or SR, if present (bits 11..9)
inst_format_t* line_info::format |
name/operands/prototype for instruction
int line_info::immediate |
Immediate value, if present
int line_info::lineNum |
Line number in source code
line_info_t* line_info::next |
Allow for linked list
opcode_t line_info::opcode |
opcode of instruction (bits 15..13)
char* line_info::reference |
Label referenced by instruction, if any
int line_info::SR1 |
SR1 or BaseR, if present (bits 8..6)
int line_info::SR2 |
SR2, if present (bits 2..0)