Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c + + 2 0 2 4 Project A CPU ( Central Processing Unit ) is the primary component of a computer that performs most

c++2024 Project
A CPU (Central Processing Unit) is the primary component of a computer that performs most of the processing tasks in a computer system. CPUs can execute a wide variety of instructions, depending on their instruction set architecture (ISA) and design. Here are some basic instructions that a CPU typically supports:
1. Load: Loads a value from memory into a register/accumulator.
2. Store: Stores a value from a register/accumulator into memory.
3. Add: Adds two values and stores the result in a register/accumulator.
4. Subtract: Subtracts one value from another and stores the result in a register/accumulator.
5. Multiply: Multiplies two values and stores the result in a register/accumulator.
6. Divide: Divides one value by another and stores the result in a register/accumulator.
7. Compare: Compares two values and sets flags in the register/accumulator.
9. Logical operations: Performs logical AND, OR, or NOT operations on values in register/accumulator.
You will be writing your own simple simulated programming language using a variety of classes. You must write and use a CPU class that uses the instructions above. These instructions are to be used by your other classes, not the user. Use STLs to manage memory, registers/accumulators (you may need to research what these are). Create classes for your own data types (inheritance may be useful here). Be sure to handle language errors. You may find it useful to use namespaces, and templates as well. But you may NOT use typedef and #define in place of classes. Ask me if you can use these first!
You will NOT be creating an actual compiled language, in fact, you may NOT do so. A person should be able to write a simple program using your commands from your classes. The code for which will be in your #include files.
For the Final Project I expect a fully functional program.
Functions and classes must be minimal meaning that every module, class, or function in a computer program should have responsibility over a single part of that program's functionality.
You must include a readme.txt file that includes a description of your project, and how you incorporated ALL of your elements into your program. Also list anything new you learned and any challenges you may have had.
You must include an instructions.txt file that includes all of the syntax of your language.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 1 Lnai 9284

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Carlos Soares ,Joao Gama ,Alipio Jorge

1st Edition

3319235273, 978-3319235271

More Books

Students also viewed these Databases questions