Wright CEG 320 - CEG 320 Directives And Symbol Table-hw

Unformatted text preview:

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

Wright CEG 320 - CEG 320 Directives And Symbol Table-hw

Download CEG 320 Directives And Symbol Table-hw
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view CEG 320 Directives And Symbol Table-hw and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view CEG 320 Directives And Symbol Table-hw 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?