Data Representation
CSC 321 : M&AL
Microprocessor and Assembly Language
, Outline
Introduction
Numbering Systems
Binary & Hexadecimal Numbers
Base Conversions
Integer Storage Sizes
Binary and Hexadecimal Addition
Signed Integers and 2's Complement Notation
Binary and Hexadecimal subtraction
Carry and Overflow
, Introduction
Computers only deal with binary data (0s and 1s).
Many different forms of data:
Numbers: 2 Types
Integers: 33, +128, -2827
Real numbers: 1.33, +9.55609, -6.76E12, +4.33E-03
Alphanumeric characters (letters, numbers, signs, control
characters): examples: A, a, c, 1 ,3, ", +, Ctrl, Shift, etc.
Images (still or moving): Usually represented by numbers representing
the Red, Green and Blue (RGB) colors of each pixel in an image,
Sounds: Numbers representing sound amplitudes sampled at a certain
rate (usually 20kHz).
So in general we have two major data types that need to be
represented in computers; numbers and characters.
, Numbering Systems
CSC 321 : M&AL
Microprocessor and Assembly Language
, Outline
Introduction
Numbering Systems
Binary & Hexadecimal Numbers
Base Conversions
Integer Storage Sizes
Binary and Hexadecimal Addition
Signed Integers and 2's Complement Notation
Binary and Hexadecimal subtraction
Carry and Overflow
, Introduction
Computers only deal with binary data (0s and 1s).
Many different forms of data:
Numbers: 2 Types
Integers: 33, +128, -2827
Real numbers: 1.33, +9.55609, -6.76E12, +4.33E-03
Alphanumeric characters (letters, numbers, signs, control
characters): examples: A, a, c, 1 ,3, ", +, Ctrl, Shift, etc.
Images (still or moving): Usually represented by numbers representing
the Red, Green and Blue (RGB) colors of each pixel in an image,
Sounds: Numbers representing sound amplitudes sampled at a certain
rate (usually 20kHz).
So in general we have two major data types that need to be
represented in computers; numbers and characters.
, Numbering Systems