Additions of numbers by using 2’s complement, Computer Engineering

Add +25 to -15 by using 2's complement ?

Ans. Firstly convert the numbers 25 and 15 in its 8-bit binary equivalent and determine the 2's complement of 15, after that add +25 to -15.
          15= 0 0 0 0 1 1 1 1 (8-bit binary equivalent of 15)

         252_Additions of numbers by using 2’s complement.png= 1 1 1 1 0 0 0 0 (1's complement)
                                   +1
          ------------------------------

 252_Additions of numbers by using 2’s complement.png= -15 =  1 1 1 1 0 0 0 1 (2's complement of 15)
        +25 = 0 0 0 1 1 0 0 1 (8-bit binary equivalent of 25)
      ------------------------------ Addition of -15 to +25
        +10 = 0 0 0 0 1 0 1 0
     ------------------------------- Thus -15 to +25 = (10)10 = (1010)2.

Posted Date: 5/1/2013 2:24:40 AM | Location : United States







Related Discussions:- Additions of numbers by using 2’s complement, Assignment Help, Ask Question on Additions of numbers by using 2’s complement, Get Answer, Expert's Help, Additions of numbers by using 2’s complement Discussions

Write discussion on Additions of numbers by using 2’s complement
Your posts are moderated
Related Questions
Q. Show the foundation of ALU design? The foundation of ALU design starts with micro-operation implementation. Thus let's first explain how bus can be used for Data transfer m

What is a Shift Register? Ans:  Shift Register: A register wherein data finds shifted towards left or right while clock pulses are applied is termed as a Shift Register.

Iterative Deepening Search: So, breadth first search is always guaranteed to find a solution (if one exists), actually it eats all the memory. For the depth first search, ther

Closed System: It's isolated from environment influences. It operates on factors within System itself. It is also described as a System which involves a feedback loop, a control e

What is Grade of service? Grade of service: In a loss system, the traffic carried through the network is usually lower than the actual traffic offered to the network through

The grade of service is measured in (A) Percentage                                  (B)  Number (C)  Fractional Number                    (D)  Logarithmic Number  Ans

What are the type of Internet connection When determining requirements for a VPN, carefully estimate the number of systems to be put behind the VPN, the number of concurrent u

what is software interface #Minimum 100 words accepted#

Central processing unit (CPU) : The part of the computer which executes program instructions is known as the processor or central processing unit (CPU). CPU is over single ele

How do I update an existing copy of the source to the current version? Ans) As the common code changes, you might need to update your copy to have the lastest version. To do tha