skip to main content
article
Free Access

Introducing computer concepts by simulating a simple computer

Published:01 September 1996Publication History
Skip Abstract Section

Abstract

The simulated computer consists of (1) main memory, (2) a register known as the accumulator, (3) a central processing unit (CPU), and (4) an instruction counter. This computer recognizes 8 op codes (Halt, Load, Store, Add, Subtract, Read, Write, and Branch On Zero). The computer is simulated by creating a program in Pascal or C++. This program simulates the execution of programs written by students, such as adding two numbers and printing their sum. Student programs are written in machine language and executed by the simulated computer. Students can write programs in assembly language, compile them by hand, and then test them by running them on the simulated computer. This example has been helpful in teaching students what a computer is and what computers can do.

References

  1. Tremblay, Jean-Paul, John M. DeDourek and Richard B. Bunt, Introduction to Computer Science, McGraw-Hill, 1989 (p.6)Google ScholarGoogle Scholar
  2. Deitel, H. M. and P. J. Deitel, C++ How to Program, Prentice-Hall, 1994 (p. 328.) Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Introducing computer concepts by simulating a simple computer

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in

        Full Access

        • Published in

          cover image ACM SIGCSE Bulletin
          ACM SIGCSE Bulletin  Volume 28, Issue 3
          Sept. 1996
          68 pages
          ISSN:0097-8418
          DOI:10.1145/234867
          Issue’s Table of Contents

          Copyright © 1996 Author

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 1 September 1996

          Check for updates

          Qualifiers

          • article

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader
        About Cookies On This Site

        We use cookies to ensure that we give you the best experience on our website.

        Learn more

        Got it!