The fol lowing code segment is executed The memory...

This preview shows page 1 - 2 out of 2 pages.

CSE/EEE 230 Spring 2017 Exercise 2 PIN ________ Name ________________________ 1. The fol lowing code segment is executed. The memory contents are marked as “Original Memory” and “Final Memory”. In addition, the contents of the registers are shown. You are to hand execute the code and enter the ending values in the memory locations and in the registers in the tables below. Be sure to show the values as 8 hexadecimal numbers (such as 0x00000000 ). lui $s0, 0x1001 addi $s0, $s0, 4 lw $s1,8($s0) lw $s2, 0($s0) lw $s3, -4($s0) sw $s2, 4($s0) sw $s3, 8($s0) sw $s1, -4($s0) sw $s0, 0($s0) Original memory Memory Address Starting value Ending value 0x1001000C 0x00000012 0x000000A2 0x10010008 0x0000001F 0x00000054 0x10010004 0x00000054 0x10010004 0x10010000 0x000000A2 0x0000001F Registers Register Ending value $s0 0x10010004 $s1 0x0000001F $s2 0x00000054 $s3 0x000000A2
2. Use the data segment below for this question.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture