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.

subu $t3,$v1,$s2

Homework Answers

Answer #1
subu $t3,$v1,$s2

1)
subu $t3,$v1,$s2
This is an R-type instruction

2)
opcode  ->  000000
rs      ->  $v1 ->  3
rt      ->  $s2 ->  18
rd      ->  $t3 ->  11
shamt/shift ->  0
funct   ->  SUBU    ->  19

3)
3 in binary is 00011
18 in binary is 10010
11 in binary is 01011
19 in binary is 100011
so, instruction in binary is 000000    00011  10010  01011  00000  100011
Instruction in binary:  00000000011100100101100000100011

4)
Converting 00000000011100100101100000100011 to hexadecimal
0000 => 0
0000 => 0
0111 => 7
0010 => 2
0101 => 5
1000 => 8
0010 => 2
0011 => 3
So, in hexadecimal 00000000011100100101100000100011 is 0x00725823
Instruction in hexadecimal: 0x00725823
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 ori $t1,$a2,7
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...
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...
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...
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:...
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...
Factorial Assignment For the following, answer these questions 1. Identify the design (e.g., 2 X 2...
Factorial Assignment For the following, answer these questions 1. Identify the design (e.g., 2 X 2 factorial). 2. Identify the total number of conditions. 3. Identify the independent variable(s) and levels (this could include PVs). 4. Is this an IV X PV design? If so, identify the participant variable(s). 5. Is this a repeated measures (within subject) design? If so, identify the repeated variable(s). And/Or 6. Identify the dependent variable(s). A researcher investigated the effect of a child's hair length...
Indicate the effect of each of the following transactions on (1) the current ratio, (2) working...
Indicate the effect of each of the following transactions on (1) the current ratio, (2) working capital, (3) stockholders’ equity, (4) book value per share of common stock, and (5) retained earnings. Assume that the current ratio is greater than 1:1. (Indicate the effect of each transactions by selecting "+" for increase, "–" for decrease, and "NC" for no change.) Collected account receivable. Wrote off account receivable. Converted a short-term note payable to a long-term note payable. Purchased inventory on...