Question: Exercise 2.37 This exercise explores the differences between the MIPS and x86 instruction sets. The following table contains x86 assembly code. a. mov edx, [esi+4*ebx]

Exercise 2.37 This exercise explores the differences between the MIPS and x86 instruction sets.

The following table contains x86 assembly code.

a. mov edx, [esi+4*ebx]

b. START: mov ax, 00101100b mov cx, 00000011b mov bx, 11110000b and ax, bx or ax, cx 2.37.1 [10] <2.17> Write pseudo code for the given routine.

2.37.2 [10] <2.17> What is the equivalent MIPS for the given routine?

The following table contains x86 assembly instructions.

a. mov edx, [esi+4*ebx]

b. add eax, 0x12345678 2.37.3 [5] <2.17> For each assembly instruction, show the size of each of the bit fi elds that represent the instruction. Treat the label MY_FUNCTION as a 32-bit constant.

2.37.4 [10] <2.17> Write equivalent MIPS assembly statements.

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 Computer Organization And Design Questions!