



































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
One oddity: we can represent one more negative number than we can positive numbers Page 42 Andrew H. Fagg: Embedded Real- Time Systems: Binary Arithmetic 55 ...
Typology: Exams
1 / 43
This page cannot be seen from the preview
Don't miss anything!




































Andrew H. Fagg: Embedded Real-Time Systems: Binary Arithmetic
Andrew H. Fagg: Embedded Real-Time Systems: Binary Arithmetic
Consider the following binary numbers:
How do we add these numbers?
Andrew H. Fagg: Embedded Real-Time Systems: Binary Arithmetic
And we have a carry now!
Andrew H. Fagg: Embedded Real-Time Systems: Binary Arithmetic
0 0 1And we have a carry again!
Andrew H. Fagg: Embedded Real-Time Systems: Binary Arithmetic
Andrew H. Fagg: Embedded Real-Time Systems: Binary Arithmetic
One more carry!
Andrew H. Fagg: Embedded Real-Time Systems: Binary Arithmetic
Behaves just like addition in decimal, but:• We carry to the next digit any time the sum
of the digits is 2 (decimal) or greater
Andrew H. Fagg: Embedded Real-Time Systems: Binary Arithmetic
So far we have only talked about
representing non-negative integers
representation that will allow this?
Andrew H. Fagg: Embedded Real-Time Systems: Binary Arithmetic
Andrew H. Fagg: Embedded Real-Time Systems: Binary Arithmetic
Andrew H. Fagg: Embedded Real-Time Systems: Binary Arithmetic
have already developed do not do the rightthing
Andrew H. Fagg: Embedded Real-Time Systems: Binary Arithmetic
counter (that implements an ‘increment’operation)
Andrew H. Fagg: Embedded Real-Time Systems: Binary Arithmetic
Increment
Andrew H. Fagg: Embedded Real-Time Systems: Binary Arithmetic
Increment