MGMT 1030 Lecture 35: MGMT 1030 Lecture 35 Notes

27 views2 pages
MGMT 1030 Lecture 35 Notes Second Method
Introduction
I iar for, the odulus osists of a ase   folloed  the speified uer
of 0s.
For 16 bits, for example, the modulus is 10000000000000000.
As as true for the s opleet, the s opleet of a uer a e foud i
one of two ways
Either sutrat the alue fro the odulus or fid the s opleet  iertig
every 1 and 0 and adding 1 to the result.
The second method is particularly well suited to implementation in the computer, but
you can use whichever method you find more convenient.
An 8-it sale for s opleet represetatio.
Tos opleet additio, like s opleet additio i deial, osists of
adding the two numbers mod <the modulus>.
This is particularly simple for the computer, since it simply means eliminating any 1s that
dot fit ito the uer of its i the ord.
Subtraction and overflow are handled as we have already discussed.
As i s opleet, the rage is ueel diided eteen positive and negative.
The rage for  its, for eaple, is − ≤ alue ≤.
The use of s opleet is ore oo i oputers tha is s opleet, ut
both methods is in use.
The trade-off is made by the designers of a particular computer
s opleet akes it easier to hage the sig of a uer
Addition requires an extra end-around carry step.
Oes opleet has the additioal draak that the algorith ust test for ad
oert− to  at the ed of eah operatio.
Tos oplement simplifies the addition operation at the expense of an additional add
operation any time the sign change operation is required.
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows half of the first page of the document.
Unlock all 2 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents