Wright CEG 320 - Assembler Directives and the Symbol Table

Unformatted text preview:

Consider the assembler directives given below when answering the following questions. 1. Show the data in memory after the directives above have been assembled. 2. Based on your answers above, show the value of each label in the symbol table after the first pass of the assembler. 3. Based on your answers above, show the assembly code for each instruction below, as it appears after the second pass of the assembler. 3a. MOVE.W #INC,D1 3b. MOVE.L ARRAY,D3 3c. MOVE.L #MAX,A0 CEG 320/520: Computer Organization and Assembly Language ProgrammingFall, 2004In Class : Assembler Directives and the Symbol Table updated: 17-sep-04 1 ORG $0020002 MAX DC.W 5 3 INC EQU 1 4 ARRAY DS.L 2 Memory Address Contents (in hexadecimal) Label (if applicable) $002000 $002002 $002004 $002006 $002008 Label ValueMAX INC ARRAY4. Based on your answers above, give the instructions that would perform the operation described in each question. 4a. Move the address of ARRAY into address register A0. 4b. Move the value of MAX into data register D1. 4c. Move the value of INC into data register D1. 4d. Move the first element of ARRAY in data register D1. 5. Describe the problem with each of the following instructions, and give the correct version. 5a. MOVE.W INC, D1 5b. MOVE.W #ARRAY,A0 5c. MOVE.W


View Full Document

Wright CEG 320 - Assembler Directives and the Symbol Table

Download Assembler Directives and the Symbol Table
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 Assembler Directives and the Symbol Table 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 Assembler Directives and the Symbol Table 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?