Skill Area 311 Part A. Lecture Overview Binary Numbers Binary Arithmetic ASCII Code Machine Code Instruction Format Advantages and disadvantages of machine.

Slides:



Advertisements
Similar presentations
Vermilion Parish Schools
Advertisements

Aa Voiced Position: low, front KS09.
By The children in Room One 2012
The Spanish Alphabet “El abecedario”.
ABC Book by student/teacher name
Lots of Things ABC Book By Antoinette Hannah-Eddins.
1 Lecture-2 CS-120 Fall 2000 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
Huffman Encoding Visualization Auto-Generated Slides To Visualize Huffman Encoding by Chris Fremgen.
ABC book of objects in the world
The Family Alphabet Book
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
The Spanish Alphabet “El abecedario O El alfabeto”
Mantıksal Tasarım – BBM231 M. Önder Efe
Learning Letter Sounds Jack Hartman Shake, Rattle, and Read
Learning the Alphabet! Hunter Reinhart.
Ms. Giannini Kindergarten Language Arts Lesson 2.
Logic and Digital System Design - CS 303
The Spanish Alphabet “El alfabeto”. Some notes on the Spanish alphabet… In English, sometimes vowels take on different pronunciations Pronounce the following.
DataWORKS Educational Research (800) ©2011 All rights reserved. Comments? Kindergarten Writing.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
CS151 Introduction to Digital Design
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
Welcome to sentences Before looking at sentences, let’s take a look at what the symbols mean. Click Here to begin.
Our Class Alphabet Book. Aa A is art supplies. By Josilyn.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
Memorize the alphabet! Uppercase and lowercase:
Letter of the Day Created by D. Mock 2012 Routine based on Davis District’s work with Dr. Parker Fawson, Dr. Cindy Jones, Dr. Ray Reutzel
Help Your Child Get Ready to Read!. Reading is essential to school success. Start now to help your child get ready to read. Learning to read begins before.
Alphabet Book. Have students take pictures or draw (and then scan) images for each letter they can then copy and paste the images into the slide with.
Learning the ABC’s and some words that start with them! By: Alyssa Duchon Introduction Lessons Quiz.
Data Representation Conversion 24/04/2017.
Data Representation, Number Systems and Base Conversions
Lesson 11 Black, White, Brown. U u umbrella up, us, cut.
Module 1. My letters Module 2. My home and my family Module 3. My birthday Module 4. Food Module 5. My animals Module 6. My toys Module 7. The weather.
1 Aa 2 a 3 apple.
Connect the dots alphabetically A.A. B.B. C.C. D.D. E.E. F.F. G.G. H.H. I.I. J.J. K.K. L.L. M.M. N.N. O.O. P.P. Q.Q.
Antonym means opposite: Come - Go Synonym means same Happy - Glad Homophones are two words that sound the same Red - Read Standard Form 85 Expanded Form.
AMERICAN SIGN LANGUAGE ASHLEY STRONG FIRST GRADE LESSON ONE.
Hang this page on your fridge. Leave it up all week. Practice nightly. *High Frequency Words* Your child should be able recognize these words quickly.
BINARY SYSTEMS ENGR. KASHIF SHAHZAD 1. BINARY NUMBERS 1/2 Internally, information in digital systems is of binary form groups of bits (i.e. binary numbers)
Do now question What is genetics and why do scientists study genetics?
English Alphabet Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz.
The Alphabet Review.
Learning the Alphabet ABC for pre-school.
This project has been funded with support from the European Commission. This courseware reflects the views only of the authors,
Parent workshops for Earlier Years
Unit 2 Friends.
BINARY CODE.
Data Transfer ASCII FILES.
The English Alphabet 2 grade.
The Spanish Alphabet “El abecedario”.
First Grade Newsletter
Chapter 2 – Computer hardware
Ms. Katie’s Kindergarten Class
Representing Characters
Snakes & Ladders Board Game
Miss Schwarz’s class rules
The Spanish Alphabet “El abecedario”.
The Spanish Alphabet “El abecedario”.
Isesaki City LEADER program Module 1
Letters and letter sounds created by:
Revolutionary America Pre-AP U.S. History | QVMS
By: The Kid’s in Mrs. Tower’s Room
Make a fist with your thumb out.
Round-up lesson Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz.
Various designs can be seen on Japanese wear. Kimono, Japan ・1文字目を大きく。
The English Alphabet/Alphabetic Words/Simple Sentences
ABC Book by student/teacher name
Kindergarten Alphabet uppercase/lowercase beginning sounds/pictures
ASCII and Unicode.
Presentation transcript:

