Instruction Memory value Description ADD1xx Add the value stored at memory address xx to the value in the accumulator register SUB2xx Subtract the value.

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

Microprocessors.
ARITHMETIC LOGIC SHIFT UNIT
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.
The Little man computer
The CPU Revision Typical machine code instructions Using op-codes and operands Symbolic addressing. Conditional and unconditional branches.
CARDIAC A cardboard illustrative aid to computation illustrates the operation of a computer demos basic units of a simple computer –input –memory –accumulator.
LMC Little Moron Computer
CSCE 212 Quiz 8 – 3/23/11 1.What type of element is the ALU (combinational or state) and what does it mean for an element to be that type? 2.What is the.
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Basic Computer Organization, CPU L1 Prof. Sin-Min Lee Department of Computer Science.
Elements of the Computer (How a processor works)
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
COMPUTER INSTRUCTIONS
A-Level Computing#BristolMet Session Objectives#5 MUST identify different buses and registers used in a CPU SHOULD describe the use of buses to send information.
SAP1 (Simple-As-Possible) Computer
An Interactive Web-Based Simulation of a General Computer Architecture
Machine level architecture Computer Architecture Basic units of a Simple Computer.
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
Microprocessor. Interrupts The processor has 5 interrupts. CALL instruction (3 byte instruction). The processor calls the subroutine, address of which.
Computer Science 101 Computer Systems Organization ALU, Control Unit, Instruction Set.
Fetch-execute cycle.
A summary of TOY. 4 Main Components Data Processor Control Processor Memory Input/Output Device.
© 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.
Computer Systems Organization
Memory Addressing Techniques. Immediate Addressing involves storing data in pairs with immediate values register pairs:
An Example Architecture. A Paper Computer - Woody Woody's characteristics Word size – 8 bits One word.
Dale & Lewis Chapter 5 Computing components
More on Pipelining 1 CSE 2312 Computer Organization and Assembly Language Programming Vassilis Athitsos University of Texas at Arlington.
CS61C L20 Datapath © UC Regents 1 Microprocessor James Tan Adapted from D. Patterson’s CS61C Copyright 2000.
An Adder A Subtractor. A and B are the inputs of the adder/ subtractor R is the output of the adder/ subtractor F is the control to tell it to add or.
More on Pipelining 1 CSE 2312 Computer Organization and Assembly Language Programming Vassilis Athitsos University of Texas at Arlington.
Elements of Datapath for the fetch and increment The first element we need: a memory unit to store the instructions of a program and supply instructions.
This is where you can reset and run your program. If your program has an “INP” (input) command, you will type it in this box here. Using the LMC These.
Lec 4-2 Five operations of the machine cycle Fetch- fetch the next program instruction from memory. (PC+1); instruction to IR Decode- decode the instruction.
Program to multiply 2 numbers 500-Input x 291-Store acc. as x 500-Input y 292-Store acc. as y 193-Load y in to acc. (0 on 1 st parse) 391-Add x to acc.
The Postman in your PC Today you are going to learn how a computer’s CPU works to handle data. Teachcompsci.co.uk.
Little Man Computer Task 1 Last lesson you were asked to write a program to multiply two numbers together. The next slide has a working program to do this.
3.1.4 Hardware a. describe the function and purpose of the control unit, memory unit and ALU (arithmetic logic unit) as individual parts of a computer;
1. 2 TimeActivity 9:45Welcome and introductions 10:00What is a computer? 10:15What’s inside? 10:45Activity: A simple view of how computers work 11:15Coffee/tea.
The Little man computer
CHAPTER 6: The Little Man Computer
CHAPTER 6: The Little Man Computer
Chapter 4 The Von Neumann Model
What should we teach regarding…
Chapter 4 The Von Neumann Model
Starter Read the Feedback Click on Add new Feedback Open Realsmart
Data Representation – Instructions
Chapter 4 The Von Neumann Model
The Little Man Computer
CHAPTER 6: The Little Man Computer
CSCI206 - Computer Organization & Programming
An Ultimate RISC Processor for Space Applications
Instruction and Control II
Making Programming Friendlier
Programmer’s View of the EAGLE
The Little Man Computer
Sequencing, Selection, and Loops in Machine Language
Phillipa Gill SCI 199 Y Tutorial Sept. 14, 2009 Phillipa Gill
By: A. H. Abdul Hafez Computer Architecture and Organization: L06: Stored program and Instruction code.
Computer Architecture
LMC Little Man Computer What do you know about LMC?
The Stored Program Computer
Program Execution.
Little Man Computer There’s a little man in the mailroom that follows each instruction to the letter but he can only follow one instruction at a time.
A Top-Level View Of Computer Function And Interconnection
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Little Man Computer.
Presentation transcript:

Instruction Memory value Description ADD1xx Add the value stored at memory address xx to the value in the accumulator register SUB2xx Subtract the value stored at memory address xx from the value in the accumulator register STA3xx Store the value from the accumulator register to the memory address xx LDA5xx Load the value from the memory address xx into the accumulator register BRA6xx Branch to xx (store xx in the program counter register so that the program will jump to xx on the next instruction cycle) BRZ7xx Branch if the accumulator register stores the value zero, otherwise carry on as normal BRP8xx Branch if the accumulator register stores zero or a positive number INP9x1 Read a value from the input device x and store it in the accumulator register OUT9x2 Send the contents of the accumulator register to the output device x HLT000Halt / Stop the processor DATxxxStores xxx in memory to be used as data Little Man Computer Instruction set

AddressValueDescription 0901Input from device Store in memory address Input from device Store in memory address Load memory address 8 into accumulator 5109Add memory address 9 to accumulator 6902Output to device Halt 8000data: data: 0 Little Man Computer Example Program

Program Counter register

Instruction register

Accumulator register

Address: 0 Value: 901

Address: 1 Value: 308

Address: 2 Value: 901

Address: 3 Value: 309

Address: 4 Value: 508

Address: 5 Value: 109

Address: 6 Value: 902

Address: 7 Value: 000

Address: 8 Value: 000

Address: 9 Value: 000