Question

In: Computer Science

Suppose I have a 32 bit register containing 0000AC12 in hex and I do a logical...

Suppose I have a 32 bit register containing 0000AC12 in hex and I do a logical shift >>2. What hex digits will result from the binary shift? Be sure to show all 32 bits in hex

Solutions

Expert Solution

Hexadecimal     Binary
    0           0000
    1           0001
    2           0010
    3           0011
    4           0100
    5           0101
    6           0110
    7           0111
    8           1000
    9           1001
    A           1010
    B           1011
    C           1100
    D           1101
    E           1110
    F           1111
Use this table to convert from hexadecimal to binary
Converting 0000AC12 to binary
0 => 0000
0 => 0000
0 => 0000
0 => 0000
A => 1010
C => 1100
1 => 0001
2 => 0010
So, in binary 0000AC12 is 00000000000000001010110000010010

logical shift >> 2, shifts this number to right by 2 bits
so, 00000000000000001010110000010010 becomes 00000000000000000010101100000100

Let's convert this back to hexadecimal
Converting 00000000000000000010101100000100 to hexadecimal
0000 => 0
0000 => 0
0000 => 0
0000 => 0
0010 => 2
1011 => B
0000 => 0
0100 => 4
So, in hexadecimal 00000000000000000010101100000100 is 00002B04
Answer: 00002B04

Related Solutions

1. Given the 8 bit hex number 0x5E, what smallest hex value would you have to...
1. Given the 8 bit hex number 0x5E, what smallest hex value would you have to add to set the Overflow flag? 2. Given the 8 bit hex number 0x6E, what smallest hex value would you have to add to set the Carry Flag? Please give detailed explanation on how to solve.
in verilog if i have a hex number how do i get a specific 4 bits?...
in verilog if i have a hex number how do i get a specific 4 bits? for exampe if i have a hex number 5055 how do i get the last four bits which would be 0101?
make 4 bit universal shift register in vhdl plz include the test bench. I will rate
make 4 bit universal shift register in vhdl plz include the test bench. I will rate
What consequences does moving from a 32-bit environment to a 64-bit environment have on programs, including...
What consequences does moving from a 32-bit environment to a 64-bit environment have on programs, including the operating system?
How do I covert a char from a sting that is made up of hex values...
How do I covert a char from a sting that is made up of hex values into a long int, without using istringstream and istring in c++?
Suppose that 32% of people have a dog, 27% of people have a cat, and 12%...
Suppose that 32% of people have a dog, 27% of people have a cat, and 12% have both. What is the probability that someone owns a dog but not a cat?
Imagine you have a spare desktop machine with an Intel Pentium IV 2.8 GHz (32-bit) CPU,...
Imagine you have a spare desktop machine with an Intel Pentium IV 2.8 GHz (32-bit) CPU, 2 GB RAM memory and 512 GB storage memory. This machine is connected to the internet using your home internet router. You would like to use this machine to host: i.a personal web server ii.a personal email server iii.a personal database server. How you would proceed to select and configure these servers? Your discussion must cover the following points: The name of the Linux...
I think I have a little bit of understanding of input impedance impedance, but please check...
I think I have a little bit of understanding of input impedance impedance, but please check my understanding, and also explain physically what output impedance and reactance is AND EXPLAIN YOUR TERMINOLOGY or use basic af terminology: Input impedance describes (I think) a voltage source, or something that produces an output voltage, and its impedance within it's own circuitry. In other words, say I have a function generator, something supposed to output voltage, and the input impedance would be the...
24. Suppose that you have a stock with an average (expected) return of 32% and a...
24. Suppose that you have a stock with an average (expected) return of 32% and a standard deviation of return of 16%. Please answer the following question (show your work in your uploaded document): What is the probability of getting a return less than zero? (Round to 4 decimals, like .0000 or 00.00%)
Suppose that 32% of the apples grown on a particular orchard have blemishes that make it...
Suppose that 32% of the apples grown on a particular orchard have blemishes that make it difficult for them to be sold at a market. If a market purchases a crate that contains 100 apples selected randomly from the orchard, answer each of the following. Find the mean and standard deviation for the number of blemished apples in the crate. Compute the probability of there being exactly 32 blemished apples in the crate. Would it be considered unusual for 40...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT