Übung 1 Nummer 1- 4
1. Wandeln Sie folgende Dualzahlen in die Dezimalschreibweise um: a) 011011 b) 011100 c) 011101101 d) 11100001
1. a) 011011 = 27 1. b) 011100 = 48 1. c) 0 1110 1101 = 128 + 64 + 32 + 8 + 4 + 1 = 237
1. d) 1110 0001 = 128 + 64 + 32 + 1 = 225
2. Stellen Sie folgende Dezimalzahlen binär und hexadezimal dar: a) 87483 b) 32767 c) 24 d) 787
2. a) 87483 = 1 0101 0101 1011 1011 2. b) 32767 = 111 1111 1111 1111
2. c) 24 = 11000 2. d) 787 = 11 0001 0011
3. Addieren Sie im Dualsystem:
a) 10 1101 + 110 0111 = 1001 0100 (Probe: 45 + 103 = 148; stimmt)
b) 1101 + 1001 + 1010 = 100 000 (Probe: 13 + 9 + 10 = 32 ; stimmt)
c) 10 1010 + 10 1010 = 101 0100 (Probe:42 + 42 = 84; stimmt)
4. Bilden Sie das Einer– und Zweierkomplement bei 8 Bit Verarbeitungsbreite:
a) 110010 b) 101101
a) | b) | |||||||||||||
|
|
5. Subtrahieren Sie durch Addition des Zweierkomplements bei 8 Bit Wortbreite:
a) 1101 - 0111 b) 1010 - 1001 c) 1001 - 1101
a)0000 1101 - 0000 0111 | b)0000 1010 - 0000 1001 | c)1001 - 1101 |
= 0000 1101 + 1111 1001 = |
= 0000 1010 + 1111 0111 = |
= 0000 1001 + 1111 0011 = 1111 1100 |
13 - 7 = 6; stimmt | 10 - 9 = 1; stimmt | 9 - 13 = -4 (= 252); stimmt |