Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

Machine cycle.
Dr. Ken Hoganson, © August 2014 Programming in R COURSE NOTES 2 Hoganson Language Translation.
Programming 68HC11.
 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.
Processor Function Topic 3.
COE Computer Organization & Assembly Language
TK 2633 Microprocessor & Interfacing Lecture 3: Introduction to 8085 Assembly Language Programming (2) 1 Prepared By: Associate Prof. Dr Masri Ayob.
Computer Organization and Architecture Tutorial 2 Kenneth Lee.
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
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.
Basic Computer Organization, CPU L1 Prof. Sin-Min Lee Department of Computer Science.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Assembly & Machine Languages
UNDERSTANDING ASSEMBLY LANGUAGE.
Computer Science 210 Computer Organization The Instruction Execution Cycle.
The CPU The Central Presentation Unit Main Memory and Addresses Address bus and Address Space Data Bus Control Bus The Instructions set Mnemonics Opcodes.
4-1 Chapter 4 - The Instruction Set Architecture Department of Information Technology, Radford University ITEC 352 Computer Organization Principles of.
Computer Architecture and the Fetch-Execute Cycle
GCSE Computing#BristolMet Session Objectives#11 MUST identify what program instructions consist of SHOULD describe how instructions are coded as bit patterns.
4-1 Chapter 4 - The Instruction Set Architecture Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles.
Chapter 4 MARIE: An Introduction to a Simple Computer.
The Central Processing Unit (CPU) and the Machine Cycle.
4-1 Chapter 4 - The Instruction Set Architecture Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles.
Lecture 14 Today’s topics MARIE Architecture Registers Buses
Important Concepts  Parts of the CPU  Arithmetic/Logic Unit  Control Unit  Registers  Program Counter  Instruction Register  Fetch/Decode/Execute.
DH2T 34 – HNC Computer Architecture 1 Lecture 14 The Fetch-Decode-Execute Cycle [1]. © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College.
Fetch-execute cycle.
Computer Structure & Architecture 7b - CPU & Buses.
Chapter 7 Low-Level Programming Languages (slides modified by Erin Chambers)
© GCSE Computing Candidates should be able to:  describe the characteristics of an assembler Slide 1.
COMPILERS CLASS 22/7,23/7. Introduction Compiler: A Compiler is a program that can read a program in one language (Source) and translate it into an equivalent.
1.4 Representation of data in computer systems Instructions.
Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Instruction cycle.
ECEG-3202 Computer Architecture and Organization Chapter 6 Instruction Sets: Addressing Modes and Formats.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Central Processing Unit Decode Cycle. Central Processing Unit Current Instruction Register (CIR) I1 The fetch cycle has transferred an instruction from.
Representation of Data Binary Representation of Instructions teachwithict.weebly.com.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
First Foray into Programming (the hard way). A reminder from last lesson: A machine code instruction has two parts:  Op-code  Operand An instruction.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Gunjeet Kaur Dronacharya Group of institutions
Assembly Language Programming of 8085
Microprocessor T. Y. B. Sc..
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
1. Introduction A microprocessor executes instructions given by the user Instructions should be in a language known to the microprocessor Microprocessor.
Computer Architecture
Data Representation – Instructions
The fetch-execute cycle
The Processor and Machine Language
Functional Units.
Computer Programming Machine and Assembly.
Computer Organization and ASSEMBLY LANGUAGE
Figure 8.1 Architecture of a Simple Computer System.
ECEG-3202 Computer Architecture and Organization
Computer Architecture and the Fetch-Execute Cycle
MARIE: An Introduction to a Simple Computer
MARIE: An Introduction to a Simple Computer
A Discussion on Assemblers
Chapter 4: Representing instructions
Program Execution.
William Stallings Computer Organization and Architecture 8 th Edition Chapter 11 Instruction Sets: Addressing Modes and Formats.
Instruction execution and ALU
Algoritmos y Programacion
Little Man Computer.
Presentation transcript:

Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.

ADD R1, #15 The machine code instructions can also be represented by assembly code mnemonics that is a more user friendly code. (The processor decodes and executes these instructions)

Machine Code Instruction Compiled high level language programs are translated into machine code, so they are ready to be executed on a computer. The processor then decodes and executes the machine code instructions. (The processor decodes and executes these instructions) Machine code instructions consist of a series of binary digits (bits) in two parts represented below: OpcodeOperand

Machine Code Instruction A machine code instruction is a series of operational codes and operand parts as shown below: (The processor decodes and executes these instructions) Operation CodeOperand Part This is the basic machine code operation eg ADD Represents one item of data or the address of one item of data

(The processor decodes and executes these instructions) MC Instructions (16 bits)MnemonicsExplanation LOAD #3 Place 3 into the accumulator STORE 13 Place a copy of the accumulator contents into the memory location with address LOAD #6 Place 6 into the accumulator ADD 13 Sum the contents of the accumulator and memory location 13; place the result into the accumulator STORE 14 Place a copy of the accumulator contents into the memory location with address 14.

(The processor decodes and executes these instructions) The machine code instructions are difficult for people to understand. Therefore, assembly code instructions have been developed to represent them.

(The processor decodes and executes these instructions) Op-code: 4 bits Basic Machine Code Operation Explanation 0000Load involving main memory Load the accumulator register with a value fetched from the main memory location specified in operand part of the instruction 0001Load involving operand part Load the accumulator register with the value in the operand part of the instruction 0100Add involving main memory Add to the content of the accumulator a value fetched from main memory location specified in the operand part of the instruction 0101Add involving operand part Add to the contents part of the accumulator the value in the operand part of the instruction. 1000Store involving main memory Store the contents of the accumulator in the main memory location specified in the operand part of the instruction.

(The processor decodes and executes these instructions) Machine code instructions can be represented in various ways: Can represent the value 255 or it can represent a main memory location.