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
Define MFC. To accommodate the variability in response time, the processor waits unless it receives an indication that the requested read operation has been done. The control s

Q. Illustration of an instruction cycle? Instruction cycle displayed in given figure comprises subsequent stages: First address of the subsequent instruction is calculat

Prove the following Boolean identities using the laws of Boolean algebra: ABC + AB ‾C + ABC ‾ = A(B + C) Ans. ABC+AB'C+ABC'=A(B + C) LHS AC(B+B')+AB(C+C') OR  AC+AB OR  A(B

The Stack A procedure call is supported by a stack. So let's discuss stack in assembly. Stacks are 'Last In First Out' data structures and are used for storing return addresses

Give an intuitive explanation of why the maximum throughput, for small beta, is approximately the same for CSMA slotted Aloha and FCFS splitting with CSMA. Show the optimal expecte

Explain the various interface circuits.  An I/O interface having of circuitry required to connect an I/O device to computer bus. One side having of a data path with its associa

What are the properties of electronic cash? Properties: 1. Monetary Value: Monetary value should be backed by bank certified cashier’s cheque or cash, bank authorized cred

The GNU Image Manipulation Program, or GIMP, is a raster graphics editor application with some support for vector graphics. GIMP is used to process digital graphics & photographs.

Single Instruction and Multiple Data stream (SIMD) In this organisation, multiple processing elements are working under the control of a one control unit. It has multiple data

Q. What is Data link layer? Data link layer: data link layer is responsible for transmitting a group of bits between adjacent nodes. Group of bits is termed as frame. Network