Represent an instruction supported by simpletron

Assignment Help C/C++ Programming
Reference no: EM134570

The authors of the book do a very thorough job explaining Simpleton's operation, and encourage you to take a look at what they have written before you read any further.

For the most part, your objective in this assignment is the same as what is listed in the book with the following exceptions:

1. For this assignment, it is okay to ignore the sign of the instruction.

2. The interactive console's operation has been altered from what is listed in the book. After receiving a complete program from the user, you will iterate over each instruction.

Prior to executing a given instruction, you must do a memory dump. In other words, display the accumulator, the current instruction, and the values in each memory location (see screenshots).

3. Section occurs before the authors introduce C++. Because we have moved onto C++, your solution must be written in C++, contain one or more classes, and use data structures when appropriate. At minimum, your program must contain a "Simpletron" class that will be used to represent the state of the Simpletron machine.

Sample Implementation

Implementation contains a Simpletron class and several supporting Instruction classes (one for each instruction supported by the Simpletron).

Instruction to represent an instruction supported by Simpletron. As such, create a child class for each instruction (approximately 13 sub classes) and a factory to handle new object creation. Also note that create an enum called Operation_t that acts as an easier way to work with operations (i.e. using Read, Write, Load, etc. instead of 10, 11, etc.). Other than that, it's mostly getters and setters with the exception of the virtual execute method.

Reference no: EM134570

Questions Cloud

The magnitude of the acceleration due to gravity : The magnitude of the acceleration due to gravity
Prepare all financial statements : Prepare any outstanding adjusting journal entries for the year ended March 31, 2013 and post them to the trial balance. Prepare all financial statements in good form for the year ended March 31, 2013.
Proposal of a new product for the market : You are required to submit a written assignment relating to New Product Development.
The problems of parking on campus : Write a report on the problems of parking on campus
Represent an instruction supported by simpletron : Implementation contains a Simpletron class and several supporting Instruction classes
Write down an essay about how the brain creates the self : Is the Internet a disruptive technology in the education industry in general? And for Ivey's School of Information Management in particular?
Disruptive technology in the education industry in general : Is the Internet a disruptive technology in the education industry in general? And for Ivey's School of Information Management in particular?
Clinical microbiology assignment : Case Study: A female patient in ER with suspected toxic shock syndrome
Draw an er diagram for database scenario : Draw an ER diagram for database scenario. Design a set of 3NF tables for your database scenario.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd