Generating a Symbol Table
Given the following assembly language program, fill out the symbol table. Note: make sure to fill out the table in the same order as the assembler would, i.e. starting from top to bottom of the assembly program.
Program:
.ORIG x3000
LD R0, VAL1
LD R1, VAL2
LEA R7, RESULT
LEA R4, INPUT
AND R3, R3, #0
TOP LDR R2, R4, #0
BRz DONE
AND R5, R2, R1
ADD R5, R5, R0
STR R5, R7, #0
ADD R7, R7, #1
ADD R4, R4, #1
BRnzp TOP
DONE STR R3, R7, #0
HALT
INPUT .STRINGZ "In the Court of the Crimson King"
VAL1 .FILL x0005
VAL2 .FILL x002F
RESULT .BLKW #50
.END
Label Address (in hex)
x
x
x
x
x
x
Can anyone do this and have an explanation on how to do it. I missed this day of class and can't find any examples online that really help my grasp of this at all. Just as a heads up on the question there are blanks under the Label and address portions and I will need both.