The Symbol Table 1. Consider the following assembler directives when answering the following questions: a. What is the the value of VAR1 in the symbol table? b. What is the value of ARRAY1 in the symbol table? c. What is the value of COUNT in the symbol table? d. What is the value of VAR2 in the symbol table? e. What does the affected memory look like, starting at address $002000? CEG 320/520: Computer Organization and Assembly Language ProgrammingFall, 2004Homework: Assembler Directives and the Symbol Tableupdated 9-13-04 ORG $002000VAR1 DC.W 35ARRAY1 DS.W 3COUNT EQU 5VAR2 DC.L 20Address Contents$002000 $002002 $002004 $002006 $002008 $00200A $00200CHomework: Assembler Directives and the Symbol Table Consider the assembler directives on the previous page and your answers to the previous questions when answering the following questions. Assume that D1 was cleared before each instruction. 2. MOVE.W VAR1, D1 3. MOVE.L #ARRAY1, D1 4. MOVE.L VAR2, D1 5. MOVE.L #VAR2, D1 6. MOVE.W #COUNT, D1 a. After the second pass of the assembler, what does the above instruction look like (in assembly code)? b. What are the contents of D1 after the above instruction is executed? D1: a. After the second pass of the assembler, what does the above instruction look like (in assembly code)? b. What are the contents of D1 after the above instruction is executed? D1: a. After the second pass of the assembler, what does the above instruction look like (in assembly code)? b. What are the contents of D1 after the above instruction is executed? D1: a. After the second pass of the assembler, what does the above instruction look like (in assembly code)? b. What are the contents of D1 after the above instruction is executed? D1: a. After the second pass of the assembler, what does the above instruction look like (in assembly code)? b. What are the contents of D1 after the above instruction is executed?
View Full Document