Karteikarten
Binary Arithmetic
Karten in diesem Stapel (9)
- 1Binary Addition0 + 0 = 0
0 + 1 = 1
1 + 1 = 0 (carry 1)
1 + 1 + 1 = 1 (carry 1) - 2OverflowIf result of addition is bigger than 255 then carry needs a ninth bit
- 3Representing Negative NumbersMost significant bit is 0 then number is +
Most significant bit 1 then number is - - 4Two's Complement256 - value = answer
Convert answer into binary - 5What denary range can be represented in two's complement?-128 to 127
- 6Convert -9 from denary to binaryIn positive binary: 00001001
Flip bits: 11110110
Add one: 11110111 - 7Convert 11100101 from negative two's complement binary to denaryFlip bits: (-)00011010
Add one: (-)00011011
In denary: -27 - 8Subtract denary 14 from denary 1714 in binary: 00001110
-14 in two's complement: 11110010
17 in binary: 00010001
Add 17 and -14: 00000011 (ignore overflow) - 9Convert 19.25 to fixed point binary10011.010
Informationen
- Beschreibung
- A-Level Flashcards Comp Sci (Data Types) Karteikarten am Binary Arithmetic, erstellt von Holly Scott am 03/05/2018.
- Erstellt von
- Holly Scott
- Aufrufe
- 2
- Bewertung