CHAPTER 6: The Little Man Computer

Slides:



Advertisements
Similar presentations
CHAPTER 6: The Little Man Computer
Advertisements

The “Little Man Computer” Version
Chapter 14 The User View of Operating Systems
SUPPLEMENTARY CHAPTER 2 Instruction Addressing Modes
The Little man computer
ACCOUNTING INFORMATION SYSTEMS
CHAPTER 4: Representing Integer Data The Architecture of Computer Hardware and Systems Software: An Information Technology Approach 3rd Edition, Irv Englander.
LMC Little Moron Computer
Chapter 12 Three System Examples The Architecture of Computer Hardware and Systems Software: An Information Technology Approach 3rd Edition, Irv Englander.
CHAPTER 2: Number Systems
CHAPTER 5: Floating Point Numbers
Chapter 101 Information Technology For Management 6 th Edition Turban, Leidner, McLean, Wetherbe Lecture Slides by L. Beaubien, Providence College John.
SUPLEMENTARY CHAPTER 1: An Introduction to Digital Logic The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
CHAPTER 8: CPU and Memory Design, Enhancement, and Implementation
CHAPTER 9: Input / Output
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
The Little Man Computer
5th Edition, Irv Englander
CHAPTER 2: Introduction to Systems Concepts and Systems Architecture
4-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
4-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
An Interactive Web-Based Simulation of a General Computer Architecture
“Copyright © 2001 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976.
CHAPTER 11: Modern Computer Systems
Introduction to a Simple Computer Nizamettin AYDIN
CHAPTER 9: Input / Output
CHAPTER 3: Number Systems
School of Computer Science G51CSA 1 The Little Man Computer.
CHAPTER 3: Number Systems The Architecture of Computer Hardware and Systems Software & Networking: An Information Technology Approach 4th Edition, Irv.
Chapter 111 Information Technology For Management 6 th Edition Turban, Leidner, McLean, Wetherbe Lecture Slides by L. Beaubien, Providence College John.
Copyright © 2000 John Wiley & Sons, Inc. All rights reserved
“Copyright © 2001 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Slide 1-1 Chapter 1 Information Systems Overview Introduction to Information Systems Judith C. Simon.
Little Man Computer When your program gets “translated to machine code” all 0’s & 1’s The translator must know the language of the program (java) as well.
Copyright © 2000 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976.
CHAPTER 6: The Little Man Computer
© GCSE Computing Candidates should be able to:  describe the characteristics of an assembler Slide 1.
Dale & Lewis Chapter 5 Computing components
Examples with 3-Digit Numbers
CHAPTER 3: Number Systems
Copyright © 2000 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976.
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Operations Management - 5 th Edition Chapter 10 Supplement Roberta.
CHAPTER 6: The Little Man Computer
Slide 6-1 Chapter 6 System Software Considerations Introduction to Information Systems Judith C. Simon.
Slide 8-1 Chapter 8 Terms Programming Languages Introduction to Information Systems Judith C. Simon.
A- 1. A- 2 Appendix B Standards of Ethical Conduct for Management Accountants The Institute of Management Accountants has published and promoted the following.
K-1. K-2 Appendix K Standards of Ethical Conduct for Management Accountants The Institute of Management Accountants has published and promoted the following.
Slide 11-1 Chapter 11 Terms Information Resource Management Strategies Introduction to Information Systems Judith C. Simon.
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Slide 6-1 Chapter 6 Terms System Software Considerations Introduction to Information Systems Judith C. Simon.
The Postman in your PC Today you are going to learn how a computer’s CPU works to handle data. Teachcompsci.co.uk.
“Copyright © 2001 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976.
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.
CHAPTER 11: Modern Computer Systems
The Little man computer
CHAPTER 6: The Little Man Computer
CHAPTER 9: Input / Output
CHAPTER 9: Input / Output
“Copyright © 2001 John Wiley & Sons, Inc. All rights reserved
CHAPTER 6: The Little Man Computer
Review of computer processing and the basic of Operating system
Dinesh Mirchandani University of Missouri – St. Louis
Starter Read the Feedback Click on Add new Feedback Open Realsmart
CHAPTER 6: The Little Man Computer
Accounting Information Systems: Essential Concepts and Applications Fourth Edition by Wilkinson, Cerullo, Raval, and Wong-On-Wing Module 1: Decision Making,
CHAPTER 6: The Little Man Computer
Computer Architecture
Chapter 14 The User View of Operating Systems
Little Man Computer.
Presentation transcript:

CHAPTER 6: The Little Man Computer The Architecture of Computer Hardware, Systems Software & Networking: An Information Technology Approach 5th Edition, Irv Englander John Wiley and Sons 2013 PowerPoint slides authored by Angela Clark, University of South Alabama PowerPoint slides for the 4th edition were authored by Wilson Wong, Bentley University

The Little Man Computer Copyright 2013 John Wiley & Sons, Inc.

Mailboxes: Address vs. Content Addresses are consecutive starting at 00 and ending at 99 Content may be Data, a three digit number, or Instructions Address Content Copyright 2013 John Wiley & Sons, Inc.

Content: Instructions Op code In LMC, represented by a single digit Operation code Arbitrary mnemonic Operand In LMC, represented by two digits following the op code Object to be manipulated Data or Address of data Address Content Op code Operand Copyright 2013 John Wiley & Sons, Inc.

Magic! Load program into memory Put data into In Basket Copyright 2013 John Wiley & Sons, Inc.

Assembly Language Specific to a CPU 1 to 1 correspondence between assembly language instruction and binary (machine) language instruction Mnemonics (short character sequence) represent instructions Used when programmer needs precise control over hardware, e.g., device drivers Copyright 2013 John Wiley & Sons, Inc.

Instruction Set Arithmetic 1xx ADD 2xx SUB Data Movement 3xx STORE 5xx LOAD Input/Output 901 INPUT 902 Output Machine Control (coffee break) 000 HALT COB Copyright 2013 John Wiley & Sons, Inc.

Input/Output Move data between calculator and in/out baskets Content Op Code Operand (address) IN (input) 9 01 OUT (output) 02 Copyright 2013 John Wiley & Sons, Inc.

LMC Input/Output IN OUT Copyright 2013 John Wiley & Sons, Inc.

Internal Data Movement Between mailbox and calculator Content Op Code Operand (address) STO (store) 3 xx LDA (load) 5 Copyright 2013 John Wiley & Sons, Inc.

LMC Internal Data LDA STO Copyright 2013 John Wiley & Sons, Inc.

Arithmetic Instructions Read mailbox Perform operation in the calculator Content Op Code Operand (address) ADD 1 xx SUB 2 Copyright 2013 John Wiley & Sons, Inc.

LMC Arithmetic Instructions ADD SUB Copyright 2013 John Wiley & Sons, Inc.

Data storage location Physically identical to instruction mailbox Not located in instruction sequence Identified by DAT mnemonic Copyright 2013 John Wiley & Sons, Inc.

Simple Program: Add 2 Numbers Assume data is stored in mailboxes with addresses >90 Write instructions Input a # Store the # Add Output the number Copyright 2013 John Wiley & Sons, Inc.

Program to Add 2 Numbers Mailbox Code Instruction Description 00 901 ;input 1st Number 01 399 ;store data 02 ;input 2nd Number 03 199 ;add 1st # to 2nd # 04 902 ;output result 05 000 ;stop 99 ;data Copyright 2013 John Wiley & Sons, Inc.

Program to Add 2 Numbers: Using Mnemonics Mailbox Mnemonic Instruction Description 00 IN ;input 1st Number 01 STO 99 ;store data 02 ;input 2nd Number 03 ADD 99 ;add 1st # to 2nd # 04 OUT ;output result 05 COB ;stop 99 DAT 00 ;data Copyright 2013 John Wiley & Sons, Inc.

Program Control Branching (executing an instruction out of sequence) Changes the address in the counter Halt Content Op Code Operand (address) BR (Jump) 6 xx BRZ (Branch on 0) 7 BRP (Branch on +) 8 COB (stop) (ignore) Copyright 2013 John Wiley & Sons, Inc.

LMC Instruction Set Arithmetic 1xx ADD 2xx SUB Data Movement 3xx STORE LOAD BR 6xx JUMP BRZ 7xx BRANCH ON 0 BRP 8xx BRANCH ON + Input/Output 901 INPUT 902 OUTPUT Machine Control (coffee break) 000 HALT COB Copyright 2013 John Wiley & Sons, Inc.

Find Positive Difference of 2 Numbers 00 IN 901 01 STO 10 310 02 03 STO 11 311 04 SUB 10 210 05 BRP 08 808 ;test 06 LDA 10 510 ;if negative, reverse order 07 SUB 11 211 08 OUT 902 ;print result and 09 COB 000 ;stop 10 DAT 00 ;used for data 11 Copyright 2013 John Wiley & Sons, Inc.

Instruction Cycle Fetch: Little Man finds out what instruction he is to execute Execute: Little Man performs the work Copyright 2013 John Wiley & Sons, Inc.

Fetch Portion of Fetch and Execute Cycle 1. Little Man reads the address from the location counter 2. He walks over to the mailbox that corresponds to the location counter Copyright 2013 John Wiley & Sons, Inc.

Fetch, cont. 3. And reads the number on the slip of paper (he puts the slip back in case he needs to read it again later) Copyright 2013 John Wiley & Sons, Inc.

Execute Portion 1. The Little Man goes to the mailbox address specified in the instruction he just fetched 2. He reads the number in that mailbox (he remembers to replace it in case he needs it later) Copyright 2013 John Wiley & Sons, Inc.

Execute, cont. 3. He walks over to the calculator and punches the number in 4. He walks over to the location counter and clicks it, which gets him ready to fetch the next instruction Copyright 2013 John Wiley & Sons, Inc.

von Neumann Architecture (1945) Stored program concept Memory is addressed linearly Memory is addressed by location number without regard to content Copyright 2013 John Wiley & Sons, Inc.

Copyright 2013 John Wiley & Sons All rights reserved. Reproduction or translation of this work beyond that permitted in section 117 of the 1976 United States Copyright Act without express permission of the copyright owner is unlawful. Request for further information should be addressed to the Permissions Department, John Wiley & Sons, Inc. The purchaser may make back-up copies for his/her own use only and not for distribution or resale. The Publisher assumes no responsibility for errors, omissions, or damages caused by the use of these programs or from the use of the information contained herein.” Copyright 2013 John Wiley & Sons, Inc.