Answered step by step
Verified Expert Solution
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 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:
Load: Loads a value from memory into a registeraccumulator
Store: Stores a value from a registeraccumulator into memory.
Add: Adds two values and stores the result in a registeraccumulator
Subtract: Subtracts one value from another and stores the result in a registeraccumulator
Multiply: Multiplies two values and stores the result in a registeraccumulator
Divide: Divides one value by another and stores the result in a registeraccumulator
Compare: Compares two values and sets flags in the registeraccumulator
Logical operations: Performs logical AND, OR or NOT operations on values in registeraccumulator
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, registersaccumulators 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started