Operations on Signed Numbers

Abstract

Signed integers are normally represented using 2’s complement representation. Addition and subtraction of signed numbers is done similar to that of unsigned numbers. However carry (or borrow) is simply ignored. Unlike unsigned number carry (or borrow) does not mean overflow or error. Doubling of a signed number can be done by shift left. However, halving of a signed number cannot be done by shift right. Hence special arithmetic instruction SAR (Shift arithmetic right) is needed. We have defined an alternative representation for signed numbers. Here a positive number is represented by appended a zero (0) at right. Here a negative number is represented by inverting all bits in corresponding positive number. Two signed numbers are added by adding corresponding binary representation. After that carry is added to the result. Similarly two signed numbers are subtracted by subtracting corresponding binary representation. After that borrow is subtracted. Doubling and halving is done by ROL (Rotate left) and ROR (Rotate right) respectively.

Authors and Affiliations

Naika Sateesh Kumar , Muduganti Rathan Reddy , Y. Srinivas , J. Vijayasekhar , V K Narla

Keywords

Related Articles

Highly Secured WSN Life Span Fortification with Data Compression, NNF Technique and ECC Method

In WSN the major drawback is conservation of the energy available at each sensor node. Our proposed scheme consists of centralized Low Adaptive Cluster Algorithm (LEACH-C) which is a widespread protocol in Wireless senor...

Enhancing the security and routing reliability for achieving efficient data transmission in mobile Ad Hoc Networks 

A Mobile Ad hoc Network is a wireless network in which a central management scheme is not available; this causes nodes to dynamically self-organize each one playing both router and node’s roles. Compared to the other typ...

A COMPARATIVE STUDY OF CLASSIFICATION ALGORITHM USING ACCIDENT DATA

Road traffic accidents are the majority and severe issue, it results death and injuries of various levels. The traffic control system is one of the main areas, where critical data regarding the society is noted and kept...

An Adoptive approach in Demosaicing True Color from Digital Camera having Bayer Color Filter

Single sensor with Bayer pattern color filters are used to reduce size and cost of consumer digital cameras. These cameras use various demosaicing algorithms to construct the entire image with true colors from the acquir...

A Theoretical Analysis of Different Hacking Techniques in Wireless Networks 

Over the course of past few decades to today's world, even though the usage of computers is increasing rapidly, the users hesitate to store their personal information in their computers because of the security issues of...

Download PDF file
  • EP ID EP93105
  • DOI -
  • Views 152
  • Downloads 0

How To Cite

Naika Sateesh Kumar, Muduganti Rathan Reddy, Y. Srinivas, J. Vijayasekhar, V K Narla (2013). Operations on Signed Numbers. International Journal of Computer Science & Engineering Technology, 4(1), 44-48. https://www.europub.co.uk/articles/-A-93105