Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. 2)
  2. 11 div 2=5, 11 mod 2=1
  3. 5 div 2=2, 5 mod 2=1
  4. 2 div 2=1, 2 mod 2=0
  5. 1 div 2=0, 1 mod 2=1
  6.  
  7. 8-Bit Zweierkomplement: 0000 1011
  8.  
  9. 40 div 2=20, 20 mod 2=0
  10. 20 div 2=10, 20 mod 2=0
  11. 10 div 2=5, 10 mod 2=1
  12. 5 div 2=2, 5 mod 2=1
  13. 2 div 2=1, 2 mod 2=0
  14. 1 div 2= 0, 1 mod 2=1
  15. 8-Bit Zweierkomplement: 0000 1101
  16.  
  17. Invertieren und +1:
  18. 1111 0010
  19. +0000 0001
  20. 1111 0011
  21.  
  22. Addieren von 0000 1011 und 1111 0011, entspricht (11)10-(40)10
  23.  
  24. 0000 1011
  25. +1111 0011
  26. 1111 1110
  27.  
  28. Umrechnen von 1111 1110 in Dezimalsystem:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement