3.8k views
3 votes
Given: the following MIPS machine code instructions expressed in hexadecimal: Partial Credit 1) 0x308a0001 Partial Credit 2) 0x11400003 01 4 ) Sought: Write the corresponding MIPS assembly instruction

User Penner
by
4.0k points

1 Answer

1 vote

Answer:

Check the explanation

Step-by-step explanation:

Please find the answer below::

Given

1)

Hex: 0x308a0001

Binary: 00110000100010100000000000000001

So instruction is : ANDI $t2 $a0 0x0001

2)

Hex: 0x11400003

Binary: 00010001010000000000000000000011

So instruction is: BEQ $t2 $zero 0x0003

4) hex : 0x00004820

Corresponding binary :: 00000000000000000100100000100000

So instruction is: ADD $t1 $zero $zero

User Ilan Lewin
by
4.7k points