A downloadable computer sim

Pemu 2 is an entirely custom open-source simulated computer. That means that Pemu 2 takes in programs you write and executes them. For maximum speed, it converts your program to a equivalent Rust program that is then converted to a native windows executable. 

Pemu 2 has 83 instructions. Small programs of less than 100 lines are usually executed in only fractions of a millisecond. Pemu 2 is 32 bit, meaning every memory location can range from 0 to 4 billion. Pemu 2 uses variable-length-instructions,  meaning there can and is native CPU support for limited string manipulation. There are 27 registers, each fully 32 bit. There are 3 register series: "fr", "ltr", and "gpr". They each have different roles, either to prevent corruption or to improve performance. Pemu 2's possibly most advanced feature is fully  complete syntax highlighting through a extension that comes in the project folder.

The Pemu 2 can execute 4 billion instructions per second, but it's true max speed is unknown since at this point Pemu 2 is so fast it's only being limited by my real computers hardware.

Pemu 2 is the culmination of almost 4 months of work. Currently Pemu 2 is restricted to compiling to a Rust program, but I plan to eventually include a version that compiles to C, and after that, Python. The C version will be the fastest version, since it has features that neither Rust nor Python have that will increase performance drastically. 

Pemu 2 also has a VScode syntax highlighting extension, which is included in the download. I've included a screenshot for proof that I use the extension, meaning it's not a virus.

Because the project is a python project (for ease of development, compilation speed isn't a huge concern (it still compiles very quickly)) turned into an exe using pygame, almost all anti-virus programs will freak out at it. If you feel suspicious which is totally normal I would too you should run it in a virtual machine where it is ensured no damage could come to your computer if it were a virus. I would get a exe license but they are actually really hard to get and usually cost money, however if you know of a free easy to get license I would appreciate letting me know. If you can't use a virtual machine for any reason, look at my reputation of projects on Itch and the Youtube video of me downloading and running it on my machine. I also have a github page so you can review the source code.

Github:

https://github.com/madcottonballs/Pemu-2

Updated 11 days ago
StatusReleased
CategoryTool
AuthorCottonballs

Download

Download
Pemu 2.zip 7 MB

Install instructions

For Rust  implementation (only one available right now):

Download Rust from https://www.rust-lang.org/tools/install

Make sure the "rustc" command is available system wide. 

All done.

Development log

Leave a comment

Log in with itch.io to leave a comment.