Question

What will be the output when the computer performs arithmetic left shift operation on the bit...

  1. What will be the output when the computer performs arithmetic left shift operation on the bit pattern 11010101 which is stored in two’s complement format?

Verify that if you multiply the original number in decimal by 2 you get your final answer in decimal. Show your work?

Homework Answers

Answer #1

SOLUTION-

Given input is 11010101 which is in 2's complement so take 2's complement of this input to get original input so scan input from right to left upto first 1 then change 0 to 1 and 1 to 0 so we get 00101011 which decimal equivalent 43.


Given input is 11010101 here as per instructions given we have to perform arithmetic shift left for that shift all bit 1 position left so we have empty space at LSB position put 0 at LSB so result is 10101010 which is in 2's complement so take 2's complement of this input to get original input so scan input from right to left upto first 1 then change 0 to 1 and 1 to 0 so we get 01010110 which decimal equivalent 86 which is multiply original number by 2 in decimal.


Thus when we perform arithmetic shift left then it's result in decimal is multiply the original number in decimal by 2.


IF YOU HAVE ANY DOUBT PLEASE COMMENT DOWN BELOW I WILL SOLVE IT FOR YOU:)
----------------PLEASE RATE THE ANSWER-----------THANK YOU!!!!!!!!----------

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
4)What will be the output when the computer performs arithmetic left shift operation on the bit...
4)What will be the output when the computer performs arithmetic left shift operation on the bit pattern11010101 which is stored in two’s complement format?Verify that if you multiply the original number in decimal by 2 you get your final answer in decimal. Show your work?
Consider the number below, which is stored inside a computer which uses 16-bit 2’s complement base...
Consider the number below, which is stored inside a computer which uses 16-bit 2’s complement base 2 representation. 1101011001110101 (a) Is this number negative? Why, or why not? (b) Show the resulting value (“bit pattern”) after apply the 2’s complement negation operation to the given value. Is the resulting 2’s complement value (“bit pattern”) a negative number? Explain your answer.
6)Two integers A and B are stored in two’s complement format. Show how B is subtracted...
6)Two integers A and B are stored in two’s complement format. Show how B is subtracted from A. (-23) - (+13) =(-36). Hint: Let A = (-23) and B = (+13) and show how to do (A – B) in two’s complement format. Use 8-bits torepresent each number in binary.Verify that your final answer in binary is equal to -36 in decimal. Show your work?
Convert the hexadecimal number DEADBEEF to binary. Convert the following decimal number to binary: a) 356...
Convert the hexadecimal number DEADBEEF to binary. Convert the following decimal number to binary: a) 356              b) 658 What decimal value does the 8-bit binary number 10011110 represent if it is on a computer using two’s complement representation? What decimal value does the 8-bit binary number 10110100 have if it is on a computer using two’s complement representation? please show your work for question number 4. thank you.
6. What decimal number does the bit pattern 0xBF800000 represent if it is: A two's complement...
6. What decimal number does the bit pattern 0xBF800000 represent if it is: A two's complement integer An unsigned integer A floating point number assuming the IEE 754 single precision format PLEASE EXPLAIN AND SHOW WORK
Adder Start out by picking 2 positive six bit binary numbers that are less than 3210,...
Adder Start out by picking 2 positive six bit binary numbers that are less than 3210, written in 2's complement notation. The eventual goal is to add these two numbers. 1) Look at the LSB bit of the numbers, and using logic gates (NANDs, NORs, etc.) design a circuit that correctly gives the right output for any possible combination of bits in the LSB place. 2) Now look at the next column to the left (next to LSB). In this...
Design a 4-bit adder-subtractor circuit using the 4-bit binary Full adders (74LS83) and any necessary additional...
Design a 4-bit adder-subtractor circuit using the 4-bit binary Full adders (74LS83) and any necessary additional logic gates. The circuit has a mode input bit, M, that controls its operation. Specifically, when M=0, the circuit becomes a 4-bit adder, and when M=1, the circuit becomes a 4-bit subtractor that performs the operation A plus the 2’s complement of B.Where A and B are two 4-bits binary numbers. That is, * When M=0, we perform A+B, and we assume that both...
For this assignment, you will be creating a simple “Magic Number” program. When your program starts,...
For this assignment, you will be creating a simple “Magic Number” program. When your program starts, it will present a welcome screen. You will ask the user for their first name and what class they are using the program for (remember that this is a string that has spaces in it), then you will print the following message: NAME, welcome to your Magic Number program. I hope it helps you with your CSCI 1410 class! Note that "NAME" and "CSCI...
This programming task will be a bit different. It will be more like what you would...
This programming task will be a bit different. It will be more like what you would receive if you were a maintenance engineer working in a corporate information systems or technology department. In other words, you will have some prebuilt source code provided for you that you must alter so it will meet the given programming specification.. Build a program from what you have been given as a starting-point. Rename the “starter code”. Do not add any modules; just, use...
1. Vim commands: a. How do you auto indent your program? b. Explain what the following...
1. Vim commands: a. How do you auto indent your program? b. Explain what the following commands do: dd, y3, p, :set cindent (1 pt) VIM exercises These exercises on the computer need to be repeated by each student in the pair. This is to ensure that both students understand how to get around in Linux!!! For this part of the lab, you will create a .vimrc file that will help you develop your C++ programs using VIM. First, we...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT