Pertanyaan

Perhatikan dan cocokanlah nilai opcode dengan jenis instruksi yang sesuai pada arsitektur MIPS berikut ini: Opcode Instruksi 1. 000000_(2)(0_(10)) a. Load 2. 100011_(2)(35_(10)) b. R-Type 3. 101011_(2)(43_(10)) c. Branch 4. 000100_(2)(4_(10)) d. Store Manakah hasil pencocokan yang tepat dari daftar yang ditampilkan tersebut? a. 1-a ; 2-b ; 3-c ; 4-d . b. 1-b ; 2-a ; 3-d ; 4-c . c. 1-d ; 2-c ; 3-b ; 4-a . d. 1-b ; 2-a ; 3-c ; 4-d . e. 1-b ; 2-d ; 3-a 4-c .

Solusi

Terverifikasi Ahli
4.1 (354 Suara)
Raman master · Tutor selama 5 tahun

Jawaban

### b.

Penjelasan

To solve this question, we need to match the given opcodes with their corresponding MIPS instruction types. The MIPS architecture uses specific opcode values to represent different types of instructions. Let us analyze each opcode and its corresponding instruction type.## Step 1: Analyze the opcode ` `### In MIPS, the opcode `000000₂` (decimal 0) is reserved for **R-Type instructions**. These instructions use the function field to determine the specific operation. Therefore, ` ` corresponds to **R-Type**.## Step 2: Analyze the opcode ` `### The opcode `100011₂` (decimal 35) is used for the **Load Word (LW)** instruction in MIPS. This instruction loads data from memory into a register. Therefore, ` ` corresponds to **Load**.## Step 3: Analyze the opcode ` `### The opcode `101011₂` (decimal 43) is used for the **Store Word (SW)** instruction in MIPS. This instruction stores data from a register into memory. Therefore, ` ` corresponds to **Store**.## Step 4: Analyze the opcode ` `### The opcode `000100₂` (decimal 4) is used for the **Branch on Equal (BEQ)** instruction in MIPS. This instruction performs a conditional branch based on whether two registers are equal. Therefore, ` ` corresponds to **Branch**.## Step 5: Match the opcodes with the instructions### Based on the analysis above, the correct matching is:1. ` ` → **R-Type**2. ` ` → **Load**3. ` ` → **Store**4. ` ` → **Branch**This matches option **b**: ` `.