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
The Throughput graph represents the amount of data in bytes that the Vusers received from the server in a second. When we evaluate this with the transaction response time, we will

This part looks at Berliner's program, two backprop versions by Tesauro and a temporal difference process by Tesauro. This latter program is VERY good quality and has found strateg

What exactly is being serialized when you perform serialization? Serialization is the process of changing an object into stream of bytes. We perform it at the time of transpor

Fixed Arithmetic pipelines We take the illustration of multiplication of fixed numbers. Two fixed point numerals are added by ALU (Arithmetic and logic unit) using shift and ad

Question : Multimedia involves multiple modalities of text, audio, images, drawings, animation, and video (a) Describe three popular file formats for images (b) Most imag


What are the facilities of a debug monitor? The facilities of a debug monitor are given below: a. Setting breakpoints into the program b. Initiating a debug conversation

Q. Explain Register Indirect Addressing? In this addressing technique the operand is data in memory pointed to by a register. Or we can say in other words that the operand fie

The free subroutine frees a block of memory lastly allocated by the malloc subroutine. Undefined results happen if the Pointer parameter is not a valid pointer. If the Pointer para

Maximum channel utilization in a LAN is defined by frame time (t f ) and propagation time (t p ). It is defined by (A) t p /t f (B) t f /t p  (C) 1 + (t f /t p )