EE3220-Assignment-1-2016 - EE3220 Assignment 1 1 Why does a...

Info icon This preview shows page 1. Sign up to view the full content.

EE3220 Assignment 1 1. Why does a pipelined processor usually with a large number of registers? 2. State the difference of operand type between data processing instructions and other instructions. 3. With the aid of barrel shifter operations, use only addition and subtraction based instructions to compute 153*R1, 4. Given that: R0 := 0x4000, R2 := 0x6, R3 := 0x2; and the contents of a memory segment are shown below: Address Content +0 +1 +2 +3 3FFC 09 B3 02 AF 4000 7A 09 7B F1 4004 87 03 A4 F2 4008 76 8A 0F 11 400C 20 67 00 A6 Determine the contents of all the registers after executing the following instruction. Verify your answers with the simulator . ( Note: each instruction is executed according to the given conditions as above. ) i. LDR R1, [R0] ii. LDRSH R1, [R0, R2] iii. LDRB R1, [R0, #2] iv. LDR R1, [R0, R3]! v. LDRSB R1, [R0, R2] vi. LDRSB R1, [R0], R2 5. Given that: R1 :=0x6D0DA703, R0 := 0x4004, R2 := 0x6. Determine the address and the content being written into; and the contents of all the registers if changes occur after
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: executing the instruction given below. ( Note: each instruction is executed according to the given conditions as above. ) i. STRSB R1, [R0, R2] ii. STRB R1, [R0], R2 iii. STR R1, [R0, #2]! iv. STRS R1, [R0, R2]! v. STRH R1, [R0], #3 vi. STRSH R1, [R0], R2 6. Given a data array DAT1 with N 16-bit unsigned data, write an assembly language program to sort the in ascending order. 7. Given two data arrays, each contains N 16-bit signed numbers, write an assembly program to compute the products of each corresponding entry pair only when both numbers are of the same sign, i.e. P i = na i × nb i , only if na i and nb i are both positive or negative. For Questions 6 and 7, you MUST use simulator to verify your programs, otherwise they will NOT be graded. Capture the results shown in both the register and memory windows. The EmbestIDE software can be downloaded from my web link....
View Full Document

  • Fall '12
  • WHLau
  • Assembly Language, NBI, barrel shifter operations, data processing instructions

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern