Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malaksadek/cpusimulator
An Object-Oriented CPU Simulator implemented in C++ using the Factory pattern 🏭 💻 (2016)
https://github.com/malaksadek/cpusimulator
c-plus-plus cpu cpu-simulator factory-pattern object-oriented-programming
Last synced: about 7 hours ago
JSON representation
An Object-Oriented CPU Simulator implemented in C++ using the Factory pattern 🏭 💻 (2016)
- Host: GitHub
- URL: https://github.com/malaksadek/cpusimulator
- Owner: MalakSadek
- License: gpl-3.0
- Created: 2020-05-14T19:11:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-25T16:14:42.000Z (over 3 years ago)
- Last Synced: 2024-09-09T16:11:43.444Z (2 months ago)
- Topics: c-plus-plus, cpu, cpu-simulator, factory-pattern, object-oriented-programming
- Language: C++
- Homepage:
- Size: 413 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CPUSimulator
An Object-Oriented CPU Simulator implemented in C++ using the Factory pattern 🏭 💻 (2016)The tool handles the following instructions:
* Write
* Read
* Halt
* Assign
* Add
* Jump
* Multiply
* NegateThe factory pattern is used where factories are defined for numbers, instructions, data addresses, memory, processor, and operands. Each instruction is created as a class with its own header file and 9 different text files containing sample instructions are included.
An example:
`ASS -5, $1`
`ASS 100, $2`
`MUL $1, $2, $3`
`WRITE $3`
`HALT`# Contact
* email: [email protected]
* LinkedIn: www.linkedin.com/in/malak-sadek-17aa65164/
* website: http://malaksadekapps.com/