Question

Encode the following instruction (1) identify the instruction format that will be used (2) indicate the...

Encode the following instruction

(1) identify the instruction format that will be used

(2) indicate the values of each of the fields for that format in decimal

(3) convert each of these decimal val- ues to binary

(4) represent the entire instruction as one hexadecimal value

ori $t1,$a2,7

Homework Answers

Answer #1

ori $t1,$a2,7

1)
this is an I-type instruction
OPCODE rs rt immediate

2)
OPCODE = ori = 13
rs = $a2 = 6
rt = $t1 = 9
immediate = 7

3)
13 in binary is 001101
6 in binary is 00110
9 in binary is 01001
7 in binary is 0000000000000111

so, instruction is 00110100110010010000000000000111

4)
Converting 00110100110010010000000000000111 to hexadecimal
0011 => 3
0100 => 4
1100 => C
1001 => 9
0000 => 0
0000 => 0
0000 => 0
0111 => 7
So, in hexadecimal 00110100110010010000000000000111 is 0x34C90007
Instruction in hexadecimal is 0x34C90007


Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Encode the following instruction (1) identify the instruction format that will be used, (2) indicate the...
Encode the following instruction (1) identify the instruction format that will be used, (2) indicate the values of each of the fields for that format in decimal, (3) convert each of these decimal val- ues to binary 4) represent the entire instruction as one hexadecimal value. subu $t3,$v1,$s2
Question 1. Answer the following questions on MIPS Instruction Set. a) Show the minimal sequence of...
Question 1. Answer the following questions on MIPS Instruction Set. a) Show the minimal sequence of MIPS instruction for the following pseudocode segment: A[3] = A[10] + B; Assume that B corresponds to register $t3 and the array A has a base address of 1000C41016 which is required to be loaded to register $t0 in your code. Provide comments for each line of your MIPS instruction. b) Assume that Loop starts at memory location 0xC010. Provide a) instruction format of...
EE 263 Homework Assignment 1    Perform the following conversions: Convert 51 (decimal) to binary and...
EE 263 Homework Assignment 1    Perform the following conversions: Convert 51 (decimal) to binary and to hex Convert 0xD1 (hexadecimal) to binary and to decimal Convert 0b11001001 (binary) to hex and to decimal Find the 2’s complement of the following 4-bit numbers 1101 0101 Perform the following 4-bit unsigned operations. For each, indicate the 4-bit result and the carry bit, and indicate if the answer is correct or not. 5 + 8 2 + 12 13 – 7 4...
2 Convert each of the following octal numbers to 10-bit binary, hexadecimal, and decimal. Show your...
2 Convert each of the following octal numbers to 10-bit binary, hexadecimal, and decimal. Show your work. (a) 368 (b) 7568 3 Convert the following binary values into Decimal, Octal and hexadecimal. Show your work. (a) 111010101011112 (b) 1010111011001102 (c) 1011101010001112 (d) 1111101011102 4 Convert the following hexadecimal numbers to 16-bit binary and decimal numbers. Show your work. (a) FE9816 (b) FCAD16 (c) B00C16 (d) FEDF16 5 Perform the addition on the following unsigned binary numbers. Indicate whether or not...
Find the internal representation of the following decimal number in the Single Precision Floating Point format...
Find the internal representation of the following decimal number in the Single Precision Floating Point format of the value: -17.6 Non-terminating fractions should be carried out 6 places. You will show the different steps involved in this transformation by filling out the fields below. The value 17 in binary is ___ 2 (no leading or trailing zeroes). The value .6 in binary is ____ 2 (complete to 6 places) Normalized fraction: 1.____ 2 x 2Exponent. Exponent=_____. Biased Exponent in Binary:...
This is a homework assignment for Computer Architecture and some question use MIPS Assembly language. 1.    ...
This is a homework assignment for Computer Architecture and some question use MIPS Assembly language. 1.     In the following MIPS assembly code, translate all the instructions to their corresponding machine code in hexadecimal format. This code is stored in the memory from address 0x1fff0000. Loop: sw $t1, 4($s0)        addi $t1, $t1, -1    sll $t1, $t1, 2        bne $t1, $s5, Exit    addi $s0, $s0, 4          j Loop Exit: … 2.     Find the MIPS...
Question 1: A. Convert the following numbers to their decimal representation. Show your work. 1. 100110112...
Question 1: A. Convert the following numbers to their decimal representation. Show your work. 1. 100110112 =
 2. 4567 =
 3. 38A16 = 4. 22145 = B. Convert the following numbers to their binary representation: 1. 6910 =
 2. 48510=
 3. 6D1A16 = C. Convert the following numbers to their hexadecimal representation: 1. 11010112 =
 2. 89510 = Question 2: Solve the following, do all calculation in the given base. Show your work.
Example the Pep/9 system contains the following four hexadecimal values register A: 25B6 register X: AE20...
Example the Pep/9 system contains the following four hexadecimal values register A: 25B6 register X: AE20 Mem[091D]: 0FF0 Mem[0A71]: 301D If these are the values before each of the following instructions executes, indicate which of these values is changed when each statement is executed, and show the new value. If a register or a memory location shown above is unchanged by the instruction, don't show its contents; only show the item that changed and what the new 16-bit value of...
Pick a company (Coffee Shop) do the following: 1. Describe the business 2. Identify at least...
Pick a company (Coffee Shop) do the following: 1. Describe the business 2. Identify at least 4 data marts, describe the analytic or business functions they would support, and identify what data they will need, and where this data will come from. Include at least 10 fields for each data mart. No data mart should pull data from only one source system.
Complete the following chart. For each age range, identify and describe 2-3 changes or characteristics in...
Complete the following chart. For each age range, identify and describe 2-3 changes or characteristics in physical, cognitive, socioemotional, and moral development. Additionally, for each age range, identify one toy or activity that would be most appropriate for this age, and briefly explain why. NOTE: You must write in complete sentences. Make sure that you define any terms used (for example, don't just write: "They have theory of mind." - you must explain what Theory of Mind is if you...