Binary Operations and Arithmetic Overflows

Binary Operations and Arithmetic Overflows
Slide Note
Embed
Share

Explore binary operations, 2's complement subtraction, arithmetic overflows, and bit complements in computer science. Understand how to perform calculations on unsigned binary numbers, handle overflow scenarios, and work with complement bits. Dive into ASCII codes and other coding standards to enhance your understanding of digital systems.

  • Binary operations
  • Arithmetic
  • Overflow
  • Complement bits
  • ASCII codes

Uploaded on Feb 27, 2025 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. 1.11, 1.12, 1.13, 1.14, 1.18, 1.20, 1.23, 1.24, 1.25, 1.32, 1.33 ( 47 )8 = ( 100 111 )2 ( 47 )16 = ( 0100 0111 )2 ( 20 )10

  2. 1.12) 1011+101 , 1011 X 101

  3. 1 1 0 0 1 1 - 0 1 1 1 0 1 1 1 0 0 1 1 0 1 1 1 0 1

  4. 1.11) 111011 / 101

  5. 1.18) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the result should be negative, find its 2 s complement and affix: a minus sign. 1 0 0 1 1 1 0 0 0 1 | 1 0 0 1 1 0 1 0 0 0

  6. Overflow 40+30 ( 7 bit signed number ) 0 _ 1 0 1 0 0 0 0 _ 0 1 1 1 1 0

  7. +49: 0 _ 1 0 1 0 0 0 -49: 1 _ 0 1 1 1 1 0 +29: 0 _ 0 1 1 1 0 1 -29: 1 _ 1 0 0 0 1 1

  8. Complement bit 6 A: 100 0001 a: 110 0001

  9. Other Codes

  10. ASCII Code American Standard Code for Information Interchange (ASCII) 18

  11. ASCII Code American Standard Code for Information Interchange (ASCII) 19

  12. ASCII Properties Digits 0 to 9 span Hexadecimal values 3016 to 3916 Upper case A-Z span 4116 to 5A16 Lower case a-z span 6116 to 7A16 Lower to upper case translation (and vice versa) occurs by flipping bit 6.

More Related Content