Skill Area 311 Part A

Lecture Overview Binary Numbers Binary Arithmetic ASCII Code Machine Code Instruction Format Advantages and disadvantages of machine code

BINARY NUMBERS

What is “Binary”? A coding system using binary digits 0 and 1 Represent a letter, digit or other character in a computer or other electronic devices 0 1 OFFON

You Do The Math When we talk numbers, we use a base-10 system, because we use ten characters to write out all of our numbers. Computers using binary language operate on a base-2 number system, because the two numbers they use are “0” and “1” Each is a binary digit or “bit” Each bit represents a power of two (2 2, 2 3, 2 4,etc)

Alphabet Our class uses the English language consisting of 26 characters, arranged together in a variety of ways, to communicate. Computers use binary language consisting of 2 characters, arranged together in groups of eight, to communicate. Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz Aa = Zz = bits = 1 byte

The Byte Scale

Binary Arithmetic Binary to Decimal(denary): Binary10110 Power of Two Binary x Power of Two Result = 22

Binary Arithmetic Decimal (denary) to Binary: NumberDivide ByResultRemainder Read from bottom to topResult =10111

Binary Arithmetic Decimal Addition Binary Addition plus 0 produces 0 0 plus 1 produces 1 1 plus 1 produces 0 with a ‘carry’ of 1 into the next most significant place 1 plus 1 plus 1 produces 1 with a ‘carry’ of 1 into the next most significant place 0 plus 0 produces 0 0 plus 1 produces 1 1 plus 1 produces 0 with a ‘carry’ of 1 into the next most significant place 1 plus 1 plus 1 produces 1 with a ‘carry’ of 1 into the next most significant place

Binary Arithmetic Decimal Multiplication Binary Multiplication 5 × ×

Alphanumeric Codes Beside Numbers, we have to represent other types of information: –Letter of alphabet, mathematical symbols American Standard Code for Information Interchange (ASCII)

ASCII Code Uses 7 bits to encode 128 characters 7 bits of ASCII Code –(b 6 b 5 b 4 b 3 b 2 b 1 b 0 ) 2 One ASCII character is stored using a byte One unused bit can be used for other purposes such as representing Greek alphabet, italic type font, etc. The eighth bit can be used for error-detection

ASCII Code 128 different characters – = 62 (letters and decimal digits) –32 special printable characters %, *, $ –34 special control characters (non-printable): BS, CR, etc. Example: –A  65 = ( ), …, a  97 = ( ) –0  48 = ( ), …, 9  57 = ( )

ASCII Code

ASCII Code - Extended

MACHINE CODE OR MACHINE LANGUAGE

What is a “Machine Code”? The lowest and most elementary level of Programming Language. 1 st type of PL to be developed. Represented inside the computer by a String of binary digits (bits) 0 and 1. The symbol 0 stands for the absence of Electric Pulse and 1 for the presence of an electric pulse.

Why “Machine Code”? Their order tells the computer what to do. All other kinds of software need to be translated into machine code before they can be used.

Instruction Format Each instruction is a number that combines: –An operation code (opcode) that picks a hardware function –One or two input operands (where input comes from) –One output operand (where result goes)

Opcode and operand An opcode identifies which basic computer operation in the instruction set is to be performed. It tells the computer to do something. Operands are typically memory or registry addresses. Opcode is like a verb in a sentence, operands are like the subject in a sentence.

Machine Code Instruction LD, A, number Load A with number. A stands for “accumulator” and LD is short for “load” Opcodes and operands are separated by commas

Advantages of Machine Code Makes fast and efficient use of the computer Requires no translator to translate the code i.e. directly understood by the computer

Disadvantages of Machine Code All operations codes have to be remembered All memory addresses have to be remembered It is hard to amend or find errors in a program written in the machine language These languages are machine dependent

Summary Binary Numbers: –Binary digits 0 and 1 –8 bits = 1 byte ASCII: –7 bits –128 characters, 255 with extended Machine Code Opcode and operand