Negative Numbers - PowerPoint PPT Presentation

About This Presentation
Title:

Negative Numbers

Description:

Negative Numbers. Lecture L2.3. Section 2.4. Negative Numbers. Subtract by adding. 73 -35 ... Subtract from. 100000000. 01001101. 10110011. Take 1's complement ... – PowerPoint PPT presentation

Number of Views:63
Avg rating:3.0/5.0
Slides: 11
Provided by: Richard6
Category:

less

Transcript and Presenter's Notes

Title: Negative Numbers


1
Negative Numbers
  • Lecture L2.3
  • Section 2.4

2
Negative Numbers
Subtract by adding
73 -35 38
73 65 138
10s complement
3
Negative Numbers
10s complement Subtract from 100
Take 9s complement and add 1
100 -35 65
99 -35 64 1 65
4
Negative Numbers
2s complement Subtract from
Take 1s complement and add 1
100000000 01001101 10110011

11111111 -01001101 10110010 1 10110011
5
Finding 2s Complement
0 1 0 1 1 0 0 0
0
0
0
1
0
1
0
1
6
Negative NumberTake 2s Complement
7510 4B16 01001011 -7510 B516 10110101
FF -4B B4 1 B5
7
Negative NumberTake 2s Complement
110 0116 00000001 -110 FF16 11111111

12810 8016 10000000 -12810 8016 10000000
8
(No Transcript)
9
Signed Numbers
4-bit 8H -8 to 7H 7 1000 to 0111
8-bit 80H -128 to 7F 127
16-bit 8000H -32,768 to 7FFFH 32,767
32-bit 80000000H -2,147,483,648 to
7FFFFFFFH 2,147,483,647
10
Questions
What is the twos complement of 00101100? What
hex number represents the decimal number -40?
Write a Comment
User Comments (0)
About PowerShow.com