Wright CEG 320 - CEG 320 Intro to Assembly Language and Addressing Modes

Unformatted text preview:

Addressing Modes CEG 320/520: Computer Organization and Assembly Language ProgrammingFall, 2004In Class: Intro to Assembly Language and Addressing Modesupdated:9-12-04Consider the following initial register and memory contents when determining the register and memory contents after each instruction has been executed. Registers:D1: $0000 0000A0: $0000 2002Memory:$002000: $1234$002002: $5678$002004: $ABCD$002006: $EF00 1. reset; MOVE.W $002004, D1 Source Addressing Mode: EffAdd: $002004: D1: 4. reset; MOVE.W 4(A0), D1 Source Addressing Mode: EffAdd: D1: A0: 7. reset; MOVE.W (A0)+, D1 Source Addressing Mode: EffAdd: D1: A0: 2. reset; MOVE.W (A0), D1 Source Addressing Mode: EffAdd: D1: A0: 5. reset; MOVE.W -(A0), D1 Source Addressing Mode: EffAdd: D1: A0: 8. reset; MOVE.L (A0)+, D1 Source Addressing Mode: EffAdd: D1: A0: 3. reset; MOVE.B (A0), D1 Source Addressing Mode: EffAdd: D1: A0: 6. reset; MOVE.W A0, D1 Source Addressing Mode: EffAdd: D1: A0: 9. reset; MOVE.L #$002002, D1 Source Addressing Mode: EffAdd: $002002: D1:In Class: Intro to Assembly Language and Addressing Modes Big Endian vs Little Endian in Memory and Registers Consider the following initial register and memory contents when determining the register and memory contents after each instruction has been executed.Registers:D0: $0000 0000D1: $1234 5678 Memory:$002000: $1234$002002: $5678 1. reset; MOVE.B $002000, D0 D0: 3. reset; MOVE.W $002000, D0 D0: 5. reset; MOVE.L $002000, D0 D0: 2. reset; MOVE.B D1, D0 D0: 4. reset; MOVE.W D1, D0 D0: 6. reset; MOVE.L D1, D0


View Full Document

Wright CEG 320 - CEG 320 Intro to Assembly Language and Addressing Modes

Download CEG 320 Intro to Assembly Language and Addressing Modes
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 Intro to Assembly Language and Addressing Modes 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 Intro to Assembly Language and Addressing Modes 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?