Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!