An open API service indexing awesome lists of open source software.

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

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
```