{"id":20614355,"url":"https://github.com/devincarr/sim","last_synced_at":"2026-05-28T18:31:09.855Z","repository":{"id":34116078,"uuid":"37946304","full_name":"DevinCarr/sim","owner":"DevinCarr","description":"A simple VM created in Rust","archived":false,"fork":false,"pushed_at":"2016-05-04T04:30:39.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T18:49:37.734Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevinCarr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-23T21:33:54.000Z","updated_at":"2016-02-23T00:19:35.000Z","dependencies_parsed_at":"2022-07-31T11:18:03.723Z","dependency_job_id":null,"html_url":"https://github.com/DevinCarr/sim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DevinCarr/sim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevinCarr%2Fsim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevinCarr%2Fsim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevinCarr%2Fsim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevinCarr%2Fsim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevinCarr","download_url":"https://codeload.github.com/DevinCarr/sim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevinCarr%2Fsim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33622066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T11:12:31.756Z","updated_at":"2026-05-28T18:31:09.832Z","avatar_url":"https://github.com/DevinCarr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sim\n=======\nA very simple virtual machine based on [this](https://blog.felixangell.com/virtual-machine-in-c/), but written in rust instead. This also acts as a beginner project in rust.\n\n## Current ISA\nInstruction      | Machine code  | Description\n-----------------|---------------|------------\nhalt             | 0             | Halt the program\npushi `$im`      | 1,`i32`       | Push the immediate (`$im`) onto the stack\npushr `$im`      | 2,`i32`       | Push a register (location `$im`) onto the stack\npop              | 3             | Pop the top of the stack\nadd `src`,`dest` | 4,`i32`,`i32` | Add the `src` and `dest` registers and put back into `dest`\nmovi `$im`,`dest`| 5,`i32`,`i32` | Move the `$im` into the register at `dest`\nmovr `src`,`dest`| 6,`i32`,`i32` | Move the value from `src` to `dest`\nlog              | 7             | Print out the current stack\n\n#### Memory:\nStack size: `16`\n\nRegisters:\n\nRegister | Value\n---------|-------\neax      | 0\nebx      | 1\necx      | 2\nedx      | 3\n\n# Running\n\n*See prog.si for example format*\n\n`$ sim \u003c prog.si`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevincarr%2Fsim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevincarr%2Fsim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevincarr%2Fsim/lists"}