Wright CEG 320 - CEG 320 Hand Assembly of Instructions

Unformatted text preview:

1. Convert the following assembly language instruction to machine code. Copy the undecoded opcode word from Appendix C into the first binary row to aid in assembly. 1a. MOVE.B D0, D1 2. Convert the following assembly language instruction to machine code. Include the opcode word as well as any necessary extension words. Copy the undecoded opcode word from Appendix C into the first binary row to aid in assembly. 2a. ADD.W $002002, D5 Instruction Opcode and Extension Words in Hex (you may not need all of the space provided): 2b. MOVE.L $002000,$002004 Instruction Opcode and Extension Words in Hex (you may not need all of the space provided): CEG 320/520: Computer Organization and Assembly Language ProgrammingFall, 2004In Class : Hand Assembly of Instructions updated: 4-oct-04AppCOpCodeAppCOpCodeOpCodeExtWord1ExtWord2ExtWord3ExtWord4AppCOpCodeOpCodeExtWord1ExtWord2ExtWord3ExtWord4Instruction Addresses Fill in the memory address and number of extension words for each instruction or directive: Symbol Table Fill in the value for the labels in the symbol table after the first pass of the assembler. Line Address Label Instruction # of Ext Words 1 ORG $001000 2 MOVE.W NUM, D0 3 LEA ARRAY, A04 LOOP SUBQ.W #1, D0 5 BLT REST 6 ADD.W (A0)+, D0 7 BRA LOOP 8 REST MOVE.W D0, SUM 9 ORG $002000 10 ZERO EQU 0 11 ARRAY DC.W 3, 10, -4 12 NUM DC.W 3 13 SUM DS.W 1 Symbol Value Type Line ReferencesARRAY Rel 11 3LOOP Rel 4 7NUM Rel 12 2REST Rel 8 5SUM Rel 13 8ZERO Abs


View Full Document

Wright CEG 320 - CEG 320 Hand Assembly of Instructions

Download CEG 320 Hand Assembly of Instructions
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 Hand Assembly of Instructions 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 Hand Assembly of Instructions 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?