Unformatted text preview:

CEG 320/520: Computer Organization and Assembly Language Programming Fall, 2004 Homework: Intro to Assembly Language and Addressing Modes Addressing Modes Consider the following initial register and memory contents when determining the register and memory contents after each instruction has been executed.Registers:D1: $8765 4321 A1: $0000 2004Memory:$002000: $ABCD$002002: $1234$002004: $5678$002006: $EF00 1. reset; MOVE.L #$002000, D1 Source Addressing Mode: EffAdd: $002000: D1: 4. reset; MOVE.W -2(A1), D1 Source Addressing Mode: EffAdd: D1: A1: 7. reset; MOVE.W (A1)+, D1 Source Addressing Mode: EffAdd: D1: A1: 2. reset; MOVE.W (A1), D1 Source Addressing Mode: EffAdd: D1: A1: 5. reset; MOVE.W -(A1), D1 Source Addressing Mode: EffAdd: D1: A1: 8. reset; MOVE.B (A1)+, D1 Source Addressing Mode: EffAdd: D1: A1: 3. reset; MOVE.B (A1), D1 Source Addressing Mode: EffAdd: D1: A1: 6. reset; MOVE.W A1, D1 Source Addressing Mode: EffAdd: D1: A1: 9. reset; MOVE.L $002002, D1 Source Addressing Mode: EffAdd: $002002: D1:Homework: Intro to Assembly Language and Addressing Modes Register Transfer Notation (RTN) Consider the contents of the registers and memory above when answering the following question. 2. Give the RTN (Register Transfer Notation) for each of the following instructions and show the new value in all affected registers. Register Contents After All Instructions Have Been Executed Registers D0 $0000 0040D1 $0000 1020D2 $0000 01A0D3 $0000 0016D4 $0000 1000Memory$001000 $0015$001002 $1F00$001004 $0020$001006 $1010$001008 $0000Line InstructionsRegister Transfer Notation New Contents of Affected Registers1 MOVE.W $001002, D0 2 MOVE.B D1, D0 3 ADD.W $001006, D1 4 SUB.W D4, D1 5 SUB.W D3, D1 Registers D0 D1 D2 D3


View Full Document
Download CEG 320 Homework
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 Homework 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 Homework 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?