Representation of Data Binary Representation of Instructions teachwithict.weebly.com.

Slides:



Advertisements
Similar presentations
Instruction Sets: Characteristics and Functions Addressing Modes
Advertisements

Instruction Set Design
Dr. Ken Hoganson, © August 2014 Programming in R COURSE NOTES 2 Hoganson Language Translation.
Week 3. Assembly Language Programming  Difficult when starting assembly programming  Have to work at low level  Use processor instructions >Requires.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 2: IT Students.
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
2.3) Example of program execution 1. instruction  B25 8 Op-code B means to change the value of the program counter if the contents of the indicated register.
Computer Architecture Abhinav Agarwal Veeramani V.
COE Computer Organization & Assembly Language
Implementation of a Stored Program Computer
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#1) By Dr. Syed Noman.
Assembly & Machine Languages
MANINDER KAUR RAM and ROM Chips 24-Nov
The CPU The Central Presentation Unit Main Memory and Addresses Address bus and Address Space Data Bus Control Bus The Instructions set Mnemonics Opcodes.
IT253: Computer Organization Lecture 4: Instruction Set Architecture Tonga Institute of Higher Education.
ITEC 352 Lecture 20 JVM Intro. Functions + Assembly Review Questions? Project due today Activation record –How is it used?
Computer Programming I. Today’s Lecture  Components of a computer  Program  Programming language  Binary representation.
UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
GCSE Computing#BristolMet Session Objectives#11 MUST identify what program instructions consist of SHOULD describe how instructions are coded as bit patterns.
What have mr aldred’s dirty clothes got to do with the cpu
Instruction Set Architecture Basics. Our Progress Done with levels 0 and 1 Seen multiple examples of level 2 Ready for ISA general principles.
CS 111 – Sept. 15 Chapter 2 – Manipulating data by performing instructions “What is going on in the CPU?” Commitment: –Please read through section 2.3.
What Do I Represent?. Translators – Module Knowledge Areas Revisiting object code When we disassemble code we can view the opcodes used This is just a.
1 3. Computing System Fundamentals 3.1 Language Translators.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
1.4 Representation of data in computer systems Instructions.
The Instruction Set Architecture. Hardware – Software boundary Java Program C Program Ada Program Compiler Instruction Set Architecture Microcode Hardware.
Computer Systems – Machine & Assembly code. Objectives Machine Code Assembly Language Op-code Operand Instruction Set.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Address alignment When a word (4-bytes) is loaded or stored the memory address must be a multiple of four. This is called an alignment restriction. Addresses.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Representation of Data - Instructions Start of the lesson: Open this PowerPoint from the A451 page – Representation of Data/ Instructions How confident.
Winter 2016CISC101 - Prof. McLeod1 Today Numeric representation (or “How does binary and hexadecimal work?”). How can a CPU understand instructions written.
First Foray into Programming (the hard way). A reminder from last lesson: A machine code instruction has two parts:  Op-code  Operand An instruction.
Machine Language Computer languages cannot be directly interpreted by the computer – they are not in binary. All commands need to be translated into binary.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
CHAPTER NINE.
Why don’t programmers have to program in machine code?
Component 1.6.
GCSE COMPUTER SCIENCE Computers 1.5 Assembly Language.
A Closer Look at Instruction Set Architectures
Entry Ticket: High and Low Level Languages
Instruction Set Architectures
Data Representation – Instructions
The Processor and Machine Language
TRANSLATORS AND IDEs Key Revision Points.
Computer Programming Machine and Assembly.
High Level Programming Languages
CSCI206 - Computer Organization & Programming
The University of Adelaide, School of Computer Science
Lesson Objectives Aims Key Words Compiler, interpreter, assembler
Fundamentals of Computer Organisation & Architecture
Instruction Set Architectures Continued
Do it now – PAGE 10 You will find your do it now task in your workbook – look for the start button! Tuesday, 15 January 2019.
Lesson 1: Introduction to Binary
Chapter 4: Representing instructions
Introduction to Microprocessor Programming
ICT Programming Lesson 1:
CISC101 Reminders Labs start this week. Meet your TA! Get help with:
Computers, Programs, and Programming Languages
Chapter 6 Programming the basic computer
WJEC GCSE Computer Science
Computer Architecture and System Programming Laboratory
CS 111 – Sept. 16 Machine language examples Instruction execution
Algoritmos y Programacion
Dr. Clincy Professor of CS
Presentation transcript:

Representation of Data Binary Representation of Instructions teachwithict.weebly.com

Learning Objectives  Explain how instructions are coded as bit patterns  Explain how the computer distinguishes between instructions and data teachwithict.weebly.com

Instructions  Computer programs are made up of instructions. So far you have been writing programs using high level programming languages such as Python however, when you compile and run your programs, the computer must convert the high level code into a binary representation of the instruction (machine code). This is done using a compiler or interpreter. teachwithict.weebly.com

Instructions  Each instruction is made up of two parts:  Opcode (Instruction)  Operand (data or address)  There are several different instructions that a CPU can understand. The name given to these series of instructions is the instruction set. teachwithict.weebly.com

Little Man Computer  Instruction set for Little Man Computer teachwithict.weebly.com

Instruction Set  The range of instructions that a CPU can understand is based on the number of bits that are used to store the instructions. Some processors (Intel, AMD) use bigger bits to store the instruction set meaning they can have more instructions whereas other processors such as ARM processors (found in the Raspberry Pi) use smaller bits for the instruction ( Opcode ), meaning less instructions but leaving more space for the data / memory address ( Operand ). teachwithict.weebly.com

Binary Representation of Instructions There is no set binary pattern for different opcodes - different processors will use different bit patterns. Assuming that the CPU uses 4-bits to store the instruction (Opcode) and 8-bits to store the data, this what an instruction might look like in machine code: teachwithict.weebly.com

Task  Create a revision podcast on how instructions are represented using binary.  Note: You do not need to memorise the codes! You just need to understand how they are stored in binary. teachwithict.weebly.com