Binary number system using 8 bit registers, Computer Engineering

Assignment Help:

Q. Binary number system using 8 bit registers?

Add 25 and -30 in binary number system using 8 bit registers using:

  • Signed magnitude representation
  • Signed 1's complement
  • Signed 2's complement

Solution:

873_Binary number system using 8 bit registers.png

To do arithmetic addition with one negative number only we should check magnitude of numbers. The number having smaller magnitude is then subtracted from larger number and sign of bigger number is selected. Implementation of such a technique in digital hardware will need a long sequence of control decisions and circuits which will add and compare and subtract numbers. Is there a better substitute than this technique? Let's first try signed 2's complement.

815_Binary number system using 8 bit registers1.png

Now let's do addition using signed 2's complement notation:

349_Binary number system using 8 bit registers2.png

Please note how easy it is to add 2 numbers employing signed 2's Complement. This method requires just one control decision and just one circuit for adding two numbers however it puts on extra condition that negative numbers must be stored in signed 2's complement notation in registers. This can be obtained by complementing positive number bit by bit and then incrementing resultant by 1 to get signed 2's complement.


Related Discussions:- Binary number system using 8 bit registers

Return a string, Write a function that will prompt the user individually fo...

Write a function that will prompt the user individually for a filename and extension and will make and return a string with the form 'filename.ext'.

Instruction set and effective addressing techniques, The term addressing mo...

The term addressing mode is a technique of stating the input and output of an instruction; it is termed the effective address. There are 6 effective addresses in the 68HC11 set of

SIDE EFFECT , EXPLAIN SIDE EFFECT OF SCAN CONVERSION WITH DIGRAM

EXPLAIN SIDE EFFECT OF SCAN CONVERSION WITH DIGRAM

Handlers classification, Handler's Classification In 1977, Wolfgang Han...

Handler's Classification In 1977, Wolfgang Handler proposed an detailed notation for expressing the parallelism and pipelining of computers. Handler's classification addresses

Define general purpose register architecture, Q. Define General Purpose Reg...

Q. Define General Purpose Register Architecture? General Purpose Register (GPR) Architecture: A register is a word of internal memory similar to the accumulator. GPR architec

Reflexes - artificial intelligence, Reflexes - artificial intelligence: ...

Reflexes - artificial intelligence: If an agent decides upon and executes an action in response to a sensor input without consultation of its world, then this can be considere

What is the size limitation of an access database, Size limitation does not...

Size limitation does not relate to number of records in a table within a database. Forms, reports, macros, and modules also add to database size, but is rather minimal compared to

What is traffic engineering, What is Traffic Engineering? Traffic engi...

What is Traffic Engineering? Traffic engineering gives the basis for analysis and design of telecommunication network to carry a specified traffic at an exact loss probability

How semaphores implement mutual exclusion, How semaphores implement mutual ...

How semaphores implement mutual exclusion? Mutual-exclusion implementation along with semaphores: Assume that there are n-processes and they share a semaphore, mutex (stan

Difference between commit-work and rollback-work tasks, What is the differe...

What is the difference between Commit-work and Rollback-Work tasks? Commit-Work statement "performs" many functions relevant to synchronized execution of tasks.  Rollback-work

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd