Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.
/ starkcpu Public archive

A virtual machine emulating a made-up CPU + assembly compiler.

Notifications You must be signed in to change notification settings

adamwych/starkcpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stark

Stark is a made-up CPU implementation created for hobby purposes.

Emulator in action

Contents

  • cpu - emulator that simulates the behaviour of the CPU.
  • sasmc - compiler for low-level, assembly-like language targeting Stark processors.

To learn about how the emulator or compiler works, check out READMEs in their directories.

Getting started

To build any of the apps, you can cd to that application's directory and use cmake to build it. Most applications do not have any third-party dependencies, so you should be good to go immediately.

For example, to build the emulator, you can just run these commands:

cd cpu
mkdir build
cmake -GNinja ..
ninja

After those are done, you should be able to run the emulator like this:

./emulator <input file>

About

A virtual machine emulating a made-up CPU + assembly compiler.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published