madzik4113

sztangret dodawanie bity

Feb 2nd, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1.  
  2.  
  3. 17+(-25)
  4. 17 w 2jkowym na 8 bitach: 00010001
  5. 25 -||- : 00011001
  6. negacja binarnia wartosci 25: 11100110
  7. dodajemy 1= 11100111
  8.  
  9. dodajemy te wartosci:
  10. 00010001
  11. + 11100111
  12. = 11111000.
  13.  
  14. teraz mozemy sprawdzic, odejmujac 1= 11110111, negacja= 00001000= 8, wiec wynik= -8
Advertisement
Add Comment
Please, Sign In to add comment