Question: 2. The instruction lw $7,-40($8) will read the memory data at $8-40 and update $7 with this value. In the figure in the next slide,

 2. The instruction lw $7,-40($8) will read the memory data at$8-40 and update $7 with this value. In the figure in the

2. The instruction lw $7,-40($8) will read the memory data at $8-40 and update $7 with this value. In the figure in the next slide, what's the value of A-K? Assume $7 is 50 and $8 is 120. Note that the numbers (40, 50, and 120 are decimal numbers.) Note also that the 32-bit representation of this "lw instruction can be derived as follows: 6-bit opcode is 100011, 5-bit rs is 01000 (8), 5-bit rt is 00111 (7), and 16-bit offset (-40) is 1111 1111 1101 1000 because 40 is 0000 0000 0010 1000. Therefore, the lw instruction is 1000 1101 0000 0111 1111 1111 1101 1000 or Ox8d07 ffd8 0 - 2 Add ALU result Add Shift left 2 His Branch Instruction (31-28 Men Control BLOG . US Reg B Instruction [25-211 C Instruction (20-10 Read address PC Read Read register1 H Read data 1 register 2 Registers Read! I Write data 2 register Zo Instruction [31-01 G ALU ALU result K Address Read data Instruction memory M u X D Instruction (15-11) J M Write data Date memory Write data E Instruction [15-01 18 F Sign extend ALU control Instruction 15-01

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!