Find the 2s complement representation

Assignment Help Engineering Mathematics
Reference no: EM132117493

I have these questions for a homework assignment and have to show work. This works with MIPS coding language and is the class Introduction to Computer Architecture.

1. Find the 2's complement representation (in 32-bit hexadecimal) of the signed integer 52 (decimal).

2. Find the 2's complement representation (in 32-bit hexadecimal) of the signed integer -52 (decimal).

3. Convert 0Xfffffff3 (2's complement representation) into decimal.

4. Compile the following C code into MIPS code.

a). A[2]=g+A[1]-3, where g in $s1 and the base address of A in $s0.

b). for (i=0; i++; i<10) {A[i]=i}, where i in $s1 and the base address of A in $s0.

5. Given $t0=0x55555555 and $t1=0x12345678, what is the value of $t2 for the following sequence of instructions:

sll $t2, $t0, 4

or $t2, $t2, $t1

6. Given $t0=0xBEADFEED, what is the value of $t2 for the following sequence of instructions:

sll $t2, $t0, 4

andi $t2, $t2, -1

Reference no: EM132117493

Questions Cloud

Need the implementation figure in OMNet software : MN691 Research Methods and Project Design Assignment, Melbourne Institute of Technology, Australia. Need the implementation figure in OMNet++ software
Develop a formula for computing the effective access time : Consider a multi-layer associative memory (TLB) system where the entries of the page table are stored.
Lender of last resort to nation-states : Who is often seen as the lender of last resort to nation-states whose economies are in turmoil and currencies are losing value against those of other nations?
How people maintain health and how illness is caused : Present one theory or model within the field of public health which describes either how people maintain health and/or how illness is caused?
Find the 2s complement representation : Find the 2's complement representation (in 32-bit hexadecimal) of the signed integer 52 (decimal).
Calculate the speedups assuming the matrices grow : Calculate the speedups assuming the matrices grow to 100 by 100. Which are strong scaling and which are weak scaling in this exercise?
How a person health issues are handled : What role should culture play in how a person's health issues are handled? Is this demonstrated in the health system today?
Declare a string variable myname and assign your name to it : Declare an integer variable named numStates and assign a value of 50 to it. Declare a string variable myName and assign your name to it.
What are some safety concerns : While performing aircraft maintenance in a hangar, what are some safety concerns?

Reviews

Write a Review

Engineering Mathematics Questions & Answers

  Prime number theorem

Dirichlet series

  Proof of bolzano-weierstrass to prove the intermediate value

Every convergent sequence contains either an increasing, or a decreasing subsequence.

  Antisymmetric relations

How many relations on A are both symmetric and antisymmetric?

  Distributed random variables

Daily Airlines fies from Amsterdam to London every day. The price of a ticket for this extremely popular flight route is $75. The aircraft has a passenger capacity of 150.

  Prepare a system of equations

How much money will Dave and Jane raise for charity

  Managing ashland multicomm services

This question is asking you to compare the likelihood of your getting 4 or more subscribers in a sample of 50 when the probability of a subscription has risen from 0.02 to 0.06.]  Talk about the comparison of probabilities in your explanation.

  Skew-symmetric matrices

Skew-symmetric matrices

  Type of taxes and rates in spokane wa

Describe the different type of taxes and their rates in Spokane WA.

  Stratified random sample

Suppose that in the four player game, the person who rolls the smallest number pays $5.00 to the person who rolls the largest number. Calculate each player's expected gain after one round.

  Find the probability density function

Find the probability density function.

  Develop a new linear programming for an aggregate production

Linear programming applied to Aggregate Production Planning of Flat Screen Monitor

  Discrete-time model for an economy

Discrete-time model for an economy

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd