1 CS120: Lecture 4 MP Johnson Hunter College

Slides:



Advertisements
Similar presentations
How to Convert Decimal Numbers to Binary EXAMPLES.
Advertisements

Base 10 Denary Decimal
Number Systems Discussion D4.1 Appendix C. Number Systems Counting in Binary Positional Notation Hexadecimal Numbers Negative Numbers.
CS 151 Digital Systems Design Lecture 3 More Number Systems.
CS120: Lecture 1 MP Johnson Hunter College
1 CSc100: Lecture 11 MP Johnson Hunter
1 CS120: Lecture 2 MP Johnson Hunter College
+ CS 325: CS Hardware and Software Organization and Architecture Integers and Arithmetic Part 4.
ENGIN112 L3: More Number Systems September 8, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems.
Binary numbers. 1 Humans count using decimal numbers (base 10) We use 10 units: 0, 1, 2, 3, 4, 5, 6, 7, 8 and (5.
1 12/08/03SW Abingdon and Witney College Binary Converting to and from decimal.
Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
+ CS 325: CS Hardware and Software Organization and Architecture Exam 1: Study Guide.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Paging Examples Assume a page size of 1K and a 15-bit logical address space. How many pages are in the system?
Comp Sci 251 Intro 1 Computer organization and assembly language Wing Huen.
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
1 COMS 161 Introduction to Computing Title: Numeric Processing Date: October 29, 2004 Lecture Number: 26.
+ CS 325: CS Hardware and Software Organization and Architecture Integers and Arithmetic Part 2.
Number Systems. Today Decimal Hexadecimal Binary –Unsigned Binary –1’s Complement Binary –2’s Complement Binary.
Number Systems and Number Representation Jennifer Rexford 1.
1 Press Ctrl-A ©G Dear 2010 – Not to be sold/Free to use Converting Bits and Bytes Stage 6 - Year 11 Applied Mathematic (Preliminary General 1)
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Addition and Substraction
Unit 7 Number Systems and Bases Presentation 1Binary and Base 10 Presentation 2Adding Binary Numbers Presentation 3Subtracting Binary Numbers Presentation.
Binary A double zero educational presentation. Binary Basics Binary is the language computers use Only 1’s and 0’s can be found in Binary Very large numbers.
Computer Programming 12 Mr. Jean February 5 th, 2014.
CS 111 – Sept. 13 Error detection Error correction Review/practice chapter 1 questions Commitment: –Please read sections 2.1 and 2.2.
OFF = 0 ON = 1 = 63 BINARY system
Topic 14.1 Extended Hexadecimal  Decimal is base 10 and uses 10 digits (0,1,2,3,4,5,6,7,8,9).  Binary is base 2 and uses 2 digits (0,1).  Computers.
CS 160 Lecture 4 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
2's Complement Arithmetic
Department of Management School of Business, Economics and Informatics Binary Numbers 1 Eva Szatmari
CS 125 Lecture 2 Martin van Bommel. Hardware vs Software Hardware - physical components you can see and touch –e.g. processor, keyboard, disk drive Software.
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
First Foray into Programming (the hard way). A reminder from last lesson: A machine code instruction has two parts:  Op-code  Operand An instruction.
Negative Number Sign-Magnitude: left-most bit as the sign bit –16 bits –Example: 4-bit numbers is given by is given by ’s complement:
Design of Digital Circuits Reading: Binary Numbers
Data Representation – numbers Binary conversion Hexadecimal Negative numbers Binary addition Binary shifts.
Negative Binary Numbers
Binary numbers: Week 7 Lesson 1
CSCI 198: Lecture 4: Data Representation
Steganography Example
CSCI 161: Lecture 4: Data Representation
Negative Binary Numbers
Dr. Clincy Professor of CS
Dr. Clincy Professor of CS
Binary Addition & Subtraction
Binary Code  
Representing Data How does a computer represent data?
Lesson Objectives To understand how to add 4 and 8 bit binary numbers together To understand what is meant by the term “Overflow” ALL students will add.
Dr. Clincy Professor of CS
Dr. Clincy Professor of CS
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
COMS 161 Introduction to Computing
Binary “There are 10 types of people in the world: Those who understand binary, and those who don't.”
Computer Organization
Dr. Clincy Professor of CS
Microprocessor and Assembly Language
COMS 161 Introduction to Computing
Lecture No.5.
CS-401 Computer Architecture and Assembly Language Programming
Activity 2 How is the word length of a two’s complement representation changed without affecting its value? In this activity, we are going to study how.
Binary.
Lecture 37 – Practice Exercises 9
Lecture 37 – Practice Exercises 9
Two’s Complement & Binary Arithmetic
Dr. Clincy Professor of CS
Presentation transcript:

1 CS120: Lecture 4 MP Johnson Hunter College

2 Agenda Review flipflops Review bin nums Converting bin  dec Converting dec  bin Adding bin nums

3 Agenda Review binary, 2’s comp –Convert pos, neg  base2 (alg, interp) –Add base2 –Multiply/shift base2 Machine language & processors More on data? –Compression –Error detection & correction

4 Review: flipflops Go through

5 Review: bin nums ANSI only uses 7 bits (128 vals) Insert a 1 at front to get 8 bits = 1 byte (255)