https://github.com/andresberejnoi/cpu_simulation
A virtual CPU (32-bit and 16-bit), simulated using C with a custom-made assembly-language
https://github.com/andresberejnoi/cpu_simulation
16-bit-assembly 16-bit-cpu assembler assembly c comporg computer-organization cpu-emulator simulation
Last synced: 24 days ago
JSON representation
A virtual CPU (32-bit and 16-bit), simulated using C with a custom-made assembly-language
- Host: GitHub
- URL: https://github.com/andresberejnoi/cpu_simulation
- Owner: andresberejnoi
- Created: 2017-10-21T18:03:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-09T15:55:03.000Z (over 6 years ago)
- Last Synced: 2025-01-23T11:46:38.375Z (over 1 year ago)
- Topics: 16-bit-assembly, 16-bit-cpu, assembler, assembly, c, comporg, computer-organization, cpu-emulator, simulation
- Language: C
- Homepage:
- Size: 56.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom CPU Simulation
This project simulates a processor (16 and 32 bit) and it is a work in progress. The main goal of the project is to learn more
about computer architecture. There are some sample assembly language programs as well as their assembled versions.
## Generate CPU executable
Run make inside the CPU32 directory to generate the executable 'computer'
## How to Assemble Code
To turn assembly into machine language, use the script asm_parser_vxxx.py (The x's represent versions):
```sh
python asm_parser_v0.4.py
```
## How to run the CPU:
To run the simulation, simply do:
```sh
./computer
```