My Project
|
#include <assembler.h>
Data Fields | |
line_info_t * | next |
int | lineNum |
int | address |
int | machineCode |
opcode_t | opcode |
int | form |
int | reg1 |
int | reg2 |
int | reg3 |
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 machineCode
during pass_two
int line_info::address |
LC3 address of instruction
int line_info::form |
which form of instruction (ADD/ADDI)
int line_info::immediate |
Immediate value if present
int line_info::lineNum |
Line number in source code
int line_info::machineCode |
The 16 bit LC3 instruction
line_info_t* line_info::next |
Allow for linked list
opcode_t line_info::opcode |
opcode of instruction
char* line_info::reference |
Label referenced by instruction, if any
int line_info::reg1 |
DR or SR, if present
int line_info::reg2 |
SR1 or BaseR, if present
int line_info::reg3 |
SR2, if present