Chapter_2_Data Representation

Chapter_2_Data Representation - Outline Data Representation...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CS 3401 Comp. Org. & Assembly Data Representation in Computer Systems 1 Data Representation Data Representation in Computer Systems CS 3401 Comp. Org. & Assembly Data Representation in Computer Systems 2 Outline Outline Data Organization Bits, Nibbles, Bytes, Words, Double Words Numbering Systems Unsigned Binary System Signed and Magnitude System 1’s Complement System 2’s Complement System Hexadecimal System Floating Point Representation BCD Representation Characters ASCII Code UNICODE Other Representations Display colors Audio CS 3401 Comp. Org. & Assembly Data Representation in Computer Systems 3 Data Organization Data Organization Computers use binary number system to store information as 0’s and 1’s Bits A bit is the fundamental unit of computer storage A bit can be 0 (off) or 1 (on) Related bits are grouped to represent different types of information such as numbers, characters, pictures, sound, instructions CS 3401 Comp. Org. & Assembly Data Representation in Computer Systems 4 Nibbles Nibbles Nibbles A nibble is a group of 4 bits A nibble is used to represent a digit in Hex (from 0-15) and BCD (from 0-9) numbers F 1111 E 1110 D 1101 C 1100 B 1011 A 1010 9 9 1001 8 8 1000 7 7 0111 6 6 0110 5 5 0101 4 4 0100 3 3 0011 2 2 0010 1 1 0001 0 0 0000 Hex BCD
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 CS 3401 Comp. Org. & Assembly Data Representation in Computer Systems 5 Bytes Bytes Bytes A byte byte is a group of 8 bits that is used to represent numbers and characters A standard code for representing numbers and characters is ASCII ( A merican S tandard C ode for I nformation I nterchange ) CS 3401 Comp. Org. & Assembly Data Representation in Computer Systems 6 Byte Size Byte Size Bytes How many different combinations of 0’s and 1’s with 8 bits can form? In general, how many different combinations of 0’s and 1’s with N bits can form? How many different characters that a byte (8 bits) can represent? CS 3401 Comp. Org. & Assembly Data Representation in Computer Systems 7 Words Words Words A word is a group of 16 bits or 2 bytes that is used to represent non-Roman characters in UNICODE An international standard code for representing non-Roman characters like Asian, Greek, and Russian characters is UNICODE CS 3401 Comp. Org. & Assembly Data Representation in Computer Systems 8 Double Words Double Words Double Words A double word is a group of 32 bits or 4 bytes or 2 words
Background image of page 2
3 CS 3401 Comp. Org. & Assembly Data Representation in Computer Systems 9 Related Bytes Related Bytes A nibble is a half-byte (4-bit) - hex representation A word word is a 2-byte (16-bit) data item A doubleword doubleword is a 4-byte (32-bit) data item A quadword is an 8-byte (64-bit) data item A paragraph is a 16-byte (128-bit) area A kilobyte kilobyte (KB) is 2 10 = 1,024 bytes 1 K bytes) A megabyte (MB) is 2 20 = 1,048,576 1 MB A Gigabyte (GB) is 2 30 = 1,073,741,824 1 GB CS 3401 Comp. Org. & Assembly Data Representation in Computer Systems 10 Numbering Systems
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 21

Chapter_2_Data Representation - Outline Data Representation...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online