3340 HW04 - CS-SE 3340.002 Computer Architecture Fall 2016...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS-SE 3340.002 Computer Architecture Fall 2016 Homework 4 Name: Convert the following 32-bit values to assembly code. If the instruction is a branch instruction, determine the address of the target using a starting of the file as 0x00400000. If the instruction is a jump type, determine the address of the target instruction. Identify any illegal or improperly formatted instruction. Address Instruction Assembly Language Instruction 00400000 04CF1ED8 Improperly formatted instruction 00400004 8DD3C318 lw $s3, 49944($t6) 00400008 2FFF21B5 sltiu $ra, $ra, 8629 0040000C BC812DE2 Improperly formatted instruction 00400010 1F0947BA bgtz $t8, 0x47BA 00400014 000000C0 sll $zero, $zero, 3 00400018 4981CFED cop2 0x181CFED 0040001C E3AD303B sc $t5, 0x303B($sp) 00400020 2B169CF5 slti $s6, $t8, 0x9CF5 00400024 0000065E ddiv $zero, $zero 00400028 80EEC363 lb $t6, 0xC363($a3) 0040002C C633C8C7 lwc1 $s3, 0xC8C7($s1) 00400030 AAB71AD1 swl $s7, 0x1AD1($s5) 00400034 E7D0207B swc1 $s0, 0x207B($fp) 00400038 38835C41 xori $v1, $a0, 0x5C41 0040003C 3F4F56E3 lui $t7, 0x56E3 00400040 BBF2AF57 swr $s2, 0xAF57($ra) 00400044 4400000E cop1 0x000000E 00400048 8977A311 lwl $s7, 0xA311($t3) 0040004C A531CA42 sh $s1, 0xCA42($t1) 00400050 44000002 cop1 0x0000002 00400054 C9DE86E7 lwc2 $fp, 0x86E7($t6)
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ 